juju status --format summary panics with unresolvable IPs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Katherine Cox-Buday | ||
1.22 |
Fix Released
|
High
|
Katherine Cox-Buday |
Bug Description
I have just found that in my MAAS environment (locally installed on KVMs) running "juju status --format summary" panics with the following output (I've tried all the other --format types - only summary is affected):
[*maas-trusty] dimitern@kubrik:~$ juju status --format summary
WARNING unable to resolve vm0.maas to an IP address. Status may be incorrect: lookup vm0.maas: no such host
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x42387f]
goroutine 1 [running]:
runtime.
/usr/lib/
main.(*
/home/
main.(*
/home/
main.FormatSumm
/home/
github.
/home/
github.
/home/
main.(*
/home/
github.
/home/
main.(*
/home/
github.
/home/
github.
/home/
main.Main(
/home/
main.main()
/home/
goroutine 3 [syscall]:
os/signal.loop()
/usr/lib/
created by os/signal.init·1
/usr/lib/
goroutine 10 [finalizer wait]:
runtime.
/usr/lib/
runfinq()
/usr/lib/
runtime.goexit()
/usr/lib/
goroutine 19 [syscall]:
runtime.goexit()
/usr/lib/
It seems the problem is that node's DNS name "vm0.maas" cannot be resolved on my machine and that causes the panic. This happened after I recently removed my local maas cluster controller's IP from the DNS servers to use by default.
Here's the same environment, but running "juju status" works fine:
[*maas-trusty] dimitern@kubrik:~$ juju status
environment: maas-trusty
machines:
"0":
agent-state: started
agent-version: 1.22-alpha1.1
dns-name: vm0.maas
instance-id: /MAAS/api/
series: trusty
containers:
0/lxc/0:
dns-name: 192.168.50.37
series: trusty
hardware: arch=amd64
hardware: arch=amd64 cpu-cores=1 mem=512M tags=virtual
state-
"1":
agent-state: started
agent-version: 1.22-alpha1.1
dns-name: vm1.maas
instance-id: /MAAS/api/
series: trusty
containers:
1/lxc/0:
dns-name: 192.168.50.35
series: trusty
hardware: arch=amd64
hardware: arch=amd64 cpu-cores=1 mem=512M tags=virtual
services:
ubuntu:
charm: cs:trusty/ubuntu-0
exposed: false
units:
ubuntu/0:
machine: 0/lxc/0
ubuntu/1:
machine: "1"
ubuntu/2:
machine: 1/lxc/0
networks:
maas:
provider-id: maas
cidr: 192.168.50.0/24
maas-eth2:
provider-id: maas-eth2
cidr: 192.168.122.0/24
vlan42:
provider-id: vlan42
cidr: 192.168.222.0/28
vlan-tag: 42
vlan1234:
provider-id: vlan1234
cidr: 192.168.242.0/28
vlan-tag: 1234
Changed in juju-core: | |
assignee: | nobody → Katherine Cox-Buday (cox-katherine-e) |
Changed in juju-core: | |
milestone: | none → 1.23 |
Changed in juju-core: | |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Changed in juju-core: | |
milestone: | 1.23 → 1.23-beta1 |