Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do config-api restart on each puppet run.
This avoid issues with upgrade, config change, etc.

Change-Id: Ie729d8d0173636dc5d54eb5a69f6f33e69c6ef16
Closes-Bug: #1779943
  • Loading branch information
alexey-mr committed Sep 10, 2018
1 parent 6e00428 commit b5ec147
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions manifests/config/service.pp
Expand Up @@ -7,12 +7,13 @@
service {'supervisor-config' :
ensure => running,
enable => true,
}
# hack to work around https://bugs.launchpad.net/juniperopenstack/+bug/1718184
} ->
# Restart service is needed for:
# - https://bugs.launchpad.net/juniperopenstack/+bug/1718184
# - https://bugs.launchpad.net/juniperopenstack/+bug/1779943
exec { 'restart config-api':
path => '/bin:/sbin:/usr/bin:/usr/sbin',
command => 'supervisorctl -c /etc/contrail/supervisord_config.conf restart contrail-api:0',
onlyif => 'contrail-status |grep contrail-api: |grep "Generic Connection:Keystone\[\] connection down"',
}
}

0 comments on commit b5ec147

Please sign in to comment.