Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

compute neutron-linuxbridge-agent not showing up on controller node

I am in the network set up stage of open stack where I have followed every step by the book. However when verifying the agent-list, I don't seem to see the compute Linux Bridge Agent on the controller (when issuing the neutron agent-list command). I have gone through many other solutions of this same issue, however none of those fixes seem to work.

Something that maybe an issue is that on my compute node, when I type in chronyc sources, I see: ^? controller as the only entry, which may imply a syncing issue. However when I issue the nova service-list command on the controller, I see the nova-compute binary up, which (in my opinion) means there cannot be a sync issue.

viewing the neutron-plugin-linuxbridge-agent.log on the compute node, I see the following

2017-09-07 15:44:53.416 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent 
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Failed reporting state!
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Traceback (most recent call last):
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 942, in _report_state
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     True)
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/rpc.py", line 87, in report_state
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     return method(context, 'report_state', **kwargs)
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 158, in call
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     retry=self.retry)
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 90, in _send
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     timeout=timeout, retry=retry)
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 462, in send
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     retry=retry)
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 453, in _send
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     raise result
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent RemoteError: Remote error: ProgrammingError (pymysql.err.ProgrammingError) (1146, u"Table 'neutron.agents' doesn't exist") [SQL: u'SELECT agents.id AS agents_id, agents.agent_type AS agents_agent_type, agents.`binary` AS agents_binary, agents.topic AS agents_topic, agents.host AS agents_host, agents.admin_state_up AS agents_admin_state_up, agents.created_at AS agents_created_at, agents.started_at AS agents_started_at, agents.heartbeat_timestamp AS agents_heartbeat_timestamp, agents.description AS agents_description, agents.configurations AS agents_configurations, agents.`load` AS agents_load \nFROM agents \nWHERE agents.agent_type = %s AND agents.host = %s'] [parameters: (u'Linux bridge agent', u'user-VirtualBox')]
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply\n    executor_callback))\n', u'  File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch\n    executor_callback)\n', u'  File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch\n    result = func(ctxt, **new_args)\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/db/agents_db.py", line 322, in report_state\n    return self.plugin.create_or_update_agent(context, agent_state)\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/db/agents_db.py", line 270, in create_or_update_agent\n    return self._create_or_update_agent(context, agent)\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/db/agents_db.py", line 243, in _create_or_update_agent\n    context, agent_state[\'agent_type\'], agent_state[\'host\'])\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/db/agents_db.py", line 203, in _get_agent_by_type_and_host\n    Agent.host == host).one()\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2473, in one\n    ret = list(self)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2516, in __iter__\n    return self._execute_and_instances(context)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2531, in _execute_and_instances\n    result = conn.execute(querycontext.statement, self._params)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 914, in execute\n    return meth(self, multiparams, params)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection\n    return connection._execute_clauseelement(self, multiparams, params)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement\n    compiled_sql, distilled_params\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context\n    context)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1337, in _handle_dbapi_exception\n    util.raise_from_cause(newraise, exc_info)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause\n    reraise(type(exception), exception, tb=exc_tb)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context\n    context)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 450, in do_execute\n    cursor.execute(statement, parameters)\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/cursors.py", line 132, in execute\n    result = self._query(query)\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/cursors.py", line 271, in _query\n    conn.query(q)\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 726, in query\n    self._affected_rows = self._read_query_result(unbuffered=unbuffered)\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 861, in _read_query_result\n    result.read()\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 1064, in read\n    first_packet = self.connection._read_packet()\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 826, in _read_packet\n    packet.check_error()\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 370, in check_error\n    raise_mysql_exception(self._data)\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/err.py", line 116, in raise_mysql_exception\n    _check_mysql_exception(errinfo)\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/err.py", line 109, in _check_mysql_exception\n    raise errorclass(errno,errorvalue)\n', u'ProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table \'neutron.agents\' doesn\'t exist") [SQL: u\'SELECT agents.id AS agents_id, agents.agent_type AS agents_agent_type, agents.`binary` AS agents_binary, agents.topic AS agents_topic, agents.host AS agents_host, agents.admin_state_up AS agents_admin_state_up, agents.created_at AS agents_created_at, agents.started_at AS agents_started_at, agents.heartbeat_timestamp AS agents_heartbeat_timestamp, agents.description AS agents_description, agents.configurations AS agents_configurations, agents.`load` AS agents_load \\nFROM agents \\nWHERE agents.agent_type = %s AND agents.host = %s\'] [parameters: (u\'Linux bridge agent\', u\'user-VirtualBox\')]\n']

compute neutron-linuxbridge-agent not showing up on controller node

I am in the network set up stage of open stack where I have followed every step by the book. However when verifying the agent-list, I don't seem to see the compute Linux Bridge Agent on the controller (when issuing the neutron agent-list command). I have gone through many other solutions of this same issue, however none of those fixes seem to work.

Something that maybe an issue is that on my compute node, when I type in chronyc sources, I see: ^? controller as the only entry, which may imply a syncing issue. However when I issue the nova service-list command on the controller, I see the nova-compute binary up, which (in my opinion) means there cannot be a sync issue.

viewing the neutron-plugin-linuxbridge-agent.log on the compute node, I see the following

2017-09-07 15:44:53.416 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent 
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Failed reporting state!
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Traceback (most recent call last):
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 942, in _report_state
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     True)
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/rpc.py", line 87, in report_state
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     return method(context, 'report_state', **kwargs)
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 158, in call
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     retry=self.retry)
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 90, in _send
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     timeout=timeout, retry=retry)
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 462, in send
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     retry=retry)
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 453, in _send
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     raise result
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent RemoteError: Remote error: ProgrammingError (pymysql.err.ProgrammingError) (1146, u"Table 'neutron.agents' doesn't exist") [SQL: u'SELECT agents.id AS agents_id, agents.agent_type AS agents_agent_type, agents.`binary` AS agents_binary, agents.topic AS agents_topic, agents.host AS agents_host, agents.admin_state_up AS agents_admin_state_up, agents.created_at AS agents_created_at, agents.started_at AS agents_started_at, agents.heartbeat_timestamp AS agents_heartbeat_timestamp, agents.description AS agents_description, agents.configurations AS agents_configurations, agents.`load` AS agents_load \nFROM agents \nWHERE agents.agent_type = %s AND agents.host = %s'] [parameters: (u'Linux bridge agent', u'user-VirtualBox')]
2017-09-07 15:45:23.427 30316 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply\n    executor_callback))\n', u'  File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch\n    executor_callback)\n', u'  File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch\n    result = func(ctxt, **new_args)\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/db/agents_db.py", line 322, in report_state\n    return self.plugin.create_or_update_agent(context, agent_state)\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/db/agents_db.py", line 270, in create_or_update_agent\n    return self._create_or_update_agent(context, agent)\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/db/agents_db.py", line 243, in _create_or_update_agent\n    context, agent_state[\'agent_type\'], agent_state[\'host\'])\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/db/agents_db.py", line 203, in _get_agent_by_type_and_host\n    Agent.host == host).one()\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2473, in one\n    ret = list(self)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2516, in __iter__\n    return self._execute_and_instances(context)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2531, in _execute_and_instances\n    result = conn.execute(querycontext.statement, self._params)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 914, in execute\n    return meth(self, multiparams, params)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection\n    return connection._execute_clauseelement(self, multiparams, params)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement\n    compiled_sql, distilled_params\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context\n    context)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1337, in _handle_dbapi_exception\n    util.raise_from_cause(newraise, exc_info)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause\n    reraise(type(exception), exception, tb=exc_tb)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context\n    context)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 450, in do_execute\n    cursor.execute(statement, parameters)\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/cursors.py", line 132, in execute\n    result = self._query(query)\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/cursors.py", line 271, in _query\n    conn.query(q)\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 726, in query\n    self._affected_rows = self._read_query_result(unbuffered=unbuffered)\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 861, in _read_query_result\n    result.read()\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 1064, in read\n    first_packet = self.connection._read_packet()\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 826, in _read_packet\n    packet.check_error()\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 370, in check_error\n    raise_mysql_exception(self._data)\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/err.py", line 116, in raise_mysql_exception\n    _check_mysql_exception(errinfo)\n', u'  File "/usr/lib/python2.7/dist-packages/pymysql/err.py", line 109, in _check_mysql_exception\n    raise errorclass(errno,errorvalue)\n', u'ProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table \'neutron.agents\' doesn\'t exist") [SQL: u\'SELECT agents.id AS agents_id, agents.agent_type AS agents_agent_type, agents.`binary` AS agents_binary, agents.topic AS agents_topic, agents.host AS agents_host, agents.admin_state_up AS agents_admin_state_up, agents.created_at AS agents_created_at, agents.started_at AS agents_started_at, agents.heartbeat_timestamp AS agents_heartbeat_timestamp, agents.description AS agents_description, agents.configurations AS agents_configurations, agents.`load` AS agents_load \\nFROM agents \\nWHERE agents.agent_type = %s AND agents.host = %s\'] [parameters: (u\'Linux bridge agent\', u\'user-VirtualBox\')]\n']