From 4db995828cdba4e2058ba39bbd0e554cf941c715 Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Thu, 21 Dec 2017 08:00:41 +0100 Subject: [openstack_glance|heat|nova] fix api container names Container names of glance, heat and nova api was not correct when verify if a the container is running. Resolves: #1172 Signed-off-by: Martin Schuppert Signed-off-by: Bryn M. Reeves --- sos/plugins/openstack_glance.py | 2 +- sos/plugins/openstack_heat.py | 2 +- sos/plugins/openstack_nova.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sos/plugins/openstack_glance.py b/sos/plugins/openstack_glance.py index 4cdc6dc6..d7588abe 100644 --- a/sos/plugins/openstack_glance.py +++ b/sos/plugins/openstack_glance.py @@ -64,7 +64,7 @@ class OpenStackGlance(Plugin): in_container = False if container_status['status'] == 0: for line in container_status['output'].splitlines(): - if line.endswith("cinder_api"): + if line.endswith("glance_api"): in_container = True if (service_status['status'] == 0) or in_container: diff --git a/sos/plugins/openstack_heat.py b/sos/plugins/openstack_heat.py index e3395fab..0cf7c859 100644 --- a/sos/plugins/openstack_heat.py +++ b/sos/plugins/openstack_heat.py @@ -40,7 +40,7 @@ class OpenStackHeat(Plugin): in_container = False if container_status['status'] == 0: for line in container_status['output'].splitlines(): - if line.endswith("cinder_api"): + if line.endswith("heat_api"): in_container = True if (service_status['status'] == 0) or in_container: diff --git a/sos/plugins/openstack_nova.py b/sos/plugins/openstack_nova.py index 5db79b9d..e262ad1c 100644 --- a/sos/plugins/openstack_nova.py +++ b/sos/plugins/openstack_nova.py @@ -43,7 +43,7 @@ class OpenStackNova(Plugin): in_container = False if container_status['status'] == 0: for line in container_status['output'].splitlines(): - if line.endswith("cinder_api"): + if line.endswith("nova_api"): in_container = True if (service_status['status'] == 0) or in_container: -- cgit