action to stop and start all instances on a hypervisor
Bug #1964694 reported by
James Troup
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Compute Charm |
Won't Fix
|
Wishlist
|
Unassigned | ||
charm-cloudsupport |
Fix Released
|
Undecided
|
Robert Gildein |
Bug Description
For maintenance purposes, it'd be nice if there was an action to stop or start all instances on a hypervisor, i.e. equivalent to:
openstack server list --all --host HYPERVISOR_NAME -c ID -f value | xargs -n1 -iXX openstack server stop XX
Ideally it would return once all the VMs had either reached SHUTOFF or ACTIVE state.
Related branches
~rgildein/charm-cloudsupport:lp1964694
- Erhan Sunar (community): Approve
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
- Sudeep Bhandari (community): Approve
- Eric Chen: Needs Information
- BootStack Reviewers: Pending requested
- Canonical IS BootStack: Pending requested
-
Diff: 649 lines (+500/-18)9 files modifiedMakefile (+2/-2)
actions.yaml (+48/-1)
lib/lib_cloudsupport.py (+73/-0)
src/charm.py (+34/-2)
tests/functional/tests/modules/test_cloudsupport.py (+44/-4)
tests/unit/conftest.py (+59/-0)
tests/unit/test_charm.py (+91/-0)
tests/unit/test_lib_cloudsupport.py (+140/-0)
tox.ini (+9/-9)
Changed in charm-nova-compute: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
tags: | added: good-first-bug |
Changed in charm-nova-compute: | |
assignee: | nobody → Robert Gildein (rgildein) |
Changed in charm-nova-compute: | |
status: | Triaged → In Progress |
Changed in charm-nova-compute: | |
assignee: | Robert Gildein (rgildein) → nobody |
Changed in charm-cloudsupport: | |
status: | New → In Progress |
assignee: | nobody → Robert Gildein (rgildein) |
tags: | added: bseng-126 |
Changed in charm-cloudsupport: | |
status: | In Progress → Fix Committed |
milestone: | none → 22.10 |
Changed in charm-cloudsupport: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/c/openstack /charm- nova-compute/ +/835469
Review: https:/