Race conditions may happen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-deployer |
Incomplete
|
Low
|
Unassigned |
Bug Description
While using juju-deployer to deploy an environment with yaml file, and put openstack services into the containers. Chances are that some of the containers may not be able to created due to the race conditions.
$ juju status
"24":
agent-state: started
agent-version: 1.26-alpha2
dns-name: computron.maas
instance-id: /MAAS/api/
series: wily
containers:
24/lxc/0:
series: wily
24/lxc/1:
series: wily
24/lxc/2:
series: wily
24/lxc/3:
series: wily
24/lxc/4:
series: wily
24/lxc/5:
series: wily
24/lxc/6:
dns-name: 10.231.64.170
series: wily
hardware: arch=amd64
24/lxc/7:
dns-name: 10.231.64.84
series: wily
hardware: arch=amd64
....
ubuntu@computron:~$ sudo lxc-ls
juju-machine-
ubuntu@computron:~$ sudo lxc-info --name juju-wily-
Name: juju-wily-
State: STOPPED
ubuntu@computron:~$ sudo lxc-info --name juju-machine-
Name: juju-machine-
State: RUNNING
PID: 20357
IP: 10.0.3.1
IP: 10.231.64.84
CPU use: 54.91 seconds
BlkIO use: 16.00 KiB
Memory use: 616.50 MiB
KMem use: 0 bytes
Link: veth1TOM1S
TX bytes: 2.57 MiB
RX bytes: 85.18 MiB
Total bytes: 87.76 MiB
ubuntu@computron:~$ sudo lxc-clone juju-wily-
locale: Cannot set LC_ALL to default locale: No such file or directory
Created container test as copy of juju-wily-
ubuntu@computron:~$ sudo lxc-ls
juju-machine-
ubuntu@computron:~$ sudo lxc-info --name test
Name: test
State: STOPPED
ubuntu@computron:~$ sudo lxc-start --name test
ubuntu@computron:~$ sudo lxc-info --name test
Name: test
State: RUNNING
PID: 74124
IP: 10.231.64.172
CPU use: 0.60 seconds
BlkIO use: 424.00 KiB
Memory use: 30.33 MiB
KMem use: 0 bytes
Link: veth3U8J1J
TX bytes: 1.33 KiB
RX bytes: 2.50 KiB
Total bytes: 3.84 KiB
In that case, I can clone the template manually, but juju-deployer fail to create because of the template is not stopped, so I guess there might be race condition in this situation
description: | updated |
tags: | added: cpec |
Changed in juju-deployer: | |
importance: | Undecided → Low |
I don't think this is an issue anymore with lxd. Marking as Incomplete, but reopen if you think this is still the case.