exceptions.AttributeError: 'UnitAgent' object has no attribute 'lifecycle'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
I was analyzing why my juju cluster was down. The particular instance I was analyzing had the jenkins-slave charm deployed.
Reading /var/lib/
2012-11-13 09:04:23,261: twisted@ERROR: Unhandled error in Deferred:
2012-11-13 09:04:23,262: twisted@ERROR: Unhandled Error
Traceback (most recent call last):
File "/usr/lib/
return _inlineCallback
File "/usr/lib/
result = g.send(result)
File "/usr/lib/
yield self.stop()
File "/usr/lib/
return _inlineCallback
--- <exception caught here> ---
File "/usr/lib/
result = g.send(result)
File "/usr/lib/
if self.lifecycle.
exceptions.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: juju 0.5+bzr531-
ProcVersionSign
Uname: Linux 3.2.0-32-virtual x86_64
ApportVersion: 2.0.1-0ubuntu14
Architecture: amd64
Date: Tue Nov 13 09:23:43 2012
Ec2AMI: ami-000000bf
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitec
ProcEnviron:
TERM=xterm-
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: juju
UpgradeStatus: No upgrade log present (probably fresh install)
I'm marking this confirmed because, lookign through the code briefly, the lifecycle doesn't get assigned until a long ways down into start(), and there seems to be no __init__ in UnitAgent (and BaseAgent simply calls its super's init). So this seems a valid race which should perhaps be patched at UnitAgent's (new) __init__.