Ask Your Question
0

neutron server is not loading plugin config files

asked 2015-02-05 02:59:31 -0500

etlv gravatar image

Hi,

I am using Juno over Ubuntu 14.0.4.1. Trying to load ml2_conf_sriov.ini configuration file using the command:

neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-file /etc/neutron/plugins/ml2/ml2_conf_sriov.ini

However according to neutron-server log file, the configuration file is not loaded when restarting neutron-server or rebooting:

more /var/log/neutron/server.log

2015-02-05 10:39:29.344 2103 INFO neutron.common.config [-] Logging enabled! 2015-02-05 10:39:29.352 2103 DEBUG neutron.service [-] ************************** log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:192 8 2015-02-05 10:39:29.353 2103 DEBUG neutron.service [-] Configuration options gathered from: log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1929 2015-02-05 10:39:29.354 2103 DEBUG neutron.service [-] command line args: ['--config-file', '/etc/neutron/neutron.conf', '--log-file', '/var/log/neutron/server.log', '--config-file', '/etc/neutron/plugins/m l2/ml2_conf.ini'] log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1930 2015-02-05 10:39:29.355 2103 DEBUG neutron.service [-] config files: ['/etc/neutron/neutron.conf', '/etc/neutron/plugins/ml2/ml2_conf.ini'] log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py :1931

I tired with different ml2 configuration files, but none of them was taken by neutron server as "config file" during service restart.

Can anyone please advise?

Thanks

Itai

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-05 06:39:45 -0500

rahuk gravatar image

updated 2015-02-05 06:42:11 -0500

Hey hey,

what output do you have with:

# ps -ef | grep neutron

I see this:

# ps -ef | grep neutron
neutron  18100     1  0 12:47 ?        00:00:18 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --log-file /var/log/neutron/server.log --config-file /etc/neutron/plugins/ml2/ml2_conf.in

There i can see that the ml2_conf.in file is loaded

And what shows

  # ll /etc/neutron/
  # ll /etc/neutron/plugins/ml2/

right permissions and right user:group on all the files ?

regards

edit flag offensive delete link more

Comments

Hi. ps output showed that the config files are not loaded. I needed to stop the service, manually edit /etc/init/neutron-server.conf startup script so neutron server will be loaded with the 2 configuration files and restart the service.

etlv gravatar imageetlv ( 2015-02-05 07:02:23 -0500 )edit

Now it work ? Whats with the permissions ? Is there all right ?

Whats in your /etc/default/neutron-server config ? It must look like that:

NEUTRON_PLUGIN_CONFIG="/etc/neutron/plugins/ml2/ml2_conf.ini"

The /etc/init/neutron-server.conf will parse this parameter!

rahuk gravatar imagerahuk ( 2015-02-05 07:14:59 -0500 )edit

Now it works. the permissions were ok. the /etc/default/neutron-server config is same as yours.

etlv gravatar imageetlv ( 2015-02-05 07:45:25 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-02-05 02:59:31 -0500

Seen: 2,018 times

Last updated: Feb 05 '15