Using coverage with multiple parallel GitLab CI jobs

Posted on Sun 10 March 2019 in hints-and-kinks • Tagged with Python, CI, GitLab

If you ever write unit tests in Python, you are probably familiar with Ned Batchelder’s coverage tool. This article explains how you can use coverage in combination with tox and a GitLab CI pipeline, for coverage reports in your Python code.


Continue reading

Building a nested CLI parser from a dictionary

Posted on Sat 09 March 2019 in hints-and-kinks • Tagged with Python

Here’s a nice way to initialize a CLI argument parser in Python, with arbitrary levels of subcommands.


Continue reading

1,000 routers per tenant? Think again!

Posted on Sat 08 December 2018 in hints-and-kinks • Tagged with OpenStack

When you allow one of your OpenStack tenants a large number of routers, they may not be getting as many as you think they will.


Continue reading

More recommendations for Ceph and OpenStack

Posted on Thu 03 August 2017 in hints-and-kinks • Tagged with OpenStack, Ceph

Our series on best practices for Ceph and OpenStack continues.


Continue reading

Importing an existing Ceph RBD image into Glance

Posted on Fri 17 February 2017 in hints-and-kinks • Tagged with Ceph, OpenStack

As an OpenStack/Ceph operator, you may sometimes want to forgo uploading a new image using the Glance API, because the process can be inefficient and time-consuming. Here's a faster way.


Continue reading