Comment 1 for bug 1023627

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
>