service never comes up with kvm containers in maas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Invalid
|
Medium
|
Unassigned |
Bug Description
When using kvm containers on a set of nodes with the maas provider, the service never comes up:
CloudFive:
environment: maas
machines:
"0":
agent-state: started
agent-version: 1.17.4
dns-name: qch8n.master
instance-id: /MAAS/api/
series: precise
"2":
agent-state: started
agent-version: 1.17.4
dns-name: axeqd.master
instance-id: /MAAS/api/
series: precise
containers:
2/kvm/0:
dns-name: 10.0.100.143
series: precise
hardware: arch=amd64 cpu-cores=1 mem=512M root-disk=8192M
services:
mysql:
charm: cs:precise/mysql-36
exposed: false
relations:
cluster:
- mysql
units:
mysql/0:
machine: 2/kvm/0
probably because of whatever this means in my unit-mysql-0.log: http://
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: kvm maas-provider |
tags: | added: deploy |
Changed in juju-core: | |
importance: | High → Medium |
The log files contain this error:
cannot get unit's private address: open /var/lib/ juju/MAASmachin e.txt: no such file or directory
The above file is created by cloud init when the node boostraps.
I believe there's the possibility that MAAS/Juju can be configured such that when Juju needs to create a new node on which to deploy a unit, it may acquire an existing node from a pool of those already running. In this case, because the node is not bootstrapped by Juju, no Juju cloud init scripts are run and hence the required MAASmachine.txt file is not created.
Can you please confirm if this is the case? Right now, there's no easy fix for this situation, other than having things configured such that nodes required by Juju are bootstrapped fresh rather than being pre-allocated and acquired.