l3 agent migration should only choose enabled agent

Bug #1392226 reported by Wei T
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack + Chef
Fix Released
Medium
Wei T

Bug Description

l3 agent migration should only choose enabled agents, or will fail migrate

Error message like below:

File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 112, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 898, in add_router_to_l3_agent
    body=body)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1270, in post
    headers=headers, params=params)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1193, in do_request
    self._handle_fault_response(status_code, replybody)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1163, in _handle_fault_response
    exception_handler_v20(status_code, des_error_body)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 97, in exception_handler_v20
    message=msg)
NeutronClientException: 404-{u'NeutronError': {u'message': u'Agent 07aae1f5-23bc-4b24-b17b-7706e54143ac is not a L3 Agent or has been disabled', u'type': u'InvalidL3Agent', u'detail': u''}}

Wei T (nuaafe)
Changed in openstack-chef:
assignee: nobody → Wei T (nuaafe)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cookbook-openstack-network (master)

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

Changed in openstack-chef:
status: New → In Progress
Revision history for this message
Mark Vanderwiel (vanderwl) wrote :

would be nice to see the error message.

description: updated
Changed in openstack-chef:
importance: Undecided → Medium
milestone: none → juno-rc1
Wei T (nuaafe)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cookbook-openstack-network (master)

Reviewed: https://review.openstack.org/134228
Committed: https://git.openstack.org/cgit/stackforge/cookbook-openstack-network/commit/?id=4f3f0b729d8e1d91c4afe9f43c1bd3e87af385ce
Submitter: Jenkins
Branch: master

commit 4f3f0b729d8e1d91c4afe9f43c1bd3e87af385ce
Author: Wei Tie <email address hidden>
Date: Thu Nov 13 22:31:45 2014 +0800

     L3 agent migration should only choose enabled agent

     L3 agent migration only choose agent with {"admin_state_up":True},
     in order to avoid error from neutron client.

    Closes-Bug: #1392226
    Change-Id: I8131567440dd4d67e6dce717635c333e27755931

Changed in openstack-chef:
status: In Progress → Fix Released
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.