Blame SOURCES/bz1862024-fence_evacuate-support-private-flavors.patch

d00b21
From 18ef1622475db947aef70042523f4a176c4155bd Mon Sep 17 00:00:00 2001
d00b21
From: Luca Miccini <lmiccini@redhat.com>
d00b21
Date: Thu, 23 Jul 2020 14:33:38 +0200
d00b21
Subject: [PATCH] [fence_evacuate] Enable evacuation of instances using private
d00b21
 flavors
d00b21
d00b21
This commit extends the flavor.list() api call in the fence_evacuate
d00b21
agent to fetch private flavors that could be tagged with the 'evacuable'
d00b21
attribute, allowing instance-ha to be enabled on a per tenant basis.
d00b21
---
d00b21
 agents/evacuate/fence_evacuate.py | 2 +-
d00b21
 1 file changed, 1 insertion(+), 1 deletion(-)
d00b21
d00b21
diff --git a/agents/evacuate/fence_evacuate.py b/agents/evacuate/fence_evacuate.py
d00b21
index 88837dd8..53d6fd15 100644
d00b21
--- a/agents/evacuate/fence_evacuate.py
d00b21
+++ b/agents/evacuate/fence_evacuate.py
d00b21
@@ -87,7 +87,7 @@ def _is_server_evacuable(server, evac_flavors, evac_images):
d00b21
 
d00b21
 def _get_evacuable_flavors(connection):
d00b21
 	result = []
d00b21
-	flavors = connection.flavors.list()
d00b21
+	flavors = connection.flavors.list(is_public=None)
d00b21
 	# Since the detailed view for all flavors doesn't provide the extra specs,
d00b21
 	# we need to call each of the flavor to get them.
d00b21
 	for flavor in flavors: