When deploying a node into kvm with local provider:
$ juju deploy --to kvm:0 SERVICE
Every node will have the same hostname "ubuntu" which is not unique in the environment.
Expected result is that every node has a unique hostname like $USER-local-machine-0-kvm-1 as well as other lxc containers.
$ virsh list
Id Name State
----------------------------------------------------
28 nobuto-local-machine-0-kvm-0 running
29 nobuto-local-machine-0-kvm-1 running
30 nobuto-local-machine-0-kvm-2 running
31 nobuto-local-machine-0-kvm-3 running
$ juju run --service nova-compute 'hostname'
- MachineId: 0/kvm/1
Stdout: 'ubuntu
'
UnitId: nova-compute/0
- MachineId: 0/kvm/3
Stdout: 'ubuntu
'
UnitId: nova-compute/1
juju-core:
Installed: 1.19.3-0ubuntu1~14.10.1~juju1
Candidate: 1.19.3-0ubuntu1~14.10.1~juju1
Version table:
*** 1.19.3-0ubuntu1~14.10.1~juju1 0
500 http://ppa.launchpad.net/juju/devel/ubuntu/ utopic/main amd64 Packages
100 /var/lib/dpkg/status
1.18.1-0ubuntu1 0
500 http://jp.archive.ubuntu.com/ubuntu/ utopic/universe amd64 Packages
juju-local:
Installed: 1.19.3-0ubuntu1~14.10.1~juju1
Candidate: 1.19.3-0ubuntu1~14.10.1~juju1
Version table:
*** 1.19.3-0ubuntu1~14.10.1~juju1 0
500 http://ppa.launchpad.net/juju/devel/ubuntu/ utopic/main amd64 Packages
100 /var/lib/dpkg/status
1.18.1-0ubuntu1 0
500 http://jp.archive.ubuntu.com/ubuntu/ utopic/universe amd64 Packages
It looks like juju does not put hostname in cloud-config. cloud/instance/ user-data. txt.
no hostname line in /var/lib/