Fixing neutron-mlnx-agent service crash bug
Incorrect permissions for mlnx_conf.ini made the service crash. The fix sets the owner as 'neutron' since the service is being run as neutron user. Closes-bug: #1390185 Change-Id: Ieb0927d644c5a1d7eead12a32580f88d4d790e43 Signed-off-by: Gil Meir <gilmeir@mellanox.com>
This commit is contained in:
parent
c7b71bd1ee
commit
83d9d7b21d
@ -9,6 +9,7 @@ class mellanox_openstack::agent (
|
||||
$filters_dir = $::mellanox_openstack::params::filters_dir
|
||||
$filters_file = $::mellanox_openstack::params::filters_file
|
||||
$compute_service_name = $::mellanox_openstack::params::compute_service_name
|
||||
$mlnx_agent_conf = $::mellanox_openstack::params::mlnx_agent_conf
|
||||
|
||||
# Only relevant for Debian since no package provides network.filters file
|
||||
if $::osfamily == 'Debian' {
|
||||
@ -34,6 +35,10 @@ class mellanox_openstack::agent (
|
||||
Service[$compute_service_name]
|
||||
}
|
||||
|
||||
file { $mlnx_agent_conf :
|
||||
owner => 'neutron'
|
||||
}
|
||||
|
||||
mellanox_agent_config {
|
||||
'agent/rpc_support_old_agents' : value => true;
|
||||
'eswitch/physical_interface_mappings' : value => "${physnet}:${physifc}";
|
||||
@ -51,6 +56,7 @@ class mellanox_openstack::agent (
|
||||
}
|
||||
|
||||
Package[$package] ->
|
||||
File[$mlnx_agent_conf] ->
|
||||
Mellanox_agent_config <||> ~>
|
||||
Service[$agent]
|
||||
|
||||
|
@ -3,6 +3,7 @@ class mellanox_openstack::params {
|
||||
$eswitchd_package = 'eswitchd'
|
||||
$filters_dir = '/etc/nova/rootwrap.d'
|
||||
$filters_file = "${filters_dir}/network.filters"
|
||||
$mlnx_agent_conf = '/etc/neutron/plugins/mlnx/mlnx_conf.ini'
|
||||
|
||||
case $::osfamily {
|
||||
'RedHat': {
|
||||
|
Loading…
Reference in New Issue
Block a user