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

78번째 줄: 78번째 줄:
</source>
</source>


==openstack-packstack 설치==
==centos-release-openstack 설치==
<source lang='console'>
<source lang='console'>
[root@localhost ~]# yum list centos-release-openstack-*
[root@localhost ~]# yum list centos-release-openstack-*

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

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

1 개요

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

2 사전작업

3 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

4 이더넷 시작·설정

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

5 인터넷 연결 확인

[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

6 SELINUX 비활성화

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

7 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.

8 방화벽 비활성화

[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.

9 호스트명 변경

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

10 시간대 설정

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

11 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!
[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
[root@localhost ~]# yum install openstack-packstack

12 재부팅

[root@localhost ~]# reboot

13 인터넷 연결 확인 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

14 answer 파일 생성

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

15 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 ]

16 같이 보기

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