Bug 1013637

Summary: [REST-API] no ssh-publickey support for install host action
Product: Red Hat Enterprise Virtualization Manager Reporter: Barak Dagan <bdagan>
Component: ovirt-engine-restapiAssignee: Yaniv Bronhaim <ybronhei>
Status: CLOSED CURRENTRELEASE QA Contact: sefi litmanovich <slitmano>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, alonbl, bazulay, eedri, iheim, oramraz, pstehlik, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 22:19:41 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:    
Bug Blocks: 1019461, 1032811    

Description Barak Dagan 2013-09-30 13:44:23 UTC
Description of problem:
The SSH-publickey is not supported in action host install.
It is supported in add / edit (update) through API and add / edir / install through the UI:

[RHEVM shell]# action host MyHost install 


error: 
status: 400
reason: Bad Request
detail: Action [rootPassword] required for install


[RHEVM shell]# action host MyHost install 
root_password   ssh-password   

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

How reproducible:
100%

Steps to Reproduce:
1. action host MyHost install
2. enter / auto completion / help
3.

Actual results:
help: 

     Overload 1:
     
     [--root_password: string]
     [--image: string]
     
     Overload 2:
     
     [--ssh-password: string]
     [--image: string]
     [--correlation_id: anystring]


Expected results:

     Overload 1:
     
     [--root_password: string]
     [--image: string]
     
     Overload 2:
     
     [--ssh-port: int]
     [--ssh-fingerprint: string]
     [--ssh-authentication_method: string]
     [--ssh-user-user_name: string]
     [--ssh-user-password: string]
     [--image: string]
     [--correlation_id: anystring]


Additional info:

Comment 1 Yaniv Bronhaim 2013-09-30 15:01:07 UTC
Alon, can you confirm the expected results? As it seems it should be as specified in the bug's description

Comment 2 Alon Bar-Lev 2013-09-30 15:37:55 UTC
(In reply to Yaniv Bronhaim from comment #1)
> Alon, can you confirm the expected results? As it seems it should be as
> specified in the bug's description

Right.

Behavior should be similar to api in this regard, I thought the cli automatically parses the api spec... If not functionality should be added.

Comment 3 Michael Pasternak 2013-09-30 16:17:33 UTC
(In reply to Alon Bar-Lev from comment #2)
> (In reply to Yaniv Bronhaim from comment #1)
> > Alon, can you confirm the expected results? As it seems it should be as
> > specified in the bug's description
> 
> Right.
> 
> Behavior should be similar to api in this regard, I thought the cli
> automatically parses the api spec... 

it is

> If not functionality should be added.

the problem is in api

Comment 5 Michael Pasternak 2013-10-09 08:12:57 UTC
yaniv,

this BZ should not be modified till 3.3 patch gets merged, also please add
a 3.3 gerrit patch ref to this BZ

Comment 6 sefi litmanovich 2013-11-11 13:15:40 UTC
Verified on RHEVM 3.3 IS22.


[RHEVM shell]# action host MyHost install 


error: 
status: 400
reason: Bad Request
detail: Action [rootPassword] required for install

     Overload 1:
     
     [--root_password: string]
     [--image: string]
     
     Overload 2:
     
     [--ssh-port: int]
     [--ssh-fingerprint: string]
     [--ssh-authentication_method: string]
     [--ssh-user-user_name: string]
     [--ssh-user-password: string]
     [--image: string]
     [--correlation_id: anystring]

the option exists, the feature itself doesn't work yes due to bug:
https://bugzilla.redhat.com/show_bug.cgi?id=987982

discussion regarding this should continue on bz 987982

Comment 7 Itamar Heim 2014-01-21 22:19:41 UTC
Closing - RHEV 3.3 Released

Comment 8 Itamar Heim 2014-01-21 22:25:44 UTC
Closing - RHEV 3.3 Released