VERIFIED in rhevm-backend-3.5.7-0.1.el6ev.noarch Tested while status up: [lsvaty@ ~]$ curl -X POST -H "Content-type: application/xml" -u admin@internal:mypass --insecure -d "<action><root_password>mypass</root_password><image>rhevh-latest-6.iso</image></action>" https://example.com/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/install <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <action> <root_password>mypass</root_password> <image>rhevh-latest-6.iso</image> <status> <state>failed</state> </status> <fault> <reason>Operation Failed</reason> <detail>[Cannot install Host. Please move Host to Maintenance mode first.]</detail> </fault> </action> While host in maintenance, upgrade successful: [lsvaty@dhcp131-219 ~]$ curl -X POST -H "Content-type: application/xml" -u admin@internal:mypass --insecure -d "<action><root_password>mypass</root_password><image>rhevh-latest-6.iso</image></action>" https://example.com/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/install <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <action> <host href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d" id="8b439483-dea4-436f-947e-88f17f2c022d"> <actions> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/forceselectspm" rel="forceselectspm"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/approve" rel="approve"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/iscsilogin" rel="iscsilogin"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/unregisteredstoragedomainsdiscover" rel="unregisteredstoragedomainsdiscover"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/iscsidiscover" rel="iscsidiscover"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/commitnetconfig" rel="commitnetconfig"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/fence" rel="fence"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/deactivate" rel="deactivate"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/install" rel="install"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/activate" rel="activate"/> </actions> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/storage" rel="storage"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/nics" rel="nics"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/numanodes" rel="numanodes"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/tags" rel="tags"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/permissions" rel="permissions"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/statistics" rel="statistics"/> <link href="/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/hooks" rel="hooks"/> </host> <root_password>mypass</root_password> <image>rhevh-latest-6.iso</image> <status> <state>complete</state> </status> </action> While host in reboot state after ugprade: [lsvaty@dhcp131-219 ~]$ curl -X POST -H "Content-type: application/xml" -u admin@internal:mypass --insecure -d "<action><root_password>mypass</root_password><image>rhevh-latest-6.iso</image></action>" https://example.com/api/hosts/8b439483-dea4-436f-947e-88f17f2c022d/install <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <action> <root_password>mypass</root_password> <image>rhevh-latest-6.iso</image> <status> <state>failed</state> </status> <fault> <reason>Operation Failed</reason> <detail>[Cannot install Host. Please move Host to Maintenance mode first.]</detail> </fault> </action> [lsvaty@dhcp131-219 ~]$
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0029.html