Error on openstack env shutdown

Bug #842497 reported by Kapil Thangavelu on 2011-09-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Undecided
Kapil Thangavelu

Bug Description

(pytools)kapil@realms-slice:~/canonical/ensemble/mine/stack-crack$ ./bin/ensemble -v shutdown -e internal
2011-08-19 18:50:35,610 DEBUG Initializing ensemble shutdown runtime
Warning, this will destroy all machines and services in the
environment. Continue [y/N]y
2011-08-19 18:50:36,513 INFO Shutting down environment 'internal' (type: ec2)...
Traceback (most recent call last):
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 388, in errback
    self._startRunCallbacks(fail)
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 455, in _startRunCallbacks
    self._runCallbacks()
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 542, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1076, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1018, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/python/failure.py", line 350, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/home/kapil/canonical/ensemble/mine/stack-crack/ensemble/control/shutdown.py", line 32, in command
    yield provider.destroy_environment()
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1018, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/python/failure.py", line 350, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/home/kapil/canonical/ensemble/mine/stack-crack/ensemble/providers/ec2/__init__.py", line 135, in shutdown_machines
    yield self.ec2.terminate_instances(*killable_ids)
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 542, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/home/kapil/canonical/ensemble/deps/fix-s3-port/txaws/ec2/client.py", line 633, in terminate_instances
    for instance in root.find("instancesSet"):
exceptions.TypeError: 'NoneType' object is not iterable
2011-08-19 18:50:37,100 ERROR Traceback (most recent call last):
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 388, in errback
    self._startRunCallbacks(fail)
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 455, in _startRunCallbacks
    self._runCallbacks()
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 542, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1076, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1018, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/python/failure.py", line 350, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/home/kapil/canonical/ensemble/mine/stack-crack/ensemble/control/shutdown.py", line 32, in command
    yield provider.destroy_environment()
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1018, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/python/failure.py", line 350, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/home/kapil/canonical/ensemble/mine/stack-crack/ensemble/providers/ec2/__init__.py", line 135, in shutdown_machines
    yield self.ec2.terminate_instances(*killable_ids)
  File "/home/kapil/canonical/ensemble/es/lib/python2.7/site-packages/Twisted-11.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 542, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/home/kapil/canonical/ensemble/deps/fix-s3-port/txaws/ec2/client.py", line 633, in terminate_instances
    for instance in root.find("instancesSet"):
exceptions.TypeError: 'NoneType' object is not iterable

'NoneType' object is not iterable
2011-08-19 18:50:37,101 ERROR 'NoneType' object is not iterable

Kapil Thangavelu (hazmat) wrote :

its not functionally a problem, its a txaws response parse of the terminate instances output. the shutdown still succeeds

Changed in ensemble:
milestone: none → eureka
assignee: nobody → Kapil Thangavelu (hazmat)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers