Skip to content

Instantly share code, notes, and snippets.

@psolru
Last active April 23, 2021 16:02
Show Gist options
  • Save psolru/60c4046e726ef1397ab2b9c85583cc1e to your computer and use it in GitHub Desktop.
Save psolru/60c4046e726ef1397ab2b9c85583cc1e to your computer and use it in GitHub Desktop.
Openstack ussuri installation guide - basically just a reminder for me, but if you find it useful have fun ^^

Disable NetworkManager

systemctl disable --now NetworkManager

Check if NetworkManager is disabled (all of them)

systemctl list-unit-files | grep NetworkManager

Install network-scripts

yum install network-scripts -y

If dns resolving fails: Setup some nameserver and try install again

nano /etc/resolv.conf

Disable deprecation warnings

touch /etc/sysconfig/disable-deprecation-warnings

Enable and start network-scripts service

systemctl enable --now network

Check if network scripts are enabled && running

systemctl status network

Edit network interface accordingly

nano /etc/sysconfig/network-scripts/ifcfg-< INTERFACE_NAME >

TYPE="Ethernet"
DEVICE="< INTERFACE_NAME >"
UUID="< INTERFACE_UUID >"
ONBOOT="yes"
BOOTPROTO="static"

IPADDR="< IPv4_ADDRESS >"
NETMASK="< NETMASK >"
GATEWAY="< GATEWAY >"

# No IPv6 right now, sorry! Just a reminder here for me so I update it later … maybe … ^^
# IPV6INIT="yes"

# Nameservers
DNS1=1.1.1.1
DNS2=8.8.8.8

Set hostname accordingly

hostnamectl set-hostname "< HOSTNAME >"
nano /etc/hosts # change all occurrences
exec bash

Check if you network interface is working properly - good luck :-)

systemctl reboot

Verify nameservers are working

ping example.com
ping google.com

Disable selinux / Set selinux to permissive

sudo setenforce 0
sudo sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config && cat /etc/selinux/config
sestatus

Install some basic packages

sudo dnf install -y wget curl bash-completion dnf-utils telnet vim screen

Enable the OpenStack repository

dnf config-manager --enable PowerTools

Update system

dnf update -y

Install the OpenStack and Openstack packstack tooling

dnf install -y centos-release-openstack-ussuri
dnf install -y openstack-packstack

Ensure virt-module is enabled

dnf -y module enable virt

Some weird stuff comes up now - see reddit comment by claus_tuxi:

dnf remove hiera -y
dnf config-manager --disable epel
dnf install -y openstack-packstack

Make a last reboot before install to ensure our setup is working and persistent so far

systemctl reboot

We're ready to rock!
Generate packstack answer file ...

packstack --gen-answer-file=/root/answer.txt

... and adjust it to your needs ...

nano /root/answer.txt

... and action! In my cases it can take up to 5-15 minutes ...

packstack --answer-file=/root/answer.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment