OpenStack

= Installation = Source: tecmint.com

Topology
Mgmt   PG-747 []--[OS]-[] ens160   ens192 10.10.30.8/23   10.70.47.100/24

Initial Steps
Requirement: CentOS VM 16 GB RAM 100 GB HDD 2 Virtual NICs

Interface Config:
 * Do not change the HWADDR and UUID keys
 * Do not assign IP address to Interface ens192
 * Enable Promiscuous mode for Interface ens192 in VMware

nano /etc/sysconfig/network-scripts/ifcfg-ens192

DEVICE=INTERFACE_NAME TYPE=Ethernet ONBOOT="yes" BOOTPROTO="none"

Remove unneeded services: systemctl stop postfix firewalld NetworkManager systemctl disable postfix firewalld NetworkManager systemctl mask NetworkManager yum remove postfix NetworkManager NetworkManager-libnm

Completely disable Selinux policy setenforce 0 getenforce vi /etc/selinux/config SELINUX=disabled

Set hostname hostnamectl set-hostname cloud.centos.lan

Install NTP yum install ntpdate

Install MariaDB: yum install mariadb-server systemctl start mariadb.service

Do not set the password for root user, else set it to blank again: mysqladmin -u root -p password

Preparing OpenStack Queens Installation
OpenStack will be deployed with the help of PackStack package provided by rdo repository (RPM Distribution of OpenStack): yum install https://www.rdoproject.org/repos/rdo-release.rpm

Setup the OpenStack repository: yum install -y centos-release-openstack-queens yum update -y

Packstack facilitates the deployment on multiple nodes for different components of OpenStack via SSH connections and Puppet modules: yum install openstack-packstack

Generate an answer file to deploy a standalone installation of Openstack (single node): packstack --gen-answer-file='date +"%d.%m.%y"'.conf

Edit the generated answer configuration file with a text editor: vi 03.09.18.conf

CONFIG_NTP_SERVERS=0.ro.pool.ntp.org CONFIG_PROVISION_DEMO=n CONFIG_KEYSTONE_ADMIN_PW=your_password         # For Admin user CONFIG_HEAT_INSTALL=y                          # Install OpenStack Orchestration (HEAT) CONFIG_HORIZON_SSL=y                           # Access OpenStack dashboard via HTTP with SSL enabled CONFIG_MARIADB_PW=mypassword1234               # The root password for MySQL server CONFIG_NAGIOS_INSTALL=n                        # Disable Nagios

Enable Root SSH login by uncomment below line: vi /etc/ssh/sshd_config PermitRootLogin yes

systemctl restart sshd

Start Installation using Packstack Answer File
Using above Answer file: packstack --answer-file 13.04.16.conf

Default setup without Answer file: packstack --allinone

Credentials can be found (if you haven’t set it in the answers.txt file) in below file: cat keystonerc_admin

= Verification =

source keystonerc_admin openstack user list openstack project list openstack service list openstack catalog list

neutron router-port-list adminrouter neutron router-port-list --column id --column status --column fixed_ips adminrouter neutron port-show 43c9ff00-07ce-4069-a734-4e6d5e795e6a

= Troubleshooting =


 * References