yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #51727
[Bug 1587692] [NEW] "--config-dir /etc/neutron/conf.d/common " in neutron-lbaas-agent.service result to lbaas agent service fail
Public bug reported:
I get the neutron lbaas code files and the service file from github
website. Detailed address is "https://github.com/openstack/neutron-
lbaas","https://github.com/openstack-packages/neutron-lbaas/tree/rpm-
kilo". Then , I start the neutron-lbaas-agent.service ,but the service
is failed, because "--config-dir /etc/neutron/conf.d/common " can not
find in environment but in service file. If I delete "--config-dir
/etc/neutron/conf.d/common " from neutron-lbaas-agent.service ,the
service becomes active
neutron-lbaas-agent.service content:
[Unit]
Description=OpenStack Neutron Load Balancing as a Service Agent
After=syslog.target network.target
[Service]
Type=simple
User=neutron
ExecStart=/usr/bin/neutron-lbaas-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /usr/share/neutron/neutron-lbaas-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/lbaas_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-lbaas-agent --log-file /var/log/neutron/lbaas-agent.log
PrivateTmp=false
KillMode=process
[Install]
WantedBy=multi-user.target
[root@tfg162 ~(keystone_admin)]# systemctl status neutron-lbaas-agent.service
neutron-lbaas-agent.service - OpenStack Neutron Load Balancing as a Service Agent
Loaded: loaded (/usr/lib/systemd/system/neutron-lbaas-agent.service; enabled)
Active: failed (Result: exit-code) since Wed 2016-06-01 08:45:21 CST; 12s ago
Process: 8924 ExecStart=/usr/bin/neutron-lbaas-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /usr/share/neutron/neutron-lbaas-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/lbaas_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-lbaas-agent --log-file /var/log/neutron/lbaas-agent.log (code=exited, status=1/FAILURE)
Main PID: 8924 (code=exited, status=1/FAILURE)
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: start_index = consume_optional(start_index)
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: File "/usr/lib64/python2.7/argparse.py", line 1866, in consume_optional
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: take_action(action, args, option_string)
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: File "/usr/lib64/python2.7/argparse.py", line 1794, in take_action
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: action(self, namespace, argument_values, option_string)
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 1267, in __call__
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: raise ConfigDirNotFoundError(values)
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: oslo_config.cfg.ConfigDirNotFoundError: Failed to read config file directory: /etc/neutron/conf.d/common
Jun 01 08:45:21 tfg162 systemd[1]: neutron-lbaas-agent.service: main process exited, code=exited, status=1/FAILURE
Jun 01 08:45:21 tfg162 systemd[1]: Unit neutron-lbaas-agent.service entered failed state
[root@tfg162 home]# systemctl status neutron-lbaas-agent.service
neutron-lbaas-agent.service - OpenStack Neutron Load Balancing as a Service Agent
Loaded: loaded (/usr/lib/systemd/system/neutron-lbaas-agent.service; enabled)
Active: active (running) since Wed 2016-06-01 08:52:36 CST; 24min ago
Main PID: 30328 (neutron-lbaas-a)
CGroup: /system.slice/neutron-lbaas-agent.service
+-30328 /usr/bin/python2 /usr/bin/neutron-lbaas-agent --config-file /usr/share/neutron/neutron-dist.conf --config-f...
Jun 01 08:52:36 tfg162 systemd[1]: Started OpenStack Neutron Load
Balancing as a Service Agent.
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1587692
Title:
"--config-dir /etc/neutron/conf.d/common " in neutron-lbaas-
agent.service result to lbaas agent service fail
Status in neutron:
New
Bug description:
I get the neutron lbaas code files and the service file from github
website. Detailed address is "https://github.com/openstack/neutron-
lbaas","https://github.com/openstack-packages/neutron-lbaas/tree/rpm-
kilo". Then , I start the neutron-lbaas-agent.service ,but the service
is failed, because "--config-dir /etc/neutron/conf.d/common " can not
find in environment but in service file. If I delete "--config-dir
/etc/neutron/conf.d/common " from neutron-lbaas-agent.service ,the
service becomes active
neutron-lbaas-agent.service content:
[Unit]
Description=OpenStack Neutron Load Balancing as a Service Agent
After=syslog.target network.target
[Service]
Type=simple
User=neutron
ExecStart=/usr/bin/neutron-lbaas-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /usr/share/neutron/neutron-lbaas-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/lbaas_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-lbaas-agent --log-file /var/log/neutron/lbaas-agent.log
PrivateTmp=false
KillMode=process
[Install]
WantedBy=multi-user.target
[root@tfg162 ~(keystone_admin)]# systemctl status neutron-lbaas-agent.service
neutron-lbaas-agent.service - OpenStack Neutron Load Balancing as a Service Agent
Loaded: loaded (/usr/lib/systemd/system/neutron-lbaas-agent.service; enabled)
Active: failed (Result: exit-code) since Wed 2016-06-01 08:45:21 CST; 12s ago
Process: 8924 ExecStart=/usr/bin/neutron-lbaas-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /usr/share/neutron/neutron-lbaas-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/lbaas_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-lbaas-agent --log-file /var/log/neutron/lbaas-agent.log (code=exited, status=1/FAILURE)
Main PID: 8924 (code=exited, status=1/FAILURE)
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: start_index = consume_optional(start_index)
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: File "/usr/lib64/python2.7/argparse.py", line 1866, in consume_optional
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: take_action(action, args, option_string)
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: File "/usr/lib64/python2.7/argparse.py", line 1794, in take_action
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: action(self, namespace, argument_values, option_string)
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 1267, in __call__
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: raise ConfigDirNotFoundError(values)
Jun 01 08:45:21 tfg162 neutron-lbaas-agent[8924]: oslo_config.cfg.ConfigDirNotFoundError: Failed to read config file directory: /etc/neutron/conf.d/common
Jun 01 08:45:21 tfg162 systemd[1]: neutron-lbaas-agent.service: main process exited, code=exited, status=1/FAILURE
Jun 01 08:45:21 tfg162 systemd[1]: Unit neutron-lbaas-agent.service entered failed state
[root@tfg162 home]# systemctl status neutron-lbaas-agent.service
neutron-lbaas-agent.service - OpenStack Neutron Load Balancing as a Service Agent
Loaded: loaded (/usr/lib/systemd/system/neutron-lbaas-agent.service; enabled)
Active: active (running) since Wed 2016-06-01 08:52:36 CST; 24min ago
Main PID: 30328 (neutron-lbaas-a)
CGroup: /system.slice/neutron-lbaas-agent.service
+-30328 /usr/bin/python2 /usr/bin/neutron-lbaas-agent --config-file /usr/share/neutron/neutron-dist.conf --config-f...
Jun 01 08:52:36 tfg162 systemd[1]: Started OpenStack Neutron Load
Balancing as a Service Agent.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1587692/+subscriptions
Follow ups