Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1101565 - Cannot approve hosts using REST API
Cannot approve hosts using REST API
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi (Show other bugs)
3.3.0
All Linux
medium Severity high
: ---
: 3.5.0
Assigned To: Yaniv Bronhaim
Jiri Belka
infra
: Regression
Depends On: 1149655 1149658
Blocks: rhev3.5beta 1156165
  Show dependency treegraph
 
Reported: 2014-05-27 10:17 EDT by Amador Pahim
Modified: 2016-02-10 14:34 EST (History)
12 users (show)

See Also:
Fixed In Version: ovirt-3.5.0-alpha2
Doc Type: Bug Fix
Doc Text:
Hosts can now be approved via the REST API, as well as via the UI.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-02-11 13:02:35 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Infra
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 905693 None None None Never
oVirt gerrit 27622 master MERGED api: Fix approve API to allow deploy with public key Never
Red Hat Product Errata RHSA-2015:0158 normal SHIPPED_LIVE Important: Red Hat Enterprise Virtualization Manager 3.5.0 2015-02-11 17:38:50 EST

  None (edit)
Description Amador Pahim 2014-05-27 10:17:02 EDT
- Description of problem:

Using REST API, I'm not able to approve hosts. The log shows:

2014-05-27 11:04:54,700 INFO  [org.ovirt.engine.core.bll.InstallerMessages] (ajp-/127.0.0.1:8702-2) [32b48e64] Installation 192.168.25.73: Connected to host 192.168.25.73 with SSH key fingerprint: d8:34:9c:9a:46:68:a7:0a:e1:32:e6:12:dd:0e:b4:c8
2014-05-27 11:04:54,711 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp-/127.0.0.1:8702-2) [32b48e64] Correlation ID: 32b48e64, Call Stack: null, Custom Event ID: -1, Message: Installing Host t420s.pahim.org. Connected to host 192.168.25.73 with SSH key fingerprint: d8:34:9c:9a:46:68:a7:0a:e1:32:e6:12:dd:0e:b4:c8.
2014-05-27 11:04:54,712 ERROR [org.ovirt.engine.core.bll.VdsDeploy] (ajp-/127.0.0.1:8702-2) [32b48e64] Error during host 192.168.25.73 install: javax.naming.AuthenticationException: SSH authentication failure 'root@192.168.25.73', no password or key

The same host is approved if using Administration Portal.

- Version-Release number of selected component (if applicable):

rhevm-restapi-3.3.2-0.50.el6ev.noarch

- Steps to Reproduce:

Url: https://<rhevm>/api/hosts/<host_id>/approve
Body : <action/>
Mthod: Post
Output:400 Bad Request
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<action>
<status>
<state>failed</state>
</status>
<fault>
<reason>Operation Failed</reason>
<detail>[]</detail>
</fault>
</action>

- Additional info:

SDKs and rhevm-shell affected in consequence.
Comment 2 Jiri Belka 2014-11-10 08:09:26 EST
ok, rhevm-backend-3.5.0-0.19.beta.el6ev.noarch & RHEV Hypervisor - 6.6 - 20141107.0.el6ev
Comment 4 errata-xmlrpc 2015-02-11 13:02:35 EST
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/RHSA-2015-0158.html

Note You need to log in before you can comment on or make changes to this bug.