How do I get neutron-lbaasv2-agent to come up alive

asked 2017-01-19 06:35:55 -0500

anonymous user

Anonymous

I am running Mitaka, trying to setup LBaaS (with HAProxy) for the first time.

$ nova-manage --version 13.0.0

I have been able to get to the point where I have HAProxy and LBaaS v2 agent installed and enabled, however I don't seem to be able to get the agent to show up as alive. I have reviewed the logs for clues, but nothing stands out. Wondering if someone may have clues on what I might be missing. Here is what I mean (alive = xxx):

$ neutron agent-list
+--------------------------------------+----------------------+-----------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type           | host      | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+----------------------+-----------+-------------------+-------+----------------+---------------------------+
| 0d540659-c2cb-4344-bfb8-70bbce6721ef | L3 agent             | coolfox21 | nova              | :-)   | True           | neutron-l3-agent          |
| a1a258b0-b533-41c6-bfa1-d20c362946c0 | DHCP agent           | coolfox21 | nova              | :-)   | True           | neutron-dhcp-agent        |
| a8e9014d-0579-4f51-a81b-fd75720d82ef | Metadata agent       | coolfox21 |                   | :-)   | True           | neutron-metadata-agent    |
| b101b58d-31bd-43ef-817d-8b048465e991 | Open vSwitch agent   | coolfox21 |                   | :-)   | True           | neutron-openvswitch-agent |
| fc5250a0-0444-4e09-852b-696a4b53590b | Loadbalancerv2 agent | coolfox21 |                   | xxx   | True           | neutron-lbaasv2-agent     |
+--------------------------------------+----------------------+-----------+-------------------+-------+----------------+---------------------------+

And - (alive = False)

$ neutron agent-show fc5250a0-0444-4e09-852b-696a4b53590b
+---------------------+--------------------------------------+
| Field               | Value                                |
+---------------------+--------------------------------------+
| admin_state_up      | True                                 |
| agent_type          | Loadbalancerv2 agent                 |
| alive               | False                                |
| availability_zone   |                                      |
| binary              | neutron-lbaasv2-agent                |
| configurations      | {                                    |
|                     |      "device_drivers": [             |
|                     |           "haproxy_ns"               |
|                     |      ],                              |
|                     |      "instances": 0                  |
|                     | }                                    |
| created_at          | 2017-01-18 14:18:30                  |
| description         |                                      |
| heartbeat_timestamp | 2017-01-19 10:04:01                  |
| host                | coolfox21                            |
| id                  | fc5250a0-0444-4e09-852b-696a4b53590b |
| started_at          | 2017-01-19 10:03:31                  |
| topic               | n-lbaasv2_agent                      |
+---------------------+--------------------------------------+

Nothing interesting in the LBaaS logs:

2017-01-19 06:48:31.600 70850 INFO neutron.common.config [-] Logging enabled!
2017-01-19 06:48:31.600 70850 INFO neutron.common.config [-] /usr/bin/neutron-lbaasv2-agent version 8.0.0

Wondering if anyone has come across something like this, and the resolution. Thanks in advance.

Changes to lbaas_agent.ini:

interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
device_driver = neutron_lbaas.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
user_group = haproxy

Changes to neutron.conf (added the lbaas portion):

service_plugins = router,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2

Changes to neutron_lbaas.conf:

service_provider = LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
edit retag flag offensive close merge delete