Skip to content

Commit

Permalink
Fixes: R3.1.1.x build2 - liberty HA setup, setup_all fails while prov…
Browse files Browse the repository at this point in the history
…isioning 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: Iac14a1edb9714d731c60ff5ff4d8076d8c3b1c15
Closes-Bug: 1654556
  • Loading branch information
Ranjeet R committed Jan 19, 2017
1 parent 63aea75 commit 015cf89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrail_provisioning/openstack/setup.py
Expand Up @@ -287,6 +287,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")
Expand Down

0 comments on commit 015cf89

Please sign in to comment.