Maintenance Pre Upgrade

This is just a quick video to clean up VAR log and get the current version of openstack software before we do a whole cloud upgrade.



Display file systems on nova compute nodes:
df -h

This is a good command to show you what is filling up your root file system, it takes a while to run.
 sudo du --max-depth=5 /* | sort -rn >/tmp/greedy.txt 

Then read the txt file it generated:
sudo nano /tmp/greedy.txt

In my file most of the space was being used up by /var/log:

If you don't need the logs and this is a sandbox environment use this command to clean out /var/log
sudo rm /var/log/*

Clean out the nova and neutron folders as well:
sudo rm /var/log/nova/*
sudo rm /var/log/neutron/*

Before we upgrade login to one of your nova compute nodes and check the current version:
nova-manage --version

I am running 12.0.0, a quick google says this is the Liberty version.

Also check your openstack-install package on the MAAS server, just note what version you are using before the upgrade.
dpkg -l | grep openstack

chris@maas:~$ dpkg -l | grep openstack
ii  openstack                           0.99.27-0~1503~stable1~ubuntu14.04.1  all          Ubuntu Openstack Installer
ii  openstack-landscape                 0.99.27-0~1630~stable1~ubuntu14.04.1  all          Ubuntu Openstack Installer (landscape) - dependency package
ii  openstack-multi                     0.99.27-0~1630~stable1~ubuntu14.04.1  all          Ubuntu Openstack Installer (multi-system) - dependency package




Comments