null: machine addresses may override bootstrap hostname
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Andrew Wilkins |
Bug Description
Recent work to have machine agents publish their machine addresses has caused a problem for the manual provider. The bootstrap node currently does not record the host/IP bootstrapped with as being public, and so any machine address that comes along may override it as being the "most public address".
For example, if I bootstrap on one network interface (10.0.3.1), and wait a while, the machine agent will eventually record all its addresses; they're all non-public, so any one of them may win (and in my case, if you look at the bottom, 192.168.122.1 was selected).
andrew@
Logging to /var/log/
Running apt-get update
Installing package: git
Installing package: cpu-checker
Installing package: mongodb-server
Starting MongoDB server (juju-db)
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
andrew@
environment: "null"
machines:
"0":
agent-state: pending
dns-name: 10.0.3.1
instance-id: 'manual:'
series: saucy
hardware: arch=amd64 cpu-cores=4 mem=15952M
services: {}
andrew@
environment: "null"
machines:
"0":
agent-state: down
agent-
agent-version: 1.17.2.1
dns-name: 192.168.122.1
instance-id: 'manual:'
series: saucy
hardware: arch=amd64 cpu-cores=4 mem=15952M
services: {}
Related branches
- Juju Engineering: Pending requested
-
Diff: 158 lines (+75/-14)8 files modifiedenvirons/manual/addresses.go (+23/-0)
environs/manual/addresses_test.go (+37/-0)
environs/manual/export_test.go (+8/-0)
environs/manual/provisioner.go (+1/-1)
environs/manual/suite_test.go (+1/-1)
instance/address.go (+3/-0)
provider/null/instance.go (+1/-11)
provider/null/suite_test.go (+1/-1)
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
milestone: | 1.18.0 → 1.17.2 |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |