Had to restore ONe frontend from old DB backup, how do I restore?

Hi.

We suffered a server crash yesterday, so I had to restore my opennebula frontend from an old (~week old) backup. Right now it’s running okay, but since then there were a few VMs (with images) created on the cluster, so I see a bunch of Zombie VMs and I can’t create new images because of the naming conflicts (we use Ceph).

So I have two questions.

  1. How do I tell ONe not to reuse image names that are already occupied?
  2. How do I re-import Zombie VMs back into ONe?

So I updated the pool_control table to tell ONe it shouldn’t use already occupied OIDs, and I think I’ll just recreate the affected VMs (fortunately, not many) from scratch.