Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1101565

Summary: Cannot approve hosts using REST API
Product: Red Hat Enterprise Virtualization Manager Reporter: Amador Pahim <asegundo>
Component: ovirt-engine-restapiAssignee: Yaniv Bronhaim <ybronhei>
Status: CLOSED ERRATA QA Contact: Jiri Belka <jbelka>
Severity: high Docs Contact:
Priority: medium    
Version: 3.3.0CC: aberezin, bazulay, iheim, lbopf, oourfali, oramraz, pstehlik, rbalakri, Rhev-m-bugs, ybronhei, yeylon
Target Milestone: ---Keywords: Regression
Target Release: 3.5.0   
Hardware: All   
OS: Linux   
Whiteboard: infra
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 18:02:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1149655, 1149658    
Bug Blocks: 1142923, 1156165    

Description Amador Pahim 2014-05-27 14:17:02 UTC
- 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.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 13:09:26 UTC
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 18:02:35 UTC
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