After upgrading to 2.6.1-bionic-amd64 juju status returns
runtime error: invalid memory address or nil pointer dereference
/var/log/juju/machine-0.log on the controller contains:
2019-05-14 13:15:50 CRITICAL juju.rpc server.go:558 panic running request {MethodCaller:0xc00545ed80 transformErrors:0x20c4250 hdr:{RequestId:5 Request:{Type:Client Version:2 Id: Action:FullStatus} Error: ErrorCode: ErrorInfo:map[] Version:1}} with arg {Patterns:[]}: runtime error: invalid memory address or nil pointer dereference
goroutine 912508 [running]:
runtime/debug.Stack(0xc0052a8048, 0x328ece0, 0x69dd6b0)
/snap/go/3730/src/runtime/debug/stack.go:24 +0xa7
github.com/juju/juju/rpc.(*Conn).runRequest.func1(0xc0052a9f28, 0x3353980, 0xc0048b07e0, 0x199, 0xc0036d0820, 0x3f864a0, 0xc0048b07c0)
/workspace/_build/src/github.com/juju/juju/rpc/server.go:559 +0xcd
panic(0x328ece0, 0x69dd6b0)
/snap/go/3730/src/runtime/panic.go:513 +0x1b9
github.com/juju/juju/vendor/gopkg.in/juju/charm%2ev6.(*LXDProfile).Empty(0x0, 0x3f8ae60)
/workspace/_build/src/github.com/juju/juju/vendor/gopkg.in/juju/charm.v6/lxdprofile.go:73 +0x5
github.com/juju/juju/core/lxdprofile.NotEmpty(0x3f7fc40, 0xc005644580, 0xc0052fc400)
/workspace/_build/src/github.com/juju/juju/core/lxdprofile/validate.go:62 +0x4a
github.com/juju/juju/apiserver/facades/client/client.(*statusContext).processApplication(0xc00001fbc0, 0xc005e21d10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/workspace/_build/src/github.com/juju/juju/apiserver/facades/client/client/status.go:1018 +0xfe
github.com/juju/juju/apiserver/facades/client/client.(*statusContext).processApplications(0xc00001fbc0, 0xc0055d8ed0)
/workspace/_build/src/github.com/juju/juju/apiserver/facades/client/client/status.go:1006 +0xee
github.com/juju/juju/apiserver/facades/client/client.(*Client).FullStatus(0xc005b1d500, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/workspace/_build/src/github.com/juju/juju/apiserver/facades/client/client/status.go:368 +0x18ef
reflect.Value.call(0x384c780, 0xc005b1d500, 0x2a13, 0x396ed84, 0x4, 0xc005a7cca0, 0x1, 0x1, 0xa263f1, 0x31154c0, ...)
/snap/go/3730/src/reflect/value.go:447 +0x454
reflect.Value.Call(0x384c780, 0xc005b1d500, 0x2a13, 0xc005a7cca0, 0x1, 0x1, 0x1, 0x1, 0xc000ff1500)
/snap/go/3730/src/reflect/value.go:308 +0xa4
github.com/juju/juju/rpc/rpcreflect.newMethod.func8(0x3faf320, 0xc005454300, 0x384c780, 0xc005b1d500, 0x16, 0x3353980, 0xc0048b07e0, 0x199, 0x42e592, 0xc000000000, ...)
/workspace/_build/src/github.com/juju/juju/rpc/rpcreflect/type.go:344 +0x109
github.com/juju/juju/apiserver.(*srvCaller).Call(0xc00545ed80, 0x3faf320, 0xc005454300, 0x0, 0x0, 0x3353980, 0xc0048b07e0, 0x199, 0xc0048b07c0, 0x342fdeee2fc3, ...)
/workspace/_build/src/github.com/juju/juju/apiserver/root.go:170 +0xd6
github.com/juju/juju/rpc.(*Conn).runRequest(0xc0036d0820, 0x3f9a820, 0xc00545ed80, 0x3adb6d0, 0x5, 0xc005261340, 0x6, 0x2, 0x0, 0x0, ...)
/workspace/_build/src/github.com/juju/juju/rpc/server.go:572 +0x1ab
created by github.com/juju/juju/rpc.(*Conn).handleRequest
/workspace/_build/src/github.com/juju/juju/rpc/server.go:476 +0x93f
juju show-controller returns:
alumnicontroller:
details:
uuid: 0b661548-7333-432e-8c46-e9856b689101
controller-uuid: 0b661548-7333-432e-8c46-e9856b689101
api-endpoints: ['10.2.253.248:17070']
cloud: myvscloud
region: New Datacenter
agent-version: 2.6.1
mongo-version: 3.6.3
ca-fingerprint: 0D:AE:EA:33:6A:EA:35:0F:34:4C:F0:8E:65:D3:49:42:A4:18:3E:63:29:5F:9B:4D:44:4F:20:34:E3:80:1D:98
ca-cert: |
-----B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KQk
dscG27UBmBlIWBTdbVwdpEhrXneIgCHLyKwOLvxL6lR7w8nNWV/QsvLdHqKb2jlP
nKwzHb4K5n3sKLAmyfLtEHV6CiQ2wQmp7rHaomEX8EVcqxcGMbKOnKiVIxOf1PGJ
7OTn0s178H+kgucSGEM1xOyftQKvQE+87n40PPvq31qD2kH/+axJqb/rLECSkkhA
MXgEJGqhbh42aRnA/3hs9ebMhH8HBY+blNzUNz3YDYM=
-----END CERTIFICATE-----
controller-machines:
"0":
instance-id: juju-2f90ad-0
models:
controller:
uuid: e6dadd1e-52e9-4284-8f8b-7d2b4e2f90ad
model-uuid: e6dadd1e-52e9-4284-8f8b-7d2b4e2f90ad
machine-count: 1
default:
uuid: 4d34a4e3-70db-413a-83c8-0ff21fb8f62f
model-uuid: 4d34a4e3-70db-413a-83c8-0ff21fb8f62f
machine-count: 5
core-count: 12
current-model: admin/default
account:
user: admin
access: superuser
Of my 13 juju controllers, only 11 upgraded to 2.6.1 and 6 of the 11 upgraded controllers exhibit this problem. 5 seem to work correctly.