[Bug 1577630] Re: ERROR neutron_lbaas.agent.agent_manager - HaproxyNSDriver
Igor Meneguitte Ávila
igoravila at gmail.com
Wed May 4 03:14:19 UTC 2016
Hi Brandon Logan,
I use OpenStack liberty with two nodes (controller and compute). It does
not use openvswitch.
I do not have this setting in the node network. Having no OVS, how
should I set up so that this problem be solved?
I followed the steps (http://docs.openstack.org/liberty/networking-guide
/adv-config-lbaas.html) and there was no errors, but the LBaaS does not
work.
In neutron-lbaas v2-agent.log continuously displays the message:
2016-05-02 12:38:18.772 18394 WARNING neutron_lbaas.drivers.haproxy.namespace_driver [-] Stats socket not found for loadbalancer 24f50e79-53b6-4ee6-8da1-2a8f1233a857
2016-05-02 12:38:28.773 18394 WARNING neutron_lbaas.drivers.haproxy.namespace_driver [-] Stats socket not found for loadbalancer 24f50e79-53b6-4ee6-8da1-2a8f1233a857
2016-05-02 12:38:38.773 18394 WARNING neutron_lbaas.drivers.haproxy.namespace_driver [-] Stats socket not found for loadbalancer 24f50e79-53b6-4ee6-8da1-2a8f1233a857
2016-05-02 12:38:48.774 18394 WARNING neutron_lbaas.drivers.haproxy.namespace_driver [-] Stats socket not found for loadbalancer 24f50e79-53b6-4ee6-8da1-2a8f1233a857
2016-05-02 12:38:58.774 18394 WARNING neutron_lbaas.drivers.haproxy.namespace_driver [-] Stats socket not found for loadbalancer 24f50e79-53b6-4ee6-8da1-2a8f1233a857
neutron lbaas-loadbalancer-show lb01
+---------------------+------------------------------------------------+
| Field | Value |
+---------------------+------------------------------------------------+
| admin_state_up | True |
| description | |
| id | 28501a37-90f0-4d75-9bcf-5ba4ad8f1016 |
| listeners | {"id": "ab6ac58b-3a3f-49aa-bf20-94f1bdb823b4"} |
| name | lb01 |
| operating_status | ONLINE |
| provider | haproxy |
| provisioning_status | ACTIVE |
| tenant_id | 60d7922e29e44dc1ac62df3fe7ba3841 |
| vip_address | 192.168.100.18 |
| vip_port_id | fa65055e-6d24-427e-bc77-33250638edea |
| vip_subnet_id | f64e80e1-da2a-40b7-ba9b-903dc72242ba |
+---------------------+------------------------------------------------+
neutron lbaas-listener-list
+--------------------------------------+--------------------------------------+--------------+----------+---------------+----------------+
| id | default_pool_id | name | protocol | protocol_port | admin_state_up |
+--------------------------------------+--------------------------------------+--------------+----------+---------------+----------------+
| ab6ac58b-3a3f-49aa-bf20-94f1bdb823b4 | 553901c1-2ef8-4119-b4d4-093eb7562924 | test-lb-http | HTTP | 80 | True |
+--------------------------------------+--------------------------------------+--------------+----------+---------------+----------------+
neutron lbaas-pool-list
+--------------------------------------+-------------------+----------+----------------+
| id | name | protocol | admin_state_up |
+--------------------------------------+-------------------+----------+----------------+
| 553901c1-2ef8-4119-b4d4-093eb7562924 | test-lb-pool-http | HTTP | True |
+--------------------------------------+-------------------+----------+----------------+
neutron lbaas-member-list test-lb-pool-http
+--------------------------------------+----------------+---------------+--------+--------------------------------------+----------------+
| id | address | protocol_port | weight | subnet_id | admin_state_up |
+--------------------------------------+----------------+---------------+--------+--------------------------------------+----------------+
| 117287de-d774-4446-b264-cff2d4873c03 | 192.168.100.10 | 80 | 1 | f64e80e1-da2a-40b7-ba9b-903dc72242ba | True |
| e79f25c2-7f75-47f4-a2d8-6f822a6e9f0b | 192.168.100.11 | 80 | 1 | f64e80e1-da2a-40b7-ba9b-903dc72242ba | True |
+--------------------------------------+----------------+---------------+--------+--------------------------------------+----------------+
neutron lbaas-healthmonitor-show c125afc4-9a81-49c2-a374-4ad3c253b8bc
+----------------+------------------------------------------------+
| Field | Value |
+----------------+------------------------------------------------+
| admin_state_up | True |
| delay | 5 |
| expected_codes | 200 |
| http_method | GET |
| id | c125afc4-9a81-49c2-a374-4ad3c253b8bc |
| max_retries | 5 |
| pools | {"id": "553901c1-2ef8-4119-b4d4-093eb7562924"} |
| tenant_id | 60d7922e29e44dc1ac62df3fe7ba3841 |
| timeout | 5 |
| type | HTTP |
| url_path | / |
+----------------+------------------------------------------------+
neutron floatingip-list
+--------------------------------------+------------------+---------------------+--------------------------------------+
| id | fixed_ip_address | floating_ip_address | port_id |
+--------------------------------------+------------------+---------------------+--------------------------------------+
| 04b99a1a-a609-47b7-8670-c299bdbf6c3c | 192.168.100.11 | 20.0.0.117 | bae99c24-a6fd-4f5c-b14f-502096a4e881 |
| 1df0c7e2-be88-443a-98bd-49f1e9f68d2d | 192.168.100.10 | 20.0.0.116 | c4cb782c-4d67-4b26-bdae-7e28efd48aea |
| 418789e1-9924-498e-9ac8-054126336998 | 192.168.100.18 | 20.0.0.120 | fa65055e-6d24-427e-bc77-33250638edea |
neutron port-show fa65055e-6d24-427e-bc77-33250638edea
+-----------------------+--------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | controller |
| binding:profile | {} |
| binding:vif_details | {"port_filter": true} |
| binding:vif_type | bridge |
| binding:vnic_type | normal |
| device_id | 28501a37-90f0-4d75-9bcf-5ba4ad8f1016 |
| device_owner | neutron:LOADBALANCERV2 |
| dns_assignment | {"hostname": "host-192-168-100-18", "ip_address": "192.168.100.18", "fqdn": "host-192-168-100-18.openstacklocal."} |
| dns_name | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "f64e80e1-da2a-40b7-ba9b-903dc72242ba", "ip_address": "192.168.100.18"} |
| id | fa65055e-6d24-427e-bc77-33250638edea |
| mac_address | fa:16:3e:a5:1f:20 |
| name | loadbalancer-28501a37-90f0-4d75-9bcf-5ba4ad8f1016 |
| network_id | 3ca8e576-63a5-4121-971b-005b245900f6 |
| port_security_enabled | True |
| security_groups | e9405c49-7541-49e0-82e5-0b6a05a55524 |
| status | DOWN |
| tenant_id | 60d7922e29e44dc1ac62df3fe7ba3841 |
+-----------------------+--------------------------------------------------------------------------------------------------------------------+
Thank you for your help.
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to neutron-lbaas in Ubuntu.
https://bugs.launchpad.net/bugs/1577630
Title:
ERROR neutron_lbaas.agent.agent_manager - HaproxyNSDriver
Status in neutron:
Incomplete
Status in neutron-lbaas package in Ubuntu:
New
Bug description:
Hi,
I use OpenStack Liberty with Ubuntu 14.04.
I installed LBaaSv2;
# aptitude install haproxy neutron-lbaasv2-agent python-neutron-lbaas
/etc/neutron/neutron.conf
[DEFAULT]
service_plugins = router,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2
[service_providers]
service_provider = LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
/etc/neutron/neutron_lbaas.conf
[service_providers]
service_provider=LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
/etc/neutron/lbaas_agent.ini
[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
ovs_use_veth = False
device_driver = neutron_lbaas.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
[haproxy]
user_group = haproxy
# tail -f /var/log/neutron/neutron-lbaasv2-agent.log
2016-05-01 21:12:16.266 6459 INFO neutron.common.config [-] Logging enabled!
2016-05-01 21:12:16.267 6459 INFO neutron.common.config [-] /usr/bin/neutron-lbaasv2-agent version 7.0.3
2016-05-01 21:12:16.294 6459 INFO oslo.messaging._drivers.impl_rabbit [-] Connecting to AMQP server on controller:5672
2016-05-01 21:12:16.318 6459 INFO oslo.messaging._drivers.impl_rabbit [-] Connecting to AMQP server on controller:5672
2016-05-01 21:12:16.335 6459 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on controller:5672
2016-05-01 21:12:16.337 6459 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on controller:5672
2016-05-01 21:12:16.475 6459 INFO oslo.messaging._drivers.impl_rabbit [-] Connecting to AMQP server on controller:5672
2016-05-01 21:12:16.495 6459 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on controller:5672
$ neutron lbaas-loadbalancer-create --name lb01 f64e80e1-da2a-40b7-ba9b-903dc72242ba
Created a new loadbalancer:
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| admin_state_up | True |
| description | |
| id | 599a3226-5239-4100-a118-5ad1fe6ea55d |
| listeners | |
| name | lb01 |
| operating_status | OFFLINE |
| provider | haproxy |
| provisioning_status | PENDING_CREATE |
| tenant_id | 60d7922e29e44dc1ac62df3fe7ba3841 |
| vip_address | 192.168.100.15 |
| vip_port_id | 5f998bc7-17bc-4bb8-9fb5-07a6b9de5860 |
| vip_subnet_id | f64e80e1-da2a-40b7-ba9b-903dc72242ba |
+---------------------+--------------------------------------+
neutron lbaas-loadbalancer-list
+--------------------------------------+------+----------------+---------------------+----------+
| id | name | vip_address | provisioning_status | provider |
+--------------------------------------+------+----------------+---------------------+----------+
| 599a3226-5239-4100-a118-5ad1fe6ea55d | lb01 | 192.168.100.15 | ERROR | haproxy |
+--------------------------------------+------+----------------+---------------------+----------+
$ tail -f /var/log/neutron/neutron-lbaasv2-agent.log
2016-05-01 21:12:16.337 6459 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on controller:5672
2016-05-01 21:12:16.475 6459 INFO oslo.messaging._drivers.impl_rabbit [-] Connecting to AMQP server on controller:5672
2016-05-01 21:12:16.495 6459 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on controller:5672
2016-05-01 21:40:43.582 6459 ERROR neutron_lbaas.agent.agent_manager [req-214be154-00fb-4c8a-8fe3-7212ffc19cb2 f0c587f6748346d9a7dd1a6d911da3b4 60d7922e29e44dc1ac62df3fe7ba3841 - - -] Create loadbalancer 599a3226-5239-4100-a118-5ad1fe6ea55d failed on device driver haproxy_ns
2016-05-01 21:40:43.582 6459 ERROR neutron_lbaas.agent.agent_manager Traceback (most recent call last):
2016-05-01 21:40:43.582 6459 ERROR neutron_lbaas.agent.agent_manager File "/usr/lib/python2.7/dist-packages/neutron_lbaas/agent/agent_manager.py", line 270, in create_loadbalancer
2016-05-01 21:40:43.582 6459 ERROR neutron_lbaas.agent.agent_manager driver.loadbalancer.create(loadbalancer)
2016-05-01 21:40:43.582 6459 ERROR neutron_lbaas.agent.agent_manager AttributeError: 'HaproxyNSDriver' object has no attribute 'loadbalancer'
2016-05-01 21:40:43.582 6459 ERROR neutron_lbaas.agent.agent_manager
Any idea? Can you help me?
Regards,
Igor Meneguitte Ávila
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1577630/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list