exceptions.UnboundLocalError: local variable 'settings' referenced before assignment

Bug #1100245 reported by Evan
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
High
Kapil Thangavelu

Bug Description

I'm running into the following with the latest version of juju (0.6.0.1+bzr607-0juju2~precise1):

2013-01-16 10:33:40,927: twisted@ERROR: Unhandled error in Deferred:
2013-01-16 10:33:40,939: twisted@ERROR: Unhandled Error
Traceback (most recent call last):
  File /usr/lib/python2.7/dist-packages/twisted/internet/defer.py, line 1181, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
  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/unit/lifecycle.py, line 445, in _do_unit_deploy
    yield unit_deployer.start(subordinate)
  File /usr/lib/python2.7/dist-packages/twisted/internet/defer.py, line 1181, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  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/unit/deploy.py, line 47, in start
    self.env_id = yield settings.get_environment_id()
exceptions.UnboundLocalError: local variable 'settings' referenced before assignment

Related branches

Revision history for this message
Martin Packman (gz) wrote :

Looks to be a regression from r607, changes from the following merge proposal:

https://code.launchpad.net/~hazmat/juju/env-id/+merge/143188

Changed in juju:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

looks like this effects primarily subordinate deploys, which weren't in the functional test case, adding some unit tests.

Changed in juju:
assignee: nobody → Kapil Thangavelu (hazmat)
status: Triaged → In Progress
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

in the ppa revno 608

Changed in juju:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.