On Sun, May 5, 2019 at 9:13 PM Andreas Elvers <andreas.elvers+ovirtforum@solutions.work> wrote:
Hello today I tried to migrate the hosted engine from our Default Datacenter (NFS) to our Ceph Datacenter. The deployment worked with the automatic  "hosted-engine --deploy --restore-from-file=backup/file_name" command. Perfect.

Only thing is: I messed up with the cluster name. The name should be Luise01 but I entered Luise1. Duh...

Now I want to bring the engine back to the Default Datacenter. Easy thing. Just repeat the same steps again.

1. Enable global ha maintenenace
2. Stop and disable the engine
3. create the engine backup
4 ... continue with all the steps from chapter 13.1.8 RHEV Docs 4.3 Beta.

Everything looked great. The ansible playbook was running, then asking for the storage domain. I entered the NFS path. It got registered, but then the ansible playbook  errors out with

[ INFO  ] TASK [ovirt.hosted_engine_setup : Add VM]
[ ERROR ] Error: Fault reason is "Operation Failed". Fault detail is "[Cannot attach Virtual Disk. The target Data Center does not contain the Virtual Disk.]". HTTP response code is 409.
[ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "Fault reason is \"Operation Failed\". Fault detail is \"[Cannot attach Virtual Disk. The target Data Center does not contain the Virtual Disk.]\". HTTP response code is 409."}
[ ERROR ] Failed to execute stage 'Closing up': Failed executing ansible-playbook
[ INFO  ] Stage: Clean up
[ INFO  ] Cleaning temporary resources

I see that there is a bug report on https://bugzilla.redhat.com/show_bug.cgi?id=1649424

Any idea how to get around this error ?

It seems barely reproducible: maybe a race condition somewhere.
I know it can look a bit clumsy but I suggest to simply give it another try.
 

Additionally I now have a HostedEngineLocal (shut off) on that node... How do I remove it?
engine-cleanup ?

You can even simply destroy that VM with virsh and run again the deployment.
 

Have to get some sleep.

best regards.
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZFCLFWRN6XR6KMHMC63O7J37D5GNPVKZ/


--

Simone Tiraboschi

He / Him / His

Principal Software Engineer

Red Hat

stirabos@redhat.com