We are using VMs from several MaaS PoDs in one of our juju models to host some units. Due to hard disk limitations we had to move a machine from one PoD to another. As there is no straight forward way for MaaS to do that, we deployed a new machine (same as the obsolete one), changed through virsh the virtual disk and brought the new machine up again with the exact same state as the obsolete.
The problem is that juju complains it cannot find the instance for a specific unit. We didn’t want to go with remove-unit/add-unit due to some customizations we have on this machine, not scripted yet.
I searched through the juju db and configuration files and I have found only one reference of the machine id in mongodb instanceData . I have changed it, carefully to match exaclty with MaaS and restarted both the controllers and the agent on the machine.
Still no luck and the agent on the machine continuously logs the following:
2019-09-19 10:50:36 ERROR juju.worker.dependency engine.go:663 “machiner” manifold worker returned unexpected error: cannot update observed network config: cannot get network interfaces of “wg8gx4”: instance “wg8gx4” not found (not found)
The id “wg8gx4” is the correct id of the new machine in MaaS. Does anyone have any insight of the code to shred some light ?!?!