Public bug reported: 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) ** Affects: txaws (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug precise -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to txaws in Ubuntu. 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/ubuntu/+source/txaws/+bug/1000504/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs