becool

20210705 (월) packstack 설치 본문

openstack

20210705 (월) packstack 설치

gusalstm 2021. 7. 5. 17:49
반응형

 

Virtual Box 세팅시.

redhat linux 64

16GB 이상의 RAM

150GB 수준의 스토리지 (동적할당)

프로세서 4개~8개 (네스티드 VT-x /AMD-V 사용하기 체크 : CPU 가상화)

NAT네트워크 1 + 호스트 전용 1

NIC 네트워크 무작위 설정 체크

 

 

설치시.

네트워크 -> General -> automatically connect … 체크

네트워크 -> IPv4 Settings -> 아이피설정 (호스트전용아이피는 Gateway 를 공란으로 저장)

네트워크 -> host name : allinone.osp.exam.com

INSTALLATION DESTINATION : 오토파티셔닝 해제 -> 확인 -> 홈디렉터리 할당 삭제(-) 클릭 -> 루트디렉터리(/) 전체할당 → update setting 클릭

  → TEST환경이므로 루트디렉터리에 할당.

  → 실제 환경에서는 각 디렉터리마다 권장사양에 맞춰 파티셔닝 진행

Server with Gui

Software selection : Server with GUI

 

초기구성시.

 /etc/hosts 파일 주소 등록

 NetworkManager, firewalld 서비스 비활성화

 network, chronyd 서비스 활성화

10.0.2.100 allinone.osp.exam.com allinone controller compute

[root@allinone ~]# systemctl disable --now NetworkManager

[root@allinone ~]# systemctl disable --now firewalld

[root@allinone ~]# systemctl is-active NetworkManager

[root@allinone ~]# systemctl is-enabled NetworkManager

[root@allinone ~]# sysetmctl enable chronyd

 

설치

1) yum update 로 커널/패키지 최신 버전으로 업
2) 재부팅
3) centos-release-openstack-XXXX (stein)
4) 추가 업데이트 
5) openstack-packstack , openstack-selinux
6) packstack 실행
-> 실행 시 answer-file 사용
default / admin 패스워드
각종 서비스 설치 유무
Neutron 서비스 설정
( openvswitch -> ovs  /  ovn -> ovn )
-> 외부 및 터널 브릿지에 대한 설정
+@ Swift 서비스 (파일시스템)
+@ 시스템 IP 주소

 

[root@allinone ~]# vim /etc/hosts^C
[root@allinone ~]# systemctl disable NetworkManager firewalld^C
[root@allinone ~]# systemctl enable chronyd^C
[root@allinone ~]# yum update -y ; reboot^C
[root@allinone ~]# yum install centos-release-openstack-stein -y ^C
[root@allinone ~]# yum update -y^C
[root@allinone ~]# yum install openstack-packstack openstack-selinux^C
[root@allinone ~]# packstack --gen-answer-file=answers.txt^C
[root@allinone ~]# vim answers.txt^C
[root@allinone ~]# packstack --answer-file=answers.txt^C

 

-------

answers.txt

 

[general]

3 # Path to a public key to install on servers. If a usable key has not
4 # been installed on the remote servers, the user is prompted for a
5 # password and this key is installed so the password will not be
6 # required again.
7 CONFIG_SSH_KEY=/root/.ssh/id_rsa.pub

9 # Default password to be used everywhere (overridden by passwords set
10 # for individual services or users).
11 CONFIG_DEFAULT_PASSWORD=1234

59 # Specify 'y' to install OpenStack Orchestration (heat). ['y', 'n']
60 CONFIG_HEAT_INSTALL=y

77 # Comma-separated list of NTP servers. Leave plain if Packstack
78 # should not install ntpd on instances.
79 CONFIG_NTP_SERVERS=kr.pool.ntp.org

321 # User name for the Identity service 'admin' user.  Defaults to
322 # 'admin'.
323 CONFIG_KEYSTONE_ADMIN_USERNAME=admin
324
325 # Password to use for the Identity service 'admin' user.
326 CONFIG_KEYSTONE_ADMIN_PW=1234

780 # Specify 'y' to install OpenStack Networking's Load-Balancing-
781 # as-a-Service (LBaaS). ['y', 'n']
782 CONFIG_LBAAS_INSTALL=y

807 # Comma-separated ordered list of networking mechanism driver entry
808 # points to be loaded from the neutron.ml2.mechanism_drivers
809 # namespace. ['logger', 'test', 'linuxbridge', 'openvswitch',
810 # 'hyperv', 'ncs', 'arista', 'cisco_nexus', 'mlnx', 'l2population',
811 # 'sriovnicswitch', 'ovn']
812 CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS=openvswitch

842 # Name of the L2 agent to be used with OpenStack Networking.
843 # ['linuxbridge', 'openvswitch', 'ovn']
844 CONFIG_NEUTRON_L2_AGENT=openvswitch

858 # Comma-separated list of bridge mappings for the OpenStack
859 # Networking Open vSwitch plugin. Each tuple in the list must be in
860 # the format <physical_network>:<ovs_bridge>. Example: physnet1:br-
861 # eth1,physnet2:br-eth2,physnet3:br-eth3
862 CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=extnet:br-ex
863 
864 # Comma-separated list of colon-separated Open vSwitch
865 # <bridge>:<interface> pairs. The interface will be added to the
866 # associated bridge. If you desire the bridge to be persistent a value
867 # must be added to this directive, also
868 # CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS must be set in order to create
869 # the proper port. This can be achieved from the command line by
870 # issuing the following command: packstack --allinone --os-neutron-
871 # ovs-bridge-mappings=ext-net:br-ex --os-neutron-ovs-bridge-interfaces
872 # =br-ex:eth0
873 CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:enp0s3


893 # Interface for the Open vSwitch tunnel. Packstack overrides the IP
894 # address used for tunnels on this hypervisor to the IP found on the
895 # specified interface (for example, eth1).
896 CONFIG_NEUTRON_OVS_TUNNEL_IF=enp0s8
897
898 # Comma-separated list of subnets (for example,
899 # 192.168.10.0/24,192.168.11.0/24) used for sending tunneling packets.
900 # This is used to configure IP filtering to accept tunneling packets
901 # from these subnets instead of specific IP addresses of peer nodes.
902 # This is useful when you add existing nodes to EXCLUDE_SERVERS
903 # because, in this case, packstack cannot modify the IP filtering of
904 # the existing nodes.
905 CONFIG_NEUTRON_OVS_TUNNEL_SUBNETS=192.168.56.0/24

1147 # File system type for storage nodes. ['xfs', 'ext4']
1148 CONFIG_SWIFT_STORAGE_FSTYPE=xfs

1184 # Specify 'y' to provision for demo usage and testing. ['y', 'n']
1185 CONFIG_PROVISION_DEMO=n

...

...

[root@allinone /]# packstack --answer-file=answers.txt → 설치 시작

728x90

'openstack' 카테고리의 다른 글

20210709 (금) 설치 후 기초 #4  (0) 2021.07.09
20210708(목) 설치 후 기초#3  (0) 2021.07.08
20210707 (수) 설치 후 기초#2  (0) 2021.07.07
20210706 (화) 설치 후 기초#1  (0) 2021.07.06
20210705 (월) 가상화 기초  (0) 2021.07.05
Comments