2012-01-22 21:59:44,005 ERROR Failed to launch machine MTMyNzIzOTgxNi44OTA5Nzg5OS43NDY5Mw; attempting to revert.

Bug #920000 reported by ZhengPeng Hou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Expired
Medium
Unassigned

Bug Description

juju version: 0.5+bzr440-1juju2~oneiric1
installed ubuntu-orchestration-server(precise), then did juju bootstrap

freeflying@orchestra:~$ juju -v bootstrap
2012-01-22 21:59:43,560 DEBUG Initializing juju bootstrap runtime
2012-01-22 21:59:43,674 INFO Bootstrapping environment 'orchestra' (type: orchestra)...
2012-01-22 21:59:43,713 DEBUG Verifying writable storage
2012-01-22 21:59:43,725 DEBUG Launching juju bootstrap instance.
2012-01-22 21:59:44,005 ERROR Failed to launch machine MTMyNzIzOTgxNi44OTA5Nzg5OS43NDY5Mw; attempting to revert.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/juju/providers/orchestra/launch.py", line 45, in start_machine
    instance_id, machine_id, cloud_init.render())
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/juju/providers/orchestra/cobbler.py", line 232, in start_system
    ks_meta = _unpack_ks_meta(system["ks_meta"])
  File "/usr/lib/python2.7/dist-packages/juju/providers/orchestra/cobbler.py", line 16, in _unpack_ks_meta
    return dict(t.split("=", 1) for t in shlex.split(s))
  File "/usr/lib/python2.7/shlex.py", line 279, in split
    return list(lex)
  File "/usr/lib/python2.7/shlex.py", line 269, in next
    token = self.get_token()
  File "/usr/lib/python2.7/shlex.py", line 96, in get_token
    raw = self.read_token()
  File "/usr/lib/python2.7/shlex.py", line 124, in read_token
    nextchar = self.instream.read(1)
AttributeError: 'dict' object has no attribute 'read'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 391, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  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/control/bootstrap.py", line 24, in command
    yield provider.bootstrap()
  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/launch.py", line 45, in run
    machines = yield self.start_machine(machine_id, zookeepers)
  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/orchestra/launch.py", line 52, in start_machine
    yield cobbler.shutdown_system(instance_id)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/juju/providers/orchestra/cobbler.py", line 248, in shutdown_system
    ks_meta = _unpack_ks_meta(system["ks_meta"])
  File "/usr/lib/python2.7/dist-packages/juju/providers/orchestra/cobbler.py", line 16, in _unpack_ks_meta
    return dict(t.split("=", 1) for t in shlex.split(s))
  File "/usr/lib/python2.7/shlex.py", line 279, in split
    return list(lex)
  File "/usr/lib/python2.7/shlex.py", line 269, in next
    token = self.get_token()
  File "/usr/lib/python2.7/shlex.py", line 96, in get_token
    raw = self.read_token()
  File "/usr/lib/python2.7/shlex.py", line 124, in read_token
    nextchar = self.instream.read(1)
exceptions.AttributeError: 'dict' object has no attribute 'read'
2012-01-22 21:59:44,065 ERROR Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 391, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  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/control/bootstrap.py", line 24, in command
    yield provider.bootstrap()
  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/launch.py", line 45, in run
    machines = yield self.start_machine(machine_id, zookeepers)
  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/orchestra/launch.py", line 52, in start_machine
    yield cobbler.shutdown_system(instance_id)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/juju/providers/orchestra/cobbler.py", line 248, in shutdown_system
    ks_meta = _unpack_ks_meta(system["ks_meta"])
  File "/usr/lib/python2.7/dist-packages/juju/providers/orchestra/cobbler.py", line 16, in _unpack_ks_meta
    return dict(t.split("=", 1) for t in shlex.split(s))
  File "/usr/lib/python2.7/shlex.py", line 279, in split
    return list(lex)
  File "/usr/lib/python2.7/shlex.py", line 269, in next
    token = self.get_token()
  File "/usr/lib/python2.7/shlex.py", line 96, in get_token
    raw = self.read_token()
  File "/usr/lib/python2.7/shlex.py", line 124, in read_token
    nextchar = self.instream.read(1)
exceptions.AttributeError: 'dict' object has no attribute 'read'

'dict' object has no attribute 'read'
2012-01-22 21:59:44,067 ERROR 'dict' object has no attribute 'read'

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

William would you mind have a looking at this one?

Changed in juju:
milestone: none → florence
assignee: nobody → William Reade (fwereade)
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

fwereade>hazmat, as I recall it implies some can't-happeny environment weirdness -- it's clearly somehow related to the twisted change but we couldn't figure out exactly how
<hazmat>fwereade, okay.. so not fixable without reproduction, which shouldn't be possible?
<fwereade> hazmat, yes, well put

Changed in juju:
status: New → Incomplete
status: Incomplete → Invalid
status: Invalid → Incomplete
assignee: William Reade (fwereade) → nobody
Changed in juju:
milestone: florence → galapagos
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Dropping from galapagos, as orchestra is not as important as maas now.

Changed in juju:
importance: Undecided → Medium
milestone: galapagos → none
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for juju because there has been no activity for 60 days.]

Changed in juju:
status: Incomplete → Expired
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.