KeyError raised when txaws encountered unexpected code

Bug #1000504 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
txAWS
New
Undecided
Unassigned
txaws (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Pretty sure this was just EC2 returning something unexpected. This was while talking to us-west-2. Repeating the same operation immediately afterward produced no errors.

$ juju terminate-machine 28
2012-05-16 17:36:14,878 INFO Connecting to environment...
2012-05-16 17:36:15,538 ERROR Cannot connect to environment: 'Code'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/juju/providers/common/connect.py", line 42, in run
    client = yield self._internal_connect(share)
  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/common/connect.py", line 58, in _internal_connect
    candidates = yield self._provider.get_zookeeper_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/common/findzookeepers.py", line 32, in find_zookeepers
    machine = yield provider.get_machine(instance_id)
  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'
'Code'
2012-05-16 17:36:15,612 ERROR 'Code'

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-txaws 0.2-0ubuntu10
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelModules: nvidia wl
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Wed May 16 17:37:37 2012
InstallationMedia: Xubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101008.1)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: txaws
UpgradeStatus: Upgraded to precise on 2011-07-14 (307 days ago)

Revision history for this message
Clint Byrum (clint-fewbar) wrote :
Scott Moser (smoser)
Changed in txaws (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Kapil Thangavelu (hazmat) wrote : Re: [Bug 1000504] Re: KeyError raised when txaws encountered unexpected code

could you supply some more details on this?

On Sat, May 26, 2012 at 6:08 PM, Clint Byrum <email address hidden> wrote:

> ** Also 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/1000504
>
> Title:
> KeyError raised when txaws encountered unexpected code
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/txaws/+bug/1000504/+subscriptions
>

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.