Installing OpenStack with PackStack

Length: 00:22:23

Lesson Summary:

In this video, we will deploy an all-in-one OpenStack Queens node on CentOS 7.5 using the RDO PackStack utility.

  1. Install CentOS OpenStack Queens repository:
    $ yum -y install centos-release-openstack-packstack
    
  • Disable NetworkManager and firewalld:
    $ systemctl disable --now NetworkManager firewalld
    
  • Install Packstack:
    $ yum -y install openstack-packstack
    
  • Generate answers.txt answer file:
    $ packstack --gen-answer-file=/root/answers.txt
    
  • Populate answers.txt with the following:
    CONFIG_HEAT_INSTALL=y ### This is optional, but **highly recommended** if you will be using O-o-O playbooks
    CONFIG_NTP_SERVERS=0.centos.pool.ntp.org,1.centos.pool.ntp.org,2.centos.pool.ntp.org,3.centos.pool.ntp.org
    CONFIG_KEYSTONE_ADMIN_TOKEN=openstack123
    CONFIG_KEYSTONE_ADMIN_PW=openstack
    CONFIG_KEYSTONE_DEMO_PW=openstack
    # Optional - configure Cinder storage as high as your system resources will allow
    CONFIG_CINDER_VOLUMES_SIZE=200G 
    # Enable Neutron LBaaS for O-o-O-123 playbooks
    CONFIG_LBAAS_INSTALL=y
    CONFIG_NEUTRON_ML2_TYPE_DRIVERS=vxlan,flat
    CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=vxlan
    CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS=openvswitch
    CONFIG_NEUTRON_L2_AGENT=openvswitch
    CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=extnet:br-ex
    # IMPORTANT - $HOST_NETWORK should match your home network name (ex: eth0)
    CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:$HOST_NETWORK
    CONFIG_PROVISION_DEMO=y
    # CIDR network address for the floating IP subnet. This should be the same subnet as your home network
    CONFIG_PROVISION_DEMO_FLOATRANGE=192.168.1.0/24
    
  • Install OpenStack using PackStack:
    $ packstack --answer-file=/root/answers.txt
    

Once installation completes, you can visit the Horizon dashboard by entering http://$CORE_IP in a web browser window.


This lesson is only available to Linux Academy members.

Sign Up To View This Lesson
Or Log In

Looking For Team Training?

Learn More