failed to describe address in ec2 api

Bug #1050417 reported by MotoKen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
MotoKen

Bug Description

unable to describe the address associated with an instance.

to reproduce:
# euca-describe-addresses
192.168.1.100
192.168.1.101
192.168.1.102

# euca-associate-address -i i-XXX 192.168.1.100
ADDRESS 192.168.1.100 i-XXX

# euca-describe-addresses
UnknownError: An unknown error has occurred. Please try your request again.

traceback:
2012-09-13 20:55:05 ERROR nova.api.ec2 [req-0895ee95-d972-4dc1-99a0-5e0eb3889261 1458120d63784bb49858437c275dc59e 7dd8607e7d294efc845ccf68f8d282b7] Unexpected error raised: 'instance_id'
2012-09-13 20:55:05 TRACE nova.api.ec2 Traceback (most recent call last):
2012-09-13 20:55:05 TRACE nova.api.ec2 File "/usr/lib/python2.7/dist-packages/nova/api/ec2/__init__.py", line 476, in __call__
2012-09-13 20:55:05 TRACE nova.api.ec2 result = api_request.invoke(context)
2012-09-13 20:55:05 TRACE nova.api.ec2 File "/usr/lib/python2.7/dist-packages/nova/api/ec2/apirequest.py", line 81, in invoke
2012-09-13 20:55:05 TRACE nova.api.ec2 result = method(context, **args)
2012-09-13 20:55:05 TRACE nova.api.ec2 File "/usr/lib/python2.7/dist-packages/nova/api/ec2/cloud.py", line 1115, in describe_addresses
2012-09-13 20:55:05 TRACE nova.api.ec2 addresses = [self._format_address(context, f) for f in floatings]
2012-09-13 20:55:05 TRACE nova.api.ec2 File "/usr/lib/python2.7/dist-packages/nova/api/ec2/cloud.py", line 1123, in _format_address
2012-09-13 20:55:05 TRACE nova.api.ec2 if fixed['instance_id'] is not None:
2012-09-13 20:55:05 TRACE nova.api.ec2 KeyError: 'instance_id'
2012-09-13 20:55:05 TRACE nova.api.ec2

Tags: ec2
Revision history for this message
Thierry Carrez (ttx) wrote :

Which Nova version is that reproduced on ? Can you reproduce 100% of the time ?

Changed in nova:
status: New → Incomplete
MotoKen (motokentsai)
description: updated
Thierry Carrez (ttx)
tags: added: ec2
Changed in nova:
importance: Undecided → Medium
status: Incomplete → Confirmed
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/13009

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

Reviewed: https://review.openstack.org/13009
Committed: http://github.com/openstack/nova/commit/c0c1e53e24081d1599dfaddf2904dfa7add60d9c
Submitter: Jenkins
Branch: master

commit c0c1e53e24081d1599dfaddf2904dfa7add60d9c
Author: MotoKen <email address hidden>
Date: Fri Sep 14 14:16:39 2012 +0800

    Corrects use of instance_uuid for fixed ip

    Uses instance_uuid rather than instance_id since commit 66f9e085a.

    Fixes bug 1050417.

    Change-Id: I6161c7a6ad9c3891e100daae39fe8ea82bfd8654

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → folsom-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-rc1 → 2012.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.