From 27a6c32eb8aa4a39ed87e8f5e117b5d27c986d29 Mon Sep 17 00:00:00 2001 From: Ranjeet R Date: Thu, 19 Jan 2017 10:29:08 -0800 Subject: [PATCH] Fixes: R3.1.1.x build2 - liberty HA setup, setup_all fails while provisioning ceilometer This was root caused to keystone server already running when the setup starts. As part of openstack setup postinstall, we stop all the openstack services but in this particular case, the system had gone through a restart for kernel upgrade which had started the service. Change-Id: I1e5306b79f5a24d7a079572f045a40ecaf43d5af Closes-Bug: 1654556 --- contrail_provisioning/openstack/setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrail_provisioning/openstack/setup.py b/contrail_provisioning/openstack/setup.py index ccf5914a..93b72a81 100755 --- a/contrail_provisioning/openstack/setup.py +++ b/contrail_provisioning/openstack/setup.py @@ -298,6 +298,11 @@ def fixup_config_files(self): local("sudo sed -i 's/admin_password = /;admin_password = /' /etc/cinder/api-paste.ini") def run_services(self): + with settings(warn_only=True): + # Stop the openstack services if they are running + # before running the setup + for service in self.openstack_services: + local("service %s stop" % service) local("sudo keystone-server-setup.sh") local("sudo glance-server-setup.sh") local("sudo cinder-server-setup.sh")