ec2_eror_code mismatch

Bug #1179816 reported by Hoisaleshwara Madan V S
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Christopher Yeoh
Icehouse
Fix Released
Undecided
Unassigned
tempest
Invalid
Undecided
Unassigned

Bug Description

It is reporting InstanceNotFound instead of InvalidAssociationID[.]NotFound
in
tests/boto/test_ec2_network.py

self.assertBotoError(ec2_codes.client.InvalidAssociationID.NotFound,
                             address.disassociate)

AssertionError :Error code (InstanceNotFound) doesnot match the expexted re pattern InvalidAssociationID[.]NotFound

boto: ERROR: 400 Bad RequInvalidAssociationID[.]NotFoundest
boto: ERROR: <?xml version="1.0"?>
<Response><Errrors><Error><Code>InstanceNotFound</Code><Message>Instance None could not be found.</Message></Error></Errors><RequestID>req-05235a67-0a70-46b1-a503-91444ab2b88d</RequestID></Response>

Revision history for this message
Attila Fazekas (afazekas) wrote :

It looks like a nova issue.

Changed in tempest:
status: New → Invalid
tags: added: api ec2
Changed in nova:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
assignee: nobody → Hengqing Hu (hudayou)
status: Confirmed → In Progress
Changed in nova:
assignee: Hengqing Hu (hudayou) → nobody
Joe Gordon (jogo)
Changed in nova:
status: In Progress → Confirmed
Joe Gordon (jogo)
Changed in nova:
importance: High → Medium
Changed in nova:
assignee: nobody → Christopher Yeoh (cyeoh-0)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tempest (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/124323

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/124320
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=00d8c334bbfaef3ffec4b04b494e609740b96253
Submitter: Jenkins
Branch: master

commit 00d8c334bbfaef3ffec4b04b494e609740b96253
Author: Chris Yeoh <email address hidden>
Date: Fri Sep 26 16:56:07 2014 +0930

    Fixes missing ec2 api address disassociate error on failure

    Fixes ec2 api address disassociate so that the ec2 error
    InvalidAssociationID.NotFound is returned when it is passed an
    invalid association rather than returning success. Note this is
    slightly different than the original bug report but the type
    of failure has changed since the bug was originally filed.

    Change-Id: I10034a2fed62d4e93bc384aef3ff594b66e285f2
    Closes-Bug: 1179816

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-rc1
status: Fix Committed → Fix Released
tags: added: icehouse-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/125873

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/icehouse)

Reviewed: https://review.openstack.org/125873
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=f9fad7aa613314e118656621595172941fec804c
Submitter: Jenkins
Branch: stable/icehouse

commit f9fad7aa613314e118656621595172941fec804c
Author: Chris Yeoh <email address hidden>
Date: Fri Sep 26 16:56:07 2014 +0930

    Fixes missing ec2 api address disassociate error on failure

    Fixes ec2 api address disassociate so that the ec2 error
    InvalidAssociationID.NotFound is returned when it is passed an
    invalid association rather than returning success. Note this is
    slightly different than the original bug report but the type
    of failure has changed since the bug was originally filed.

    Change-Id: I10034a2fed62d4e93bc384aef3ff594b66e285f2
    Closes-Bug: 1179816
    (cherry picked from commit 00d8c334bbfaef3ffec4b04b494e609740b96253)

tags: added: in-stable-icehouse
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-rc1 → 2014.2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tempest (master)

Reviewed: https://review.openstack.org/124323
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=82f4694b5ddaa3bbcbc555ebeeb1501d10e4fd0c
Submitter: Jenkins
Branch: master

commit 82f4694b5ddaa3bbcbc555ebeeb1501d10e4fd0c
Author: Chris Yeoh <email address hidden>
Date: Fri Sep 26 17:23:10 2014 +0930

    Fix and re-enable test_disassociate_not_associated_floating_ip

    Fixes test_disassociate_not_associated_floating_ip so it sets the
    ec2_client class variable needed by a base class correctly. There
    has been some bit-rot since it was disabled.

    Note that this test will not pass until the nova fix
    https://review.openstack.org/#/c/124320/ has merged.

    Change-Id: Ice39358f4e8123334f24056daede68bead59729b
    Related-Bug: 1179816

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.