← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1583870] Re: creating loadbalancer fails with AttributeError: 'HaproxyOnHostPluginDriver' object has no attribute 'load_balancer'

 

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

** Changed in: neutron
       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/1583870

Title:
  creating loadbalancer fails with AttributeError:
  'HaproxyOnHostPluginDriver' object has no attribute 'load_balancer'

Status in neutron:
  Expired

Bug description:
  When I try to create loadbalancer using this command, I get error:

  neutron lbaas-loadbalancer-create --name loadbalancer-1 a5e1fd8e-22c6
  -40ad-88a4-a4a5cf0c68b9

  neutron lbaas-loadbalancer-create --name loadbalancer-1 a5e1fd8e-22c6-40ad-88a4-a4a5cf0c68b9
  Request Failed: internal server error while processing your request.
  Neutron server returns request_ids: ['req-dae67e28-40d8-406e-8ccf-2cafb9abe59c']

  and neutron server log indicates this traceback:

  016-05-19 23:39:04.581 50 DEBUG neutron.api.v2.base [req-b5741559-9982-4377-aa9c-30e1450c882a 7533552168244a7f9cf4dfd18aad60cf a6d47b4364dd4cffa77075da7fca8080 - - -] Request body: {u'loadbalancer': {u'vip_subnet_id': u'a5e1fd8e-22c6-40ad-88a4-a4a5cf0c68b9', u'name': u'loadbalancer-1', u'admin_state_up': True}} prepare_request_body /var/lib/kolla/venv/lib/python2.7/site-packages/neutron/api/v2/base.py:658
  2016-05-19 23:39:04.586 50 DEBUG neutron.db.quota.driver [req-b5741559-9982-4377-aa9c-30e1450c882a 7533552168244a7f9cf4dfd18aad60cf a6d47b4364dd4cffa77075da7fca8080 - - -] Resources subnet,network,l7policy,subnetpool,listener,healthmonitor,port have unlimited quota limit. It is not required to calculated headroom  make_reservation /var/lib/kolla/venv/lib/python2.7/site-packages/neutron/db/quota/driver.py:191
  2016-05-19 23:39:04.595 50 DEBUG neutron.db.quota.driver [req-b5741559-9982-4377-aa9c-30e1450c882a 7533552168244a7f9cf4dfd18aad60cf a6d47b4364dd4cffa77075da7fca8080 - - -] Attempting to reserve 1 items for resource loadbalancer. Total usage: 0; quota limit: 10; headroom:10 make_reservation /var/lib/kolla/venv/lib/python2.7/site-packages/neutron/db/quota/driver.py:223
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource [req-b5741559-9982-4377-aa9c-30e1450c882a 7533552168244a7f9cf4dfd18aad60cf a6d47b4364dd4cffa77075da7fca8080 - - -] create failed
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource Traceback (most recent call last):
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource   File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 84, in resource
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource     result = method(request=request, **args)
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource   File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/api/v2/base.py", line 412, in create
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource     return self._create(request, body, **kwargs)
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_db/api.py", line 148, in wrapper
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 221, in __exit__
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource     self.force_reraise()
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 197, in force_reraise
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource   File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/api/v2/base.py", line 523, in _create
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource     obj = do_create(body)
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource   File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/api/v2/base.py", line 505, in do_create
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource     request.context, reservation.reservation_id)
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 221, in __exit__
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource     self.force_reraise()
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 197, in force_reraise
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource   File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/api/v2/base.py", line 498, in do_create
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource     return obj_creator(request.context, **kwargs)
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource   File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 575, in create_loadbalancer
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource     allocate_vip=not driver.load_balancer.allocates_vip)
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource AttributeError: 'HaproxyOnHostPluginDriver' object has no attribute 'load_balancer'
  2016-05-19 23:39:04.613 50 ERROR neutron.api.v2.resource

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1583870/+subscriptions


References