Ask Your Question
0

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

asked 2017-09-07 15:41:05 -0500

hdg88 gravatar image

updated 2017-09-07 16:00:28 -0500

I am in the https://docs.openstack.org/liberty/install-guide-ubuntu/neutron-verify-option2.html (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 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-09-07 16:27:20 -0500

hdg88 gravatar image

updated 2017-09-07 16:33:34 -0500

Fixed. Turns out the Controller and Compute Nodes CANNOT have the same hostname. I believe the database users that as a key identifier (which is bad, as it should use a UUID). This is why only one was appearing (even though both were up).

FIX: Change the hostnames of the controller and compute by editing /etc/hostname.

At this point, you should see 2 of each entries in the nova service-list and neutron agent-list. Some with the old hostname will be changing to xxx as the services with the new hostnames come up.

Then follow https://thornelabs.net/2014/08/03/delete-duplicate-openstack-hypervisors-and-services.html (this link) to delete the duplicate entries from the mysql database (entries from the previous hostname).

Now the commands should show the correct number of services.

edit flag offensive delete link more

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

Stats

Asked: 2017-09-07 15:41:05 -0500

Seen: 349 times

Last updated: Sep 07 '17