Microstack is a great alternative to using detailed installation steps that can take a while to configure. Microstack is installed using Canonicals snap package and deployment manager. Once installed the openstack server is easily configured with a single command. But of course things can become a bit more complicated. This document is to capture any additional configuration steps that I have encountered while installing and using Microstack.

Installation Steps

Installing Microstack

sudo snap install microstack --beta

Initializing Microstack

sudo microstack init --auto --control --setup-loop-based-cinder-lvm-backend --loop-device-file-size <SizeInGB>

replace <SizeInGB> with the size of the lvm volume.

Run This Command to add Glance CA certs to Cinder

sudo tee /var/snap/microstack/common/etc/cinder/cinder.conf.d/glance.conf <<EOF 
glance_ca_certificates_file = /var/snap/microstack/common/etc/ssl/certs/cacert.pem

Now restart Cinder's uwsgi/volume/scheduler

sudo snap restart microstack.cinder-{uwsgi,scheduler,volume}

Source: Lucca Jiménez Könings

Extending LVM

So you have the server installed, but you have additional local disks you want to add to the LVM group and logical volume. Welp, this should fix that.

To format a drive to use in the volume group run this command:

pvcreate <device>

replace <device> with the dev path e.g. /dev/sda be careful this will wipe the disk.

Extend the volume group cinder-volumes

vgextend cinder-volumes <device>

replace <device> with the device/volume path e.g. /dev/sda

To see the availabe space on the volume group run the command:

 --- Volume group ---
  VG Name               cinder-volumes
  System ID             
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  27
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                7
  Open LV               6
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               2.57 TiB
  PE Size               4.00 MiB
  Total PE              674681
  Alloc PE / Size       674575 / 2.57 TiB
  Free  PE / Size       23387016 / 89.1 TiB
  VG UUID               SeRH75-asNV-nWDC-c8dt-cbSA-5i0g-J7vFvo

Extend the cinder-volume's cinder-volumes-pool

lvextend cinder-volumes/cinder-volumes-pool -L <Size>

replace <Size> with the available space e.g. 91.67TB (2.57TB+89.1TB)

Read more in the RedHat documentation