New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reap instances on openstack provider and destroy storage #411
Reap instances on openstack provider and destroy storage #411
Conversation
If a sequence of bundles (e.g. for func) creates storage, if destroy_storage is not used, then the model (possibly) leaves the storage behind. This patch enables the destroy_storage feature in destroy_model() call in python_libjuju.
Codecov Report
@@ Coverage Diff @@
## master #411 +/- ##
=======================================
Coverage 82.20% 82.20%
=======================================
Files 29 29
Lines 2287 2287
=======================================
Hits 1880 1880
Misses 407 407
Continue to review full report at Codecov.
|
Essentially, the destroy-model with --force (via libjuju) doesn't reap the instances leading to CI failures if multiple bundles are used as it relies on proper clean-up of the instances and their vips. This patch uses the undercloud OpenStack directly to remove the instances that used to belong to the model that was just destroyed. Only has an affect on the openstack provider.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general, thanks!
Includes updates to charmhelpers/charms.openstack for cert_utils and unit-get for the install hook error on Juju 2.9 * charm-helpers sync for classic charms * rebuild for reactive charms * ensure tox.ini is from release-tools * ensure requirements.txt files are from release-tools * On reactive charms: - ensure master branch for charms.openstack - ensure master branch for charm-helpers The func test pr is to test/verify the reap instances change in zaza. func-test-pr: openstack-charmers/zaza#411 Change-Id: I744bd6f88c88ef30754bcf947c5379334b24631a
* Update charm-masakari from branch 'master' to 74a2bc949cff379b2c2427af052468fe43144b51 - Updates for testing period for 20.01 release Includes updates to charmhelpers/charms.openstack for cert_utils and unit-get for the install hook error on Juju 2.9 * charm-helpers sync for classic charms * rebuild for reactive charms * ensure tox.ini is from release-tools * ensure requirements.txt files are from release-tools * On reactive charms: - ensure master branch for charms.openstack - ensure master branch for charm-helpers The func test pr is to test/verify the reap instances change in zaza. func-test-pr: openstack-charmers/zaza#411 Change-Id: I744bd6f88c88ef30754bcf947c5379334b24631a
Travis seems not to pick the last change up, but since it's minor and the previous commit was validating, I'm landing this, thanks! |
…-octavia-tempest Add Octavia to Tempest service list
If a sequence of bundles (e.g. for func) creates storage, if
destroy_storage is not used, then the model (possibly) leaves the
storage behind. This patch enables the destroy_storage feature in
destroy_model() call in python_libjuju.