Skip to content

Commit

Permalink
Disable nova-compute on tsn node .
Browse files Browse the repository at this point in the history
check if nova-compute is present in nova-service list
and disable if present .

Change-Id: Ib93ae911c7f52c8e6061dcbe2f59e474a60b9397
Closes-Bug: #1729436
  • Loading branch information
krharsh committed Nov 3, 2017
1 parent 0e7a69b commit 09bb00d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vnsw/provisioning/contrail_vrouter_provisioning/common.py
Expand Up @@ -878,9 +878,9 @@ def add_qos_config(self):
physical_interfaces_str)

def disable_nova_compute(self):
# Check if nova-compute is allready running
# Stop if running on TSN node
if local("sudo service nova-compute status | grep running", warn_only=True).succeeded:
# Check if nova-compute is present in nova service list
# Disable nova-compute on TSN node
if local("nova service-list | grep nova-compute", warn_only=True).succeeded:
# Stop the service
local("sudo service nova-compute stop", warn_only=True)
if self.pdist in ['Ubuntu']:
Expand Down

0 comments on commit 09bb00d

Please sign in to comment.