Bug 1859932
Summary: | InstanceHA does not evacuate instances created with private flavor in tenant project. | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Rohini Diwakar <rdiwakar> | ||||
Component: | fence-agents | Assignee: | pkomarov | ||||
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 8.2 | CC: | cfeist, cluster-maint, dabarzil, jjoyce, jschluet, lmiccini, oalbrigt, pkomarov, sbradley, slinaber, tvignaud | ||||
Target Milestone: | rc | Keywords: | Triaged, ZStream | ||||
Target Release: | 8.4 | ||||||
Hardware: | x86_64 | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Fixed In Version: | fence-agents-4.2.1-53.el8 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1862024 1867156 (view as bug list) | Environment: | |||||
Last Closed: | 2020-11-04 02:29:00 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1862024, 1867156 | ||||||
Attachments: |
|
Description
Rohini Diwakar
2020-07-23 10:44:14 UTC
we can probably address the private flavor and private image usecases in a single patch. diff --git a/agents/evacuate/fence_evacuate.py b/agents/evacuate/fence_evacuate.py index 88837dd8..d18a9d3d 100644 --- a/agents/evacuate/fence_evacuate.py +++ b/agents/evacuate/fence_evacuate.py @@ -87,7 +87,7 @@ def _is_server_evacuable(server, evac_flavors, evac_images): def _get_evacuable_flavors(connection): result = [] - flavors = connection.flavors.list() + flavors = connection.flavors.list(is_public=None) # Since the detailed view for all flavors doesn't provide the extra specs, # we need to call each of the flavor to get them. for flavor in flavors: @@ -103,7 +103,7 @@ def _get_evacuable_images(connection): images = connection.images.list(detailed=True) elif hasattr(connection, "glance"): # OSP12+ - images = connection.glance.list() + images = connection.glance.list(is_public=None) for image in images: if hasattr(image, 'metadata'): probably this is not needed: - images = connection.glance.list() + images = connection.glance.list(is_public=None) Created attachment 1712891 [details]
Verification steps
Verified ,
verification steps are in the attachment (too long for a regular comment)
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (fence-agents bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:4622 |