Validate neutron-server service

To avoid failure, in Debian and Ubuntu, we must set $validate to true.
While this issue happened all the time for me on my laptop, I also saw a
few Ubuntu run where the problem happened.

Depends-On: I8ab8a2c7bb1d93d6fb9d16eabd3a1112b1e1237b
Change-Id: I093b0de94e3f762edb9be71134078d86b0642a07
This commit is contained in:
Thomas Goirand 2018-05-16 16:55:22 +02:00
parent 116aecd5ca
commit 0c2f3b7439
1 changed files with 9 additions and 0 deletions

View File

@ -174,13 +174,22 @@ class openstack_integration::neutron (
'LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default',
'FIREWALL:Iptables:neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver:default',
$l2gw_provider])
if $::osfamily == 'Debian' {
Service<| title == 'neutron-server'|> -> Openstacklib::Service_validation<| title == 'neutron-server' |> -> Neutron_network<||>
$validate_neutron_server_service = true
} else {
$validate_neutron_server_service = false
}
class { '::neutron::server':
database_connection => 'mysql+pymysql://neutron:neutron@127.0.0.1/neutron?charset=utf8',
sync_db => true,
api_workers => 2,
rpc_workers => 2,
validate => $validate_neutron_server_service,
service_providers => $providers_list,
}
class { '::neutron::services::lbaas': }
class { '::neutron::plugins::ml2':
type_drivers => ['vxlan', 'vlan', 'flat'],