Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

systemd[1]: devstack@q-agt.service failed

In my VM(CentOS7.2) I installed the devstack:

But when I check the service, I find the devstack@q-agt.service is not running.

[root@localhost ~]# systemctl status devstack@q-agt.service -l 
● devstack@q-agt.service - Devstack devstack@q-agt.service
   Loaded: loaded (/etc/systemd/system/devstack@q-agt.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2017-08-21 22:39:24 CST; 25s ago
  Process: 13595 ExecStart=/usr/bin/neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini (code=exited, status=1/FAILURE)
 Main PID: 13595 (code=exited, status=1/FAILURE)

Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: ERROR neutron   File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 214, in main
Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: ERROR neutron     result = function(*args, **kwargs)
Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: ERROR neutron   File "/usr/lib/python2.7/site-packages/ryu/lib/hub.py", line 65, in _launch
Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: ERROR neutron     raise e
Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: ERROR neutron Exception: Could not retrieve schema from tcp:127.0.0.1:6640: Connection refused
Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: ERROR neutron 
Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: INFO oslo_rootwrap.client [-] Stopping rootwrap daemon process with pid=13632
Aug 21 22:39:24 localhost.localdomain systemd[1]: devstack@q-agt.service: main process exited, code=exited, status=1/FAILURE
Aug 21 22:39:24 localhost.localdomain systemd[1]: Unit devstack@q-agt.service entered failed state.
Aug 21 22:39:24 localhost.localdomain systemd[1]: devstack@q-agt.service failed.

I tried to restart this service but failed, how to avoid it?


EDIT

And in the /var/log/message I found the below error message :

...
Aug 21 22:50:16 localhost ovsdb-server: ovs|09137|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 22:50:16 localhost ovsdb-server: ovs|09138|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 22:50:16 localhost ovsdb-server: ovs|09139|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 22:50:16 localhost ovsdb-server: ovs|09140|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 22:50:16 localhost ovs-vsctl: ovs|00002|db_ctl_base|ERR|transaction error: {"details":"Transaction causes multiple rows in \"Manager\" table to have identical values (\"ptcp:6640:127.0.0.1\") for index on column \"target\".  First row, with UUID 5ec22779-d307-403c-a2d7-e61a739be275, was inserted by this transaction.  Second row, with UUID cb472941-4441-4b92-8777-694aa1278310, existed in the database before this transaction and was not modified by the transaction.","error":"constraint violation"}
Aug 21 22:50:16 localhost ovsdb-server: ovs|09141|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 22:50:16 localhost ovsdb-server: ovs|09142|socket_util|ERR|6640:127.0.0.1: bind: Permission denied

systemd[1]: devstack@q-agt.service failed

In my VM(CentOS7.2) I installed the devstack:

But when I check the service, I find the devstack@q-agt.service is not running.

[root@localhost ~]# systemctl status devstack@q-agt.service -l 
● devstack@q-agt.service - Devstack devstack@q-agt.service
   Loaded: loaded (/etc/systemd/system/devstack@q-agt.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2017-08-21 22:39:24 CST; 25s ago
  Process: 13595 ExecStart=/usr/bin/neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini (code=exited, status=1/FAILURE)
 Main PID: 13595 (code=exited, status=1/FAILURE)

Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: ERROR neutron   File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 214, in main
Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: ERROR neutron     result = function(*args, **kwargs)
Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: ERROR neutron   File "/usr/lib/python2.7/site-packages/ryu/lib/hub.py", line 65, in _launch
Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: ERROR neutron     raise e
Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: ERROR neutron Exception: Could not retrieve schema from tcp:127.0.0.1:6640: Connection refused
Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: ERROR neutron 
Aug 21 22:39:24 localhost.localdomain neutron-openvswitch-agent[13595]: INFO oslo_rootwrap.client [-] Stopping rootwrap daemon process with pid=13632
Aug 21 22:39:24 localhost.localdomain systemd[1]: devstack@q-agt.service: main process exited, code=exited, status=1/FAILURE
Aug 21 22:39:24 localhost.localdomain systemd[1]: Unit devstack@q-agt.service entered failed state.
Aug 21 22:39:24 localhost.localdomain systemd[1]: devstack@q-agt.service failed.

I tried to restart this service but failed, how to avoid it?


EDIT

And in the /var/log/message I found the below error message :

...
Aug 21 22:50:16 localhost ovsdb-server: ovs|09137|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 22:50:16 localhost ovsdb-server: ovs|09138|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 22:50:16 localhost ovsdb-server: ovs|09139|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 22:50:16 localhost ovsdb-server: ovs|09140|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 22:50:16 localhost ovs-vsctl: ovs|00002|db_ctl_base|ERR|transaction error: {"details":"Transaction causes multiple rows in \"Manager\" table to have identical values (\"ptcp:6640:127.0.0.1\") for index on column \"target\".  First row, with UUID 5ec22779-d307-403c-a2d7-e61a739be275, was inserted by this transaction.  Second row, with UUID cb472941-4441-4b92-8777-694aa1278310, existed in the database before this transaction and was not modified by the transaction.","error":"constraint violation"}
Aug 21 22:50:16 localhost ovsdb-server: ovs|09141|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 22:50:16 localhost ovsdb-server: ovs|09142|socket_util|ERR|6640:127.0.0.1: bind: Permission denied

EDIT-2

I use the journalctl -xe get the bellow error:

[root@localhost log]# journalctl -xe 
Aug 21 15:50:52 localhost.localdomain neutron-dhcp-agent[809]: DEBUG neutron.agent.linux.utils [None req-3622b1b8-b9a9-4cd1-8052-f5ed84fb23d2 None None] Ru
Aug 21 15:50:52 localhost.localdomain ovs-vsctl[60986]: ovs|00001|vsctl|INFO|Called as /bin/ovs-vsctl --timeout=5 --id=@manager -- create Manager "target=\
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37066|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37067|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37068|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37069|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 15:50:52 localhost.localdomain ovs-vsctl[60986]: ovs|00002|db_ctl_base|ERR|transaction error: {"details":"Transaction causes multiple rows in \"Mana
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37070|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37071|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37072|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 15:50:52 localhost.localdomain neutron-server[823]: DEBUG neutron.db.l3_hamode_db [None req-dfe6e11a-7b36-4b08-8f96-d2a65bdd5310 None None] neutron.
Aug 21 15:50:52 localhost.localdomain neutron-server[823]: 653d-39f3-4b3d-9ac1-cf4cf88634e5'}], 'binding:host_id': u'localhost.localdomain', 'description':
Aug 21 15:50:52 localhost.localdomain neutron-server[823]: ': [{'subnet_id': u'1a1b1d44-9dfb-477c-bb7a-3b05ebadc5a2', 'prefixlen': 24, 'ip_address': u'172.
Aug 21 15:50:52 localhost.localdomain neutron-server[823]: DEBUG neutron.api.rpc.handlers.l3_rpc [None req-dfe6e11a-7b36-4b08-8f96-d2a65bdd5310 None None] 
Aug 21 15:50:52 localhost.localdomain neutron-l3-agent[805]: DEBUG neutron_lib.callbacks.manager [-] Notify callbacks [] for router, before_update {{(pid=8
Aug 21 15:50:52 localhost.localdomain neutron-l3-agent[805]: DEBUG neutron.agent.l3.router_info [-] process router updates {{(pid=805) process /opt/stack/n
Aug 21 15:50:52 localhost.localdomain neutron-l3-agent[805]: DEBUG neutron.agent.l3.router_info [-] adding internal network: prefix(qr-), port(2f63fdd1-93a
Aug 21 15:50:52 localhost.localdomain neutron-l3-agent[805]: DEBUG neutron.agent.linux.utils [-] Running command (rootwrap daemon): ['ip', 'netns', 'exec',
Aug 21 15:50:52 localhost.localdomain kernel: SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
Aug 21 15:50:52 localhost.localdomain neutron-l3-agent[805]: DEBUG neutron.agent.linux.utils [-] Running command: ['ip', '-o', 'link', 'show', 'br-int'] {{
Aug 21 15:50:52 localhost.localdomain neutron-l3-agent[805]: DEBUG neutron.agent.linux.utils [-] Running command (rootwrap daemon): ['ovs-vsctl', '--timeou
Aug 21 15:50:52 localhost.localdomain ovs-vsctl[60994]: ovs|00001|vsctl|INFO|Called as /bin/ovs-vsctl --timeout=5 --id=@manager -- create Manager "target=\
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37073|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37074|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37075|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37076|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 15:50:52 localhost.localdomain ovs-vsctl[60994]: ovs|00002|db_ctl_base|ERR|transaction error: {"details":"Transaction causes multiple rows in \"Mana
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37077|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37078|socket_util|ERR|6640:127.0.0.1: bind: Permission denied
Aug 21 15:50:52 localhost.localdomain ovsdb-server[898]: ovs|37079|socket_util|ERR|6640:127.0.0.1: bind: Permission denied