← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1577630] Re: ERROR neutron_lbaas.agent.agent_manager - HaproxyNSDriver

 

[Expired for octavia because there has been no activity for 60 days.]

** Changed in: octavia
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1577630

Title:
  ERROR neutron_lbaas.agent.agent_manager - HaproxyNSDriver

Status in neutron:
  Invalid
Status in octavia:
  Expired

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


References