Monday, August 22, 2022

Adventures of a Small Time OpenStack Sysadmin Chapter 054 - Bare Metal Install on hosts 1, 2, 3, and the docker USB server.

Adventures of a Small Time OpenStack Sysadmin relate the experience of converting a small VMware cluster into two small OpenStack clusters, and the adventures and friends I made along the way.

Adventures of a Small Time OpenStack Sysadmin Chapter 054 - Bare Metal Install on hosts 1, 2, 3, and the docker USB server.

https://docs.openstack.org/kolla-ansible/yoga/user/quickstart.html

https://docs.openstack.org/kolla-ansible/yoga/reference/index.html

Its the usual networking dance where netbooting is done on the non-LAG 1G ethernets and after a successful OS installation the networking is completely modified on the host and in the ethernet switch for LAG'd ethernets and VLANs.

Netboot and Install OS Ubuntu 20.04 LTS "Subiquity".

Leave the M2 alone, will configure it later, after the installer.

Remember to make the root partition on the controller 200G instead of 100G.

Username test, standard LAN password.

sudo apt-get update

sudo apt-get dist-upgrade

sudo apt-get autoremove

sudo apt-get clean

swapoff /swap.img, rm /swap.img, get rid of /swap.img file in /etc/fstab because I'm using a swap LVM partition not a swap file.

Configure the M2 on each host, using the labelswift script:

https://gitlab.com/SpringCitySolutionsLLC/openstack-scripts/-/blob/master/labelswift/label_swift.sh

Copy over the netplan setting up bond interfaces and VLANs and configure the ethernet switch.  After copying the file over, probably safest to log into the console via the IPMI KVM when altering the network.  Don't forget to ping test long packets to verify MTU settings...

https://gitlab.com/SpringCitySolutionsLLC/openstack-scripts/-/blob/master/backups/os3.cedar.mulhollon.com/netplan/netplan.yaml

Get LAN Ansible up and running to do basic configuration.  Fundamentally its just another Ubuntu server.  Cloud configs use "ubuntu" as a default username and for whatever reason when I set up physical servers I use the username "test".  Other than that, pretty uneventful.

Remember after setting up Zabbix to let it autodiscover drives and interfaces for a half hour or so after initial setup, but you NEED to shut off the autodiscovery rules in Zabbix for the OpenStack hosts before installing Kolla-Ansible or Zabbix will be flooded with virtual devices.

The docker server is a physical hardware Ubuntu install, netbooted on an Intel NUC mini-server.  The weird USB hardware devices plug into the NUC, the NUC hosts Ubuntu and Docker, the Docker containers run on NFS so nothing is stored locally on the docker server thus there really isn't anything to backup on the docker server itself.  There's not much else to say about the docker server.  It only exists because VMware USB passthrough is/was quite reliable but there is no such functionality on OpenStack.

Tomorrow will be a long post about Kolla-Ansible installation on Cluster 1.

Stay tuned for the next chapter!

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.