Deploy Horizon (any releases) from tarballs with Apache for isolated user in virtual environment.

If your company use OpenStack clouds without ‘Horizon Dashboard’ interface, you may wish to deploy your own horizon instance. Or you can use this method for permanent deploy any version of Horizont in your clouds.

However, your concern is that http might be insecure… especially if hosted on a VM or machine accessible from the Internet. So you want an SSL connection. It is will be in next parts of articles

ref: https://docs.openstack.org/developer/horizon/topics/install.html

“Deploy Horizon (any releases) from tarballs with Apache for isolated user in virtual environment.”Continue reading

5 – five-minute introduction to the module logging Python

The use of pirnt is suitable for those programmers who have enough time. But it’s better to use logging. In addition, learn to use the Python debugger for debugging errors and Pylint to prevent errors and to make the code more readable.
In order to display the log messages on the screen, use the following code:

“5 – five-minute introduction to the module logging Python”Continue reading

Flush Expired Openstack Keystone Tokens

After a while of running Openstack and performing a lot of testing (especially Tempest) you may find that your database seems to get pretty full … and this is partly down to expired keystone token’s that remain in the DB table.

To resolve this simply setup a periodic Cron job to execute

1
# /usr/bin/keystone-manage token_flush

This will remove all expired tokens to help clean-up the DB a bit

Of course, this action better to insert as cron task:

1
2
3
4
# cat keystone_token_flush
#!/bin/bash

10 * * * * root /usr/bin/keystone-manage token_flush
Scroll to top