So the stacktrace ends up being:
machine-0: 19:04:28 TRACE juju.apiserver.common server RPC error [
{github.com/juju/juju/apiserver/common/networkingcommon/networkconfigapi.go:192: }
{github.com/juju/juju/apiserver/common/networkingcommon/networkconfigapi.go:78: cannot get network interfaces of "4s33ky"}
{github.com/juju/juju/provider/maas/interfaces.go:330: }
{github.com/juju/juju/provider/maas/environ.go:1756: instance "4s33ky" not found}
]
and that line is specifically:
if len(instances) == 0 {
return nil, errors.NotFoundf("instance %q", instId)
}
So the stacktrace ends up being: common server RPC error [ com/juju/ juju/apiserver/ common/ networkingcommo n/networkconfig api.go: 192: } com/juju/ juju/apiserver/ common/ networkingcommo n/networkconfig api.go: 78: cannot get network interfaces of "4s33ky"} com/juju/ juju/provider/ maas/interfaces .go:330: } com/juju/ juju/provider/ maas/environ. go:1756: instance "4s33ky" not found}
machine-0: 19:04:28 TRACE juju.apiserver.
{github.
{github.
{github.
{github.
]
and that line is specifically: NotFoundf( "instance %q", instId)
if len(instances) == 0 {
return nil, errors.
}
So somehow: acquiredInstanc es([]instance. Id{instId} )
func (environ *maasEnviron) getInstance(instId instance.Id) (instance.Instance, error) {
instances, err := environ.
with that instance id, really is returning no instances.