lbaas: update pool Error

Bug #1185687 reported by Bo Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Eugene Nikanorov

Bug Description

the lbaas CMD:
1. frist create a pool
   $quantum lb-pool-create --lb-method ROUND_ROBIN --name mypool--protocol HTTP --subnet-id edad01a7-d616-4144-afb9-b8df941582c8

2. then update the pool
   $quantum lb-pool-update --request-format json mypool1 --name mypool

The Error info from the lbaas Agent:

013-05-30 14:12:59 ERROR [quantum.plugins.services.agent_loadbalancer.agent.manager] Unable to refresh device for pool: 1b9b9cc9-6510-4367-b729-c896db20f941
Traceback (most recent call last):
  File "/opt/stack/project/quantum/quantum/plugins/services/agent_loadbalancer/agent/manager.py", line 184, in refresh_device
    logical_config = self.plugin_rpc.get_logical_device(pool_id)
  File "/opt/stack/project/quantum/quantum/plugins/services/agent_loadbalancer/agent/api.py", line 47, in get_logical_device
    topic=self.topic
  File "/opt/stack/project/quantum/quantum/openstack/common/rpc/proxy.py", line 86, in call
    return rpc.call(context, real_topic, msg, timeout)
  File "/opt/stack/project/quantum/quantum/openstack/common/rpc/__init__.py", line 140, in call
    return _get_impl().call(CONF, context, topic, msg, timeout)
  File "/opt/stack/project/quantum/quantum/openstack/common/rpc/impl_kombu.py", line 798, in call
    rpc_amqp.get_connection_pool(conf, Connection))
  File "/opt/stack/project/quantum/quantum/openstack/common/rpc/amqp.py", line 615, in call
    rv = list(rv)
  File "/opt/stack/project/quantum/quantum/openstack/common/rpc/amqp.py", line 564, in __iter__
    raise result
AttributeError: 'NoneType' object has no attribute 'status'
Traceback (most recent call last):

  File "/opt/stack/project/quantum/quantum/openstack/common/rpc/amqp.py", line 433, in _process_data
    **args)

  File "/opt/stack/project/quantum/quantum/common/rpc.py", line 44, in dispatch
    quantum_ctxt, version, method, namespace, **kwargs)

  File "/opt/stack/project/quantum/quantum/openstack/common/rpc/dispatcher.py", line 148, in dispatch
    return getattr(proxyobj, method)(ctxt, **kwargs)

  File "/opt/stack/project/quantum/quantum/plugins/services/agent_loadbalancer/plugin.py", line 87, in get_logical_device
    or pool.vip.status != constants.ACTIVE):

AttributeError: 'NoneType' object has no attribute 'status'

       It is because that it has not check the existence of vip in a pool leading to the pool.vip.status to error

Tags: lbaas
Bo Lin (linb)
description: updated
Changed in quantum:
assignee: nobody → Eugene Nikanorov (enikanorov)
Changed in quantum:
status: New → Triaged
Changed in quantum:
status: Triaged → Confirmed
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/31002

Changed in quantum:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/31002
Committed: http://github.com/openstack/quantum/commit/3786f3ab2028b18e427569ee0824cdbb85e91c55
Submitter: Jenkins
Branch: master

commit 3786f3ab2028b18e427569ee0824cdbb85e91c55
Author: Eugene Nikanorov <email address hidden>
Date: Thu May 30 12:25:16 2013 +0400

    Fix pool update error in lbaas

    fixes bug 1185687

    Do not notify namespace agent of modified pool
    if pool doesn't have vip

    Change-Id: Ibe3399aaa145d19fc758f08adb51c7ffefa5bb3a

Changed in quantum:
status: In Progress → Fix Committed
Changed in quantum:
milestone: none → havana-2
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-2 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.