
Hi, I am currently trying to restart a host, ie send it into reboot state, and then up, using the Restart button below SSH Management in the UI. How is this achieved? I don't see a restart option in any of the host endpoints. TIA

Hi Scott, AFAIK (maybe someone will correct me) - restart via ssh is GUI internal action and it has not been yet exposed via REST API. On GUI side it is triggered by the following method: https://github.com/oVirt/ovirt-engine/blob/d3244813f7d0ddee46e2487bc8c931bcd... And on backend it goes to: https://github.com/oVirt/ovirt-engine/blob/ede62008318d924556bc9dfc5710d90e9... Artur On Fri, Oct 18, 2019 at 12:38 PM <scott.fitzgerald@oracle.com> wrote:
Hi, I am currently trying to restart a host, ie send it into reboot state, and then up, using the Restart button below SSH Management in the UI. How is this achieved? I don't see a restart option in any of the host endpoints. TIA _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-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/devel@ovirt.org/message/52J2Y7LJ4MUAGL...
-- Artur Socha Senior Software Engineer, RHEV Red Hat <https://www.redhat.com> <https://www.redhat.com>

Hi Artur, Thanks, I assumed this was the case. Is there a timeline for when this functionality will be available in the ovirt sdk? Thanks, Scott

There is a ticket in bugzilla ... quite old. Unfortunately I have no information about any plans regarding its implementation. The ticket itself is not assigned to any of the upcoming releases. https://bugzilla.redhat.com/show_bug.cgi?id=1393766 Artur On Fri, Oct 18, 2019 at 1:45 PM <scott.fitzgerald@oracle.com> wrote:
Hi Artur,
Thanks, I assumed this was the case. Is there a timeline for when this functionality will be available in the ovirt sdk?
Thanks, Scott _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-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/devel@ovirt.org/message/4X5BSGGIYXXABH...
-- Artur Socha Senior Software Engineer, RHEV Red Hat <https://www.redhat.com> <https://www.redhat.com>

Putting this here for future reference if someone else stumbles across this: The reboot functionality can be mirrored by using bash commands from within your Java/python/etc code. ssh host shutdown -r now This will achieve the desired results, however the UI will report slightly differently.

Il giorno ven 18 ott 2019 alle ore 15:27 <scott.fitzgerald@oracle.com> ha scritto:
Putting this here for future reference if someone else stumbles across this:
The reboot functionality can be mirrored by using bash commands from within your Java/python/etc code.
ssh host shutdown -r now
This will achieve the desired results, however the UI will report slightly differently.
Thanks Scott. I added your note to bug https://bugzilla.redhat.com/show_bug.cgi?id=1393766 just in case someone looks for it in bugzilla. Just note that if the workaround is not enough and you need the functionality at SDK level and can push a patch for it, we'll be happy to review it. Thanks, -- Sandro Bonazzola MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV Red Hat EMEA <https://www.redhat.com/> sbonazzo@redhat.com <https://www.redhat.com/>*Red Hat respects your work life balance. Therefore there is no need to answer this email out of your office hours.*
participants (3)
-
Artur Socha
-
Sandro Bonazzola
-
scott.fitzgerald@oracle.com