linux · openstack

openstack: calculate for how long a server is running

Today I needed to collected the time between the creation of server and the current day. Given some activities that requires monitoring those servers, an automated approach is vital for optimizing the amount of time dedicating to it. As I couldn’t find an option that could give the result right away in the openstack-cli tool,… Continue reading openstack: calculate for how long a server is running

linux · openstack

openstack: modifying an image where you lost access

0 – Install python-openstaclient and unlock the access to the openstack where your VM is located. 1 – Download the image you want to modify 2 – Install Qemu utils 3 – Export the image to nbd. The first command loads the nbd kernel module. The “max_part=N” option specifies the maximum number of partitions we… Continue reading openstack: modifying an image where you lost access

linux · openstack

openstack: deleting several VMs automatically

Instead of deleting several VMs using Openstack UI you can execute it by the command line, making the process semi-automated. The first step is to install the openstack command on your Linux distribution. You can learn more about it here. Once the setup is done, you can use the following command to filter and deleted… Continue reading openstack: deleting several VMs automatically