Add restart nova-api service
In order to apply timeout for query to the neutron service need to restart the service nova-api. Change-Id: Ic0684a3e751352b62d821ad1db811d315b0d553e Closes-Bug: #1596000
This commit is contained in:
parent
e8bfab8631
commit
a5b50d2474
|
@ -0,0 +1,10 @@
|
|||
notice('fuel-plugin-nsxv: nova-api-restart.pp')
|
||||
|
||||
include ::nova::params
|
||||
|
||||
exec {'nova-api-restart':
|
||||
path => '/usr/sbin:/usr/bin:/sbin:/bin',
|
||||
command => "service ${::nova::params::api_service_name} restart",
|
||||
provider => 'shell',
|
||||
onlyif => "service ${::nova::params::api_service_name} status|grep -q running",
|
||||
}
|
|
@ -128,6 +128,15 @@
|
|||
timeout: 1800
|
||||
strategy:
|
||||
type: one_by_one
|
||||
- id: nova-api-restart
|
||||
version: 2.0.0
|
||||
type: puppet
|
||||
groups: [primary-controller, controller]
|
||||
requires: [post_deployment_start]
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/nova-api-restart.pp
|
||||
puppet_modules: puppet/modules
|
||||
timeout: 180
|
||||
|
||||
# skipped tasks
|
||||
- id: primary-openstack-network-plugins-l2
|
||||
|
|
Loading…
Reference in New Issue