IT/Openstack

[Openstack - Train] Centos에 설치하기(1) - Repository 설정

louky 2019. 10. 31. 10:37
반응형

기본적인 OS 및 네트워크 환경이 설정 되어 있다는 가정하에 바로 Openstack을 설치 하는 과정을 정리하였습니다. 

Openstack이전의 설정 과정은 docs.openstack.org를 참고하길 바랍니다. 

 

 

1-1. Openstackrepository 설정 

- 이 단계는 모든 openstack node에서 설정을 해야 한다. 

[root@controller ~]# yum install centos-release-openstack-train

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: data.aonenetworks.kr
 * extras: data.aonenetworks.kr
 * updates: ftp.riken.jp
Resolving Dependencies
--> Running transaction check
---> Package centos-release-openstack-train.noarch 0:1-1.el7.centos will be installed
--> Processing Dependency: centos-release-qemu-ev for package: centos-release-openstack-train-1-1.el7.centos.noarch
--> Processing Dependency: centos-release-ceph-nautilus for package: centos-release-openstack-train-1-1.el7.centos.noarch
--> Running transaction check
---> Package centos-release-ceph-nautilus.noarch 0:1.2-2.el7.centos will be installed
--> Processing Dependency: centos-release-storage-common for package: centos-release-ceph-nautilus-1.2-2.el7.centos.noarch
--> Processing Dependency: centos-release-nfs-ganesha28 for package: centos-release-ceph-nautilus-1.2-2.el7.centos.noarch
---> Package centos-release-qemu-ev.noarch 0:1.0-4.el7.centos will be installed
--> Processing Dependency: centos-release-virt-common for package: centos-release-qemu-ev-1.0-4.el7.centos.noarch
--> Running transaction check
---> Package centos-release-nfs-ganesha28.noarch 0:1.0-2.el7.centos will be installed
---> Package centos-release-storage-common.noarch 0:2-2.el7.centos will be installed
---> Package centos-release-virt-common.noarch 0:1-1.el7.centos will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================
 Package                                  Arch             Version                       Repository        Size
================================================================================================================
Installing:
 centos-release-openstack-train           noarch           1-1.el7.centos                extras           5.3 k
Installing for dependencies:
 centos-release-ceph-nautilus             noarch           1.2-2.el7.centos              extras           5.1 k
 centos-release-nfs-ganesha28             noarch           1.0-2.el7.centos              extras           4.3 k
 centos-release-qemu-ev                   noarch           1.0-4.el7.centos              extras            11 k
 centos-release-storage-common            noarch           2-2.el7.centos                extras           5.1 k
 centos-release-virt-common               noarch           1-1.el7.centos                extras           4.5 k

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

Total download size: 35 k
Installed size: 25 k
Is this ok [y/d/N]: y
Downloading packages:
(1/6): centos-release-ceph-nautilus-1.2-2.el7.centos.noarch.rpm                          | 5.1 kB  00:00:00
(2/6): centos-release-nfs-ganesha28-1.0-2.el7.centos.noarch.rpm                          | 4.3 kB  00:00:00
(3/6): centos-release-qemu-ev-1.0-4.el7.centos.noarch.rpm                                |  11 kB  00:00:00
(4/6): centos-release-openstack-train-1-1.el7.centos.noarch.rpm                          | 5.3 kB  00:00:00
(5/6): centos-release-storage-common-2-2.el7.centos.noarch.rpm                           | 5.1 kB  00:00:00
(6/6): centos-release-virt-common-1-1.el7.centos.noarch.rpm                              | 4.5 kB  00:00:00
----------------------------------------------------------------------------------------------------------------
Total                                                                           225 kB/s |  35 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : centos-release-storage-common-2-2.el7.centos.noarch                                          1/6
  Installing : centos-release-nfs-ganesha28-1.0-2.el7.centos.noarch                                         2/6
  Installing : centos-release-ceph-nautilus-1.2-2.el7.centos.noarch                                         3/6
  Installing : centos-release-virt-common-1-1.el7.centos.noarch                                             4/6
  Installing : centos-release-qemu-ev-1.0-4.el7.centos.noarch                                               5/6
  Installing : centos-release-openstack-train-1-1.el7.centos.noarch                                         6/6
  Verifying  : centos-release-openstack-train-1-1.el7.centos.noarch                                         1/6
  Verifying  : centos-release-virt-common-1-1.el7.centos.noarch                                             2/6
  Verifying  : centos-release-nfs-ganesha28-1.0-2.el7.centos.noarch                                         3/6
  Verifying  : centos-release-ceph-nautilus-1.2-2.el7.centos.noarch                                         4/6
  Verifying  : centos-release-storage-common-2-2.el7.centos.noarch                                          5/6
  Verifying  : centos-release-qemu-ev-1.0-4.el7.centos.noarch                                               6/6

Installed:
  centos-release-openstack-train.noarch 0:1-1.el7.centos

Dependency Installed:
  centos-release-ceph-nautilus.noarch 0:1.2-2.el7.centos centos-release-nfs-ganesha28.noarch 0:1.0-2.el7.centos
  centos-release-qemu-ev.noarch 0:1.0-4.el7.centos       centos-release-storage-common.noarch 0:2-2.el7.centos
  centos-release-virt-common.noarch 0:1-1.el7.centos

Complete!

 

Repository설정이 완료 된 후에는 현재 시스템의 PKG를 최신화로 업그레이드를 한다. 

[root@controller ~]# yum -y upgrade

 

업그이드가 완료 되면 Openstack client를 설치 한다. 

[root@controller ~]# yum install python-openstackclient -y

Openstack-selinux PKG를 설치한다. 

: REDHAT이나 Centos 계정에서는 기본적으로  Selinux가 활성화 되는데  openstack-selinux  pkg를 설치함으로써 Openstack내 서비스들에 대한 보안 정책을 자동으로 관리한다. 

[root@controller ~]# yum install -y openstack-selinux

 

반응형