Unhandled KeyError when EC2 endpoint's errors are not as expected

Bug #1023627 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
txAWS
In Progress
Undecided
Clint Byrum

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/juju/agents/provision.py", line 151, in watch_machine_changes
    yield self.process_machines(self._current_machines)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/lib/python2.7/dist-packages/juju/agents/provision.py", line 175, in process_machines
    provider_machines = yield self.provider.get_machines()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/lib/python2.7/dist-packages/juju/providers/ec2/__init__.py", line 141, in get_machines
    code = error.get_error_codes()
  File "/usr/lib/python2.7/dist-packages/txaws/exception.py", line 113, in get_error_codes
    return self.errors[0]["Code]
KeyError: 'Code'

Related branches

Revision history for this message
Kapil Thangavelu (hazmat) wrote : Re: [Bug 1023627] [NEW] Unhandled KeyError when EC2 endpoint's errors are not as expected

By not as expected, you mean invalid? is this testing against openstack
with the ec2 provider?

thanks,
-kapil

On Wed, Jul 11, 2012 at 6:16 PM, Clint Byrum <email address hidden> wrote:

> Public bug reported:
>
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/juju/agents/provision.py", line
> 151, in watch_machine_changes
> yield self.process_machines(self._current_machines)
> File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line
> 1037, in _inlineCallbacks
> result = result.throwExceptionIntoGenerator(g)
> File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line
> 382, in throwExceptionIntoGenerator
> return g.throw(self.type, self.value, self.tb)
> File "/usr/lib/python2.7/dist-packages/juju/agents/provision.py", line
> 175, in process_machines
> provider_machines = yield self.provider.get_machines()
> File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line
> 1037, in _inlineCallbacks
> result = result.throwExceptionIntoGenerator(g)
> File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line
> 382, in throwExceptionIntoGenerator
> return g.throw(self.type, self.value, self.tb)
> File "/usr/lib/python2.7/dist-packages/juju/providers/ec2/__init__.py",
> line 141, in get_machines
> code = error.get_error_codes()
> File "/usr/lib/python2.7/dist-packages/txaws/exception.py", line 113, in
> get_error_codes
> return self.errors[0]["Code]
> KeyError: 'Code'
>
> ** Affects: txaws
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of txAWS
> Administration, which is the registrant for txAWS.
> https://bugs.launchpad.net/bugs/1023627
>
> Title:
> Unhandled KeyError when EC2 endpoint's errors are not as expected
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/txaws/+bug/1023627/+subscriptions
>

Changed in txaws:
status: New → In Progress
assignee: nobody → Clint Byrum (clint-fewbar)
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.