unit "(AnyCharm)" is not assigned to a machine when deploying with juju 1.22-beta5
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | juju-core |
Critical
|
Andrew Wilkins | ||
Bug Description
I hit this error in jujuclient.py when deploying with juju-core 1.22-beta5:
File "/usr/lib/
raise EnvError(result)
EnvError: <Env Error - Details:
{ u'Error': u'unit "ceph/0" is not assigned to a machine',
u'ErrorCode': u'not assigned',
u'RequestId': 1,
u'Response': { }}
>
Longer back trace:
https:/
It did not show up with 1.21.3 or 1.22-beta4.
Here's my debug all-machines.log:
https:/
| Kapil Thangavelu (hazmat) wrote : Re: [Bug 1430049] Re: unit "ceph/0" is not assigned to a machine when deploying with juju 1.22-beta5 | #2 |
can you paste that to a public pastebin, else its private to canonical
employees only, and there isn't enough information in this bug to evaluate
whats going on.
On Mon, Mar 9, 2015 at 7:11 PM, Jason Hobbs <email address hidden>
wrote:
> I've tested twice now and hit this both times.
>
> Here's my juju related versions:
> ii juju-core 1.22-beta5-
> Juju is devops distilled - client
> ii juju-deployer 0.4.3-0ubuntu1~
> Deploy complex stacks of services using Juju
> ii python-jujuclient 0.50.1-2
> Python API client for juju-core
>
>
> ** Tags added: oil
>
> --
> You received this bug notification because you are subscribed to juju-
> core.
> https:/
>
> Title:
> unit "ceph/0" is not assigned to a machine when deploying with juju
> 1.22-beta5
>
> To manage notifications about this bug go to:
> https:/
>
| Jason Hobbs (jason-hobbs) wrote : Re: unit "ceph/0" is not assigned to a machine when deploying with juju 1.22-beta5 | #3 |
The debug log has auth keys in it so I can't post it without figuring out how to filter them all. Here's the traceback though:
| Ian Booth (wallyworld) wrote : | #4 |
Deployer traceback:
http://
all-machines.log is full of credentials so can't be pasted publically
| Ian Booth (wallyworld) wrote : | #5 |
Here's a pastebin of a snippet from the all machines log
http://
It looks like the allwatcher and other juju infrastructure is trying to access ceph/0 before it is deployed. The deployment startes to happen after that.
| Jason Hobbs (jason-hobbs) wrote : | #6 |
FWIW I tested a third time and it failed the same way - so this is definitely a blocker for OIL as it seems to fail every time.
| Ian Booth (wallyworld) wrote : | #7 |
The only 2 changes juju-core changes between beta4 and beta5 were: a fix to allow lxc containers to start on PPC64 hosts, and this one: https:/
I don't know much about how the deployer interfaces with the allwatcher in core, but this line from the log seems suspicious:
user-admin@local 153.352us {"RequestId"
Getting the next unit from the watcher will trigger the unit's open ports to be loaded which will fail if the unit is not assigned, but the code seems to handle that and continues without error.
The changes in PR 1707 seem innocuous in relation to the issue but would be interesting to test with that change backed out to see if the issue goes away.
There were some changes to introduce a new NotAssigned error but these were done around 10th Feb, well before beta4 was released.
| Changed in juju-core: | |
| importance: | Undecided → Critical |
| status: | New → Triaged |
| Andrew Wilkins (axwalk) wrote : | #8 |
Looks like the bug is here: https:/
For some reason there was a change from `IsNotAssigned(
| Changed in juju-core: | |
| status: | Triaged → In Progress |
| assignee: | nobody → Andrew Wilkins (axwalk) |
| milestone: | none → 1.22-beta6 |
| Dimiter Naydenov (dimitern) wrote : | #9 |
Thanks for fixing this Andrew! Since I've reviewed the backport, I should've checked the behavior of IsNotAssigned differs between trunk and 1.22.
| Changed in juju-core: | |
| status: | In Progress → Fix Committed |
| Ryan Beisner (1chb1n) wrote : | #10 |
We are seeing the same in UOSCI with 1.22beta5. About 2 of 10 deployer deployments result in something like:
http://
| Ryan Beisner (1chb1n) wrote : | #11 |
FYI, an example deployer loop & check showing 1 of 10 failing:
http://
See L785 Iteration 8.
| Curtis Hovey (sinzui) wrote : | #12 |
We have test debs located at
http://
Contact sinzui/curtis to get credentials if needed. and I can also provide newer debs if CI has built them.
| Ryan Beisner (1chb1n) wrote : | #13 |
Issue still exists with 1.22-beta6-
4 of 25 deploys exhibited the symptom.
Tested with debs from http://
Reproducer and full output @ http://
Summary:
juju-core 1.22-beta6-
juju-deployer 0.3.6-0ubuntu2
python-jujuclient 0.17.5-0ubuntu2
2015-03-10 21:51:37 [DEBUG] deployer.import: Adding units...
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
run()
File "/usr/lib/
importer.
File "/usr/lib/
self.
File "/usr/lib/
env_status = self.env.status()
File "/usr/lib/
return self.client.
File "/usr/lib/
return StatusTranslato
File "/usr/lib/
change_set = watch.next()
File "/usr/lib/
'Id': self.watcher_id})
File "/usr/lib/
raise EnvError(result)
jujuclient.
{ u'Error': u'unit "ubuntu/1" is not assigned to a machine',
u'ErrorCode': u'not assigned',
u'RequestId': 1,
u'Response': { }}
| Andrew Wilkins (axwalk) wrote : | #14 |
For posterity, the environment is running 1.22-beta5 still, as can be seen in the output of "juju status". Ryan is testing with --upload-tools, and will check back in on it.
| Ryan Beisner (1chb1n) wrote : | #15 |
Ah yes, I didn't use upload-tools in that last run. With 1.22beta6 tools, this bug appears to be resolved.
25 of 25 deploys succeeded.
Reproducer script & full output: http://
| tags: | added: openstack uosci |
| summary: |
- unit "ceph/0" is not assigned to a machine when deploying with juju + unit "(AnyCharm)" is not assigned to a machine when deploying with juju 1.22-beta5 |
| Andrew Wilkins (axwalk) wrote : | #16 |
Excellent, thanks for the update.
| Changed in juju-core: | |
| status: | Fix Committed → Fix Released |


I've tested twice now and hit this both times.
Here's my juju related versions: 0ubuntu1~ 12.04.1~ juju1 Juju is devops distilled - client ubuntu12. 04.1~ppa1 Deploy complex stacks of services using Juju
ii juju-core 1.22-beta5-
ii juju-deployer 0.4.3-0ubuntu1~
ii python-jujuclient 0.50.1-2 Python API client for juju-core