Skip to content
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

Add force and max_wait parameters to destroy_model() #409

Merged

Conversation

ajkavanagh
Copy link
Contributor

For tests we need to make sure the model is destroyed, and that means
provided force to it. We also want to only wait about 10 minutes.
Finally, we want to make sure that the model is actually destroyed. If
not, we'll bail out as something rather drastic has gone wrong.

For tests we need to make sure the model is destroyed, and that means
provided force to it.  We also want to only wait about 10 minutes.
Finally, we want to make sure that the model is actually destroyed.  If
not, we'll bail out as something rather drastic has gone wrong.
@codecov-io
Copy link

codecov-io commented Jan 19, 2021

Codecov Report

Merging #409 (e93ab1d) into master (41e6b22) will increase coverage by 0.01%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #409      +/-   ##
==========================================
+ Coverage   82.16%   82.18%   +0.01%     
==========================================
  Files          29       29              
  Lines        2277     2284       +7     
==========================================
+ Hits         1871     1877       +6     
- Misses        406      407       +1     
Impacted Files Coverage Δ
zaza/controller.py 73.07% <83.33%> (+0.73%) ⬆️
zaza/utilities/exceptions.py 96.49% <100.00%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41e6b22...e93ab1d. Read the comment docs.

It turns out that the juju destroy_model() function returns before the
model has dissapeared from .list_models().  It can also still be seen in
the juju status after the function has returned.  Async issues, I
suspect.  Anyway, this commit adds a retry to provide time for the
deleted model to disappear, and thus (hopefully) all the resources to be
cleaned up.
openstack-mirroring pushed a commit to openstack/charm-percona-cluster that referenced this pull request Jan 21, 2021
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
* Include NoNetworkBinding late fix.

func-test-pr: openstack-charmers/zaza#409
Change-Id: I1a97004410c5cf4ef98164281137bce46756b12c
openstack-mirroring pushed a commit to openstack/openstack that referenced this pull request Jan 21, 2021
* Update charm-percona-cluster from branch 'master'
  to af9c467e353ca8e9254809f8f289fc383284da5e
  - 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
    * Include NoNetworkBinding late fix.
    
    func-test-pr: openstack-charmers/zaza#409
    Change-Id: I1a97004410c5cf4ef98164281137bce46756b12c
@ajkavanagh ajkavanagh marked this pull request as ready for review January 21, 2021 09:24
@ChrisMacNaughton ChrisMacNaughton merged commit 7d694ad into openstack-charmers:master Jan 21, 2021
@ajkavanagh ajkavanagh deleted the make-destroy-model-force branch January 21, 2021 09:29
coreycb pushed a commit to coreycb/zaza that referenced this pull request Oct 17, 2023
…rot/rabbitmq-910-pause-resume

Make RmqTests.test_910_pause_and_resume more robust
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants