On 23/09/15 13:54, Luca Bertoncello wrote:
Hi Alex
> Did the host you are running the script on shut down before the
> migration completed?
Apparently yes...
Thought so. The migration then cannot continue, obviously.
> If you put the host in maintenance from the GUI, does it successfully
> migrate off all VMs?
Yes, this happens!
Now, I think, the problem is that the system first unmount /run and then call my script,
so that libvirt has no more possibility to successfully migrate the VMs...
Can someone suggest me a way to call my script as FIRST script on shutdown/reboot and to
block the shutdown/reboot until my script complete?
This will solve the problem...
Add your systemd script as a "requires" entry in the systemd script
responsible for shutting down the system?
Of course, I can try with a wrapper for /sbin/shutdown and /sbin/reboot, but this is not
a nice solution...
Why don't you manage this from another machine, not from the hosts? Just
have a script call the API to initiate maintenance, wait for the
migration to complete, then call the API to shut down the host?
Or is it really too hard to do this from the GUI? I don't understand why
you have such a hard requirement to be able to do this from the hosts -
the whole point of Ovirt is that you don't have to manage your hosts on
an individual basis!
Alex
Thanks
Mit freundlichen Grüßen
Luca Bertoncello
--
Besuchen Sie unsere Webauftritte:
www.queo.biz Agentur für Markenführung und Kommunikation
www.queoflow.com IT-Consulting und Individualsoftwareentwicklung
Luca Bertoncello
Administrator
Telefon: +49 351 21 30 38 0
Fax: +49 351 21 30 38 99
E-Mail: l.bertoncello(a)queo-group.com
queo GmbH
Tharandter Str. 13
01159 Dresden
Sitz der Gesellschaft: Dresden
Handelsregistereintrag: Amtsgericht Dresden HRB 22352
Geschäftsführer: Rüdiger Henke, André Pinkert
USt-IdNr.: DE234220077
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
--
This message is intended only for the addressee and may contain
confidential information. Unless you are that person, you may not
disclose its contents or use it in any way and are requested to delete
the message along with any attachments and notify us immediately.
"Transact" is operated by Integrated Financial Arrangements plc. 29
Clement's Lane, London EC4N 7AE. Tel: (020) 7608 4900 Fax: (020) 7608
5300. (Registered office: as above; Registered in England and Wales
under number: 3727592). Authorised and regulated by the Financial
Conduct Authority (entered on the Financial Services Register; no. 190856).
.