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

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