"Packstack으로 오픈스택 설치 실습 (1대 구성)"의 두 판 사이의 차이

322번째 줄: 322번째 줄:
</source>
</source>
<source lang='console'>
<source lang='console'>
... (생략)
  rubygem-rdoc.noarch 0:4.0.0-30.el7                                                     
  rubygem-rgen.noarch 0:0.6.6-2.el7                                                       
  rubygems.noarch 0:2.0.14.1-30.el7                                                       
Complete!
</source>
</source>



2018년 1월 8일 (월) 14:18 판

  다른 뜻에 대해서는 Packstack 설치 실습 (2대 구성) 문서를 참조하십시오.

1 개요

Packstack 설치 실습 (1대 구성)
  • 실습용
  • 모든 컴포넌트를 1대에 설치함

2 사전작업

3 사전작업 2

3.1 CPU가상화 지원 확인

[root@localhost ~]# cat /proc/cpuinfo | egrep ' (svm|vmx|lm) '
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch rdseed clflushopt

3.2 이더넷 시작·설정

[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
#ONBOOT=no
ONBOOT=yes
[root@localhost ~]# ifup enp0s3

3.3 인터넷 연결 확인

[root@localhost ~]# ping yahoo.com -c2
PING yahoo.com (98.138.253.109) 56(84) bytes of data.
64 bytes from ir1.fp.vip.ne1.yahoo.com (98.138.253.109): icmp_seq=1 ttl=44 time=422 ms
64 bytes from ir1.fp.vip.ne1.yahoo.com (98.138.253.109): icmp_seq=2 ttl=44 time=380 ms

--- yahoo.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 380.269/401.251/422.233/20.982 ms

3.4 SELINUX 비활성화

[root@localhost ~]# vi /etc/selinux/config
#SELINUX=enforcing
SELINUX=disabled

3.5 NetworkManage 비활성화

[root@localhost ~]# systemctl stop NetworkManager
[root@localhost ~]# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.

3.6 방화벽 비활성화

[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.

3.7 호스트명 변경

[root@localhost ~]# hostnamectl set-hostname allinone.openstack
[root@localhost ~]# hostname
allinone.openstack

3.8 시간대 설정

[root@localhost ~]# timedatectl set-timezone Asia/Seoul
[root@localhost ~]# timedatectl status | grep Seoul
       Time zone: Asia/Seoul (KST, +0900)

4 centos-release-openstack 설치

[root@localhost ~]# yum list centos-release-openstack-*
... (생략)
Available Packages
centos-release-openstack-newton.noarch                           1-2.el7                           extras
centos-release-openstack-ocata.noarch                            1-2.el7                           extras
centos-release-openstack-pike.x86_64                             1-1.el7                           extras
[root@localhost ~]# yum install centos-release-openstack-ocata
... (생략)
======================================================================
 Package                        Arch   Version           Repository
                                                                 Size
======================================================================
Installing:
 centos-release-openstack-ocata noarch 1-2.el7           extras 5.3 k
Installing for dependencies:
 centos-release-ceph-jewel      noarch 1.0-1.el7.centos  extras 4.1 k
 centos-release-qemu-ev         noarch 1.0-2.el7         extras  11 k
 centos-release-storage-common  noarch 1-2.el7.centos    extras 4.5 k
 centos-release-virt-common     noarch 1-1.el7.centos    extras 4.5 k

Transaction Summary
======================================================================
Install  1 Package (+4 Dependent packages)

Total download size: 29 k
Installed size: 23 k
Is this ok [y/d/N]: y
... (생략)
Installed:
  centos-release-openstack-ocata.noarch 0:1-2.el7                     

Dependency Installed:
  centos-release-ceph-jewel.noarch 0:1.0-1.el7.centos                 
  centos-release-qemu-ev.noarch 0:1.0-2.el7                           
  centos-release-storage-common.noarch 0:1-2.el7.centos               
  centos-release-virt-common.noarch 0:1-1.el7.centos                  

Complete!

5 yum update

[root@localhost ~]# yum update
... (생략)
======================================================================
 Package          Arch   Version         Repository              Size
======================================================================
Installing:
 python2-babel    noarch 2.3.4-1.el7     centos-openstack-ocata 4.8 M
     replacing  python-babel.noarch 0.9.6-8.el7
 python2-jinja2   noarch 2.8.1-1.el7     centos-openstack-ocata 463 k
     replacing  python-jinja2.noarch 2.7.2-2.el7
 python2-jsonpatch
                  noarch 1.14-1.el7      centos-openstack-ocata  22 k
     replacing  python-jsonpatch.noarch 1.2-4.el7
 python2-jsonpointer
                  noarch 1.10-4.el7      centos-openstack-ocata  14 k
     replacing  python-jsonpointer.noarch 1.9-2.el7
 python2-markupsafe
                  x86_64 0.23-16.el7     centos-openstack-ocata  32 k
     replacing  python-markupsafe.x86_64 0.11-10.el7
 python2-pillow   x86_64 4.0.0-1.el7     centos-openstack-ocata 552 k
     replacing  python-pillow.x86_64 2.0.0-19.gitd1c6db8.el7
 python2-pygments noarch 2.2.0-7.el7     centos-openstack-ocata 1.9 M
     replacing  python-pygments.noarch 1.4-10.el7
 python2-requests noarch 2.11.1-1.el7    centos-openstack-ocata 105 k
     replacing  python-requests.noarch 2.6.0-1.el7_1
 python2-setuptools
                  noarch 22.0.5-1.el7    centos-openstack-ocata 485 k
     replacing  python-setuptools.noarch 0.9.8-7.el7
 python2-six      noarch 1.10.0-9.el7    centos-openstack-ocata  31 k
     replacing  python-six.noarch 1.9.0-2.el7
 python2-urllib3  noarch 1.16-1.el7      centos-openstack-ocata 126 k
     replacing  python-urllib3.noarch 1.10.2-3.el7
 qemu-img-ev      x86_64 10:2.9.0-16.el7_4.13.1
                                         centos-qemu-ev         2.2 M
     replacing  qemu-img.x86_64 10:1.5.3-141.el7_4.6
Updating:
 gperftools-libs  x86_64 2.4.91-1.el7    centos-openstack-ocata 273 k
 librados2        x86_64 1:10.2.10-0.el7 centos-ceph-jewel      1.9 M
 librbd1          x86_64 1:10.2.10-0.el7 centos-ceph-jewel      2.5 M
 libtomcrypt      x86_64 1.17-33.20170623gitcd6e602.el7
                                         centos-openstack-ocata 390 k
 libtommath       x86_64 1.0-8.el7       centos-openstack-ocata  51 k
 mariadb-libs     x86_64 3:10.1.20-1.el7 centos-openstack-ocata 643 k
 python2-paramiko noarch 2.0.0-1.el7     centos-openstack-ocata 264 k
Installing for dependencies:
 boost-iostreams  x86_64 1.53.0-27.el7   base                    61 k
 boost-random     x86_64 1.53.0-27.el7   base                    39 k
 lcms2            x86_64 2.6-3.el7       base                   150 k
 libimagequant    x86_64 2.8.2-2.el7     centos-openstack-ocata  52 k
 lttng-ust        x86_64 2.4.1-4.el7     epel                   176 k
 mariadb-common   x86_64 3:10.1.20-1.el7 centos-openstack-ocata  63 k
 mariadb-config   x86_64 3:10.1.20-1.el7 centos-openstack-ocata  26 k
 openjpeg2        x86_64 2.1.2-1.el7     centos-openstack-ocata 112 k
 python-enum34    noarch 1.0.4-1.el7     base                    52 k
 python-ipaddress noarch 1.0.16-3.el7    centos-openstack-ocata  34 k
 python-ply       noarch 3.4-11.el7      base                   123 k
 python-pycparser noarch 2.14-1.el7      base                   104 k
 python2-cffi     x86_64 1.5.2-1.el7     centos-openstack-ocata 214 k
 python2-cryptography
                  x86_64 1.7.2-1.el7_4.1 updates                502 k
 python2-idna     noarch 2.5-1.el7       centos-openstack-ocata  94 k
 python2-olefile  noarch 0.44-4.el7      epel                    55 k
 python2-pysocks  noarch 1.6.7-1.el7     epel                    29 k
 pytz             noarch 2016.10-2.el7   base                    46 k
 userspace-rcu    x86_64 0.7.16-1.el7    centos-ceph-jewel       72 k

Transaction Summary
======================================================================
Install  12 Packages (+19 Dependent packages)
Upgrade   7 Packages

Total download size: 19 M
Is this ok [y/d/N]: y
... (생략)
  python-six.noarch 0:1.9.0-2.el7                                     
  python-urllib3.noarch 0:1.10.2-3.el7                                
  qemu-img.x86_64 10:1.5.3-141.el7_4.6                                

Complete!

6 openstack-packstack 설치

[root@localhost ~]# yum install openstack-packstack
... (생략)
======================================================================
 Package         Arch   Version          Repository              Size
======================================================================
Installing:
 openstack-packstack
                 noarch 1:10.0.1-1.el7   centos-openstack-ocata 189 k
Installing for dependencies:
 augeas-libs     x86_64 1.4.0-2.el7_4.2  updates                355 k
 facter          x86_64 1:2.4.4-4.el7    centos-openstack-ocata 101 k
 hiera           noarch 1:1.3.4-5.el7    centos-openstack-ocata  25 k
 libselinux-ruby x86_64 2.5-11.el7       base                   121 k
 openstack-packstack-puppet
                 noarch 1:10.0.1-1.el7   centos-openstack-ocata  62 k
 puppet          noarch 4.6.2-2.el7      centos-openstack-ocata 1.6 M
 puppet-aodh     noarch 10.4.1-1.el7     centos-openstack-ocata  44 k
 puppet-apache   noarch 1.11.0-1.58207d3git.el7
                                         centos-openstack-ocata 155 k
 puppet-ceilometer
                 noarch 10.3.1-1.el7     centos-openstack-ocata  55 k
 puppet-certmonger
                 noarch 1.1.1-2.el7      centos-openstack-ocata  20 k
 puppet-cinder   noarch 10.3.1-1.el7     centos-openstack-ocata  96 k
 puppet-concat   noarch 2.2.0-3.66022dcgit.el7
                                         centos-openstack-ocata  25 k
 puppet-corosync noarch 5.0.0-3.f438aa5git.el7
                                         centos-openstack-ocata  51 k
 puppet-firewall noarch 1.8.2-1.463ec1dgit.el7
                                         centos-openstack-ocata  60 k
 puppet-glance   noarch 10.3.1-1.el7     centos-openstack-ocata  71 k
 puppet-gnocchi  noarch 10.3.1-1.el7     centos-openstack-ocata  49 k
 puppet-heat     noarch 10.3.1-1.el7     centos-openstack-ocata  49 k
 puppet-horizon  noarch 10.5.0-1.el7     centos-openstack-ocata  42 k
 puppet-inifile  noarch 1.6.0-3.936ed07git.el7
                                         centos-openstack-ocata  31 k
 puppet-ironic   noarch 10.4.1-1.el7     centos-openstack-ocata  79 k
 puppet-keystone noarch 10.3.1-1.el7     centos-openstack-ocata 110 k
 puppet-magnum   noarch 10.4.0-1.el7     centos-openstack-ocata  32 k
 puppet-manila   noarch 10.3.1-1.el7     centos-openstack-ocata  56 k
 puppet-memcached
                 noarch 3.0.1-1.el7      centos-openstack-ocata  12 k
 puppet-mongodb  noarch 0.17.0-1.ed8d47bgit.el7
                                         centos-openstack-ocata  55 k
 puppet-mysql    noarch 3.10.0-2.aec7383git.el7
                                         centos-openstack-ocata  62 k
 puppet-neutron  noarch 10.3.1-1.el7     centos-openstack-ocata 150 k
 puppet-nova     noarch 10.4.1-1.el7     centos-openstack-ocata 132 k
 puppet-nssdb    noarch 1.0.1-1.el7      centos-openstack-ocata 6.7 k
 puppet-openstack_extras
                 noarch 10.3.1-1.el7     centos-openstack-ocata  42 k
 puppet-openstacklib
                 noarch 10.4.1-1.el7     centos-openstack-ocata  49 k
 puppet-oslo     noarch 10.3.1-1.el7     centos-openstack-ocata  36 k
 puppet-panko    noarch 10.3.1-1.el7     centos-openstack-ocata  33 k
 puppet-rabbitmq noarch 5.6.0-3.03b8592git.el7
                                         centos-openstack-ocata 251 k
 puppet-redis    noarch 1.2.4-1.a2d6395git.el7
                                         centos-openstack-ocata  31 k
 puppet-remote   noarch 0.0.1-2.2d3a477git.el7
                                         centos-openstack-ocata  11 k
 puppet-rsync    noarch 0.4.0-1.8cc3c6fgit.el7
                                         centos-openstack-ocata  13 k
 puppet-sahara   noarch 10.3.1-1.el7     centos-openstack-ocata  43 k
 puppet-ssh      noarch 3.0.1-2.el7      centos-openstack-ocata  21 k
 puppet-staging  noarch 1.0.4-1.b466d93git.el7
                                         centos-openstack-ocata  78 k
 puppet-stdlib   noarch 4.14.0-1.db8c1fbgit.el7
                                         centos-openstack-ocata 103 k
 puppet-swift    noarch 10.3.1-1.el7     centos-openstack-ocata  93 k
 puppet-sysctl   noarch 0.0.11-1.el7     centos-openstack-ocata 9.1 k
 puppet-tempest  noarch 10.3.1-1.el7     centos-openstack-ocata  32 k
 puppet-trove    noarch 10.3.1-1.el7     centos-openstack-ocata  56 k
 puppet-vcsrepo  noarch 1.5.0-1.247c33cgit.el7
                                         centos-openstack-ocata  42 k
 puppet-vswitch  noarch 6.3.1-1.el7      centos-openstack-ocata  36 k
 puppet-xinetd   noarch 2.0.0-3.9beb441git.el7
                                         centos-openstack-ocata  19 k
 python-docutils noarch 0.11-0.2.20130715svn7687.el7
                                         base                   1.5 M
 python-netaddr  noarch 0.7.18-1.el7     centos-openstack-ocata 1.3 M
 python-netifaces
                 x86_64 0.10.4-3.el7     base                    17 k
 python2-pbr     noarch 1.10.0-1.el7     centos-openstack-ocata 176 k
 python2-pyOpenSSL
                 noarch 16.2.0-3.el7     centos-openstack-ocata  88 k
 ruby            x86_64 2.0.0.648-30.el7 base                    69 k
 ruby-augeas     x86_64 0.5.0-1.el7      centos-openstack-ocata  23 k
 ruby-irb        noarch 2.0.0.648-30.el7 base                    90 k
 ruby-libs       x86_64 2.0.0.648-30.el7 base                   2.8 M
 ruby-shadow     x86_64 1.4.1-23.el7     centos-openstack-ocata  13 k
 rubygem-bigdecimal
                 x86_64 1.2.0-30.el7     base                    81 k
 rubygem-io-console
                 x86_64 0.4.2-30.el7     base                    52 k
 rubygem-json    x86_64 1.7.7-30.el7     base                    77 k
 rubygem-psych   x86_64 2.0.0-30.el7     base                    79 k
 rubygem-rdoc    noarch 4.0.0-30.el7     base                   319 k
 rubygem-rgen    noarch 0.6.6-2.el7      centos-openstack-ocata  84 k
 rubygems        noarch 2.0.14.1-30.el7  base                   216 k

Transaction Summary
======================================================================
Install  1 Package (+65 Dependent packages)

Total download size: 12 M
Installed size: 41 M
Is this ok [y/d/N]: y
... (생략)
  rubygem-rdoc.noarch 0:4.0.0-30.el7                                                       
  rubygem-rgen.noarch 0:0.6.6-2.el7                                                        
  rubygems.noarch 0:2.0.14.1-30.el7                                                        

Complete!

7 재부팅

[root@localhost ~]# reboot

8 인터넷 연결 확인 2

[root@allinone ~]# ping yahoo.com -c2
PING yahoo.com (206.190.36.45) 56(84) bytes of data.
64 bytes from ir1.fp.vip.gq1.yahoo.com (206.190.36.45): icmp_seq=1 ttl=45 time=522 ms
64 bytes from ir1.fp.vip.gq1.yahoo.com (206.190.36.45): icmp_seq=2 ttl=45 time=482 ms

--- yahoo.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 482.759/502.403/522.047/19.644 ms

9 answer 파일 생성

[root@allinone ~]# packstack --gen-answer-file answer.txt
[root@allinone ~]#

10 packstack 설치 실행

[root@allinone ~]# packstack --answer-file answer.txt
Welcome to the Packstack setup utility

The installation log file is available at: /var/tmp/packstack/20170914-143609-09_3cS/openstack-setup.log

Installing:
Clean Up                                             [ DONE ]
Discovering ip protocol version                      [ DONE ]
Setting up ssh keys                                  [ DONE ]

11 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}