Bug 1013637 - [REST-API] no ssh-publickey support for install host action
Summary: [REST-API] no ssh-publickey support for install host action
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 3.3.0
Assignee: Yaniv Bronhaim
QA Contact: sefi litmanovich
URL:
Whiteboard: infra
Depends On:
Blocks: 1019461 3.3snap2
TreeView+ depends on / blocked
 
Reported: 2013-09-30 13:44 UTC by Barak Dagan
Modified: 2016-02-10 19:12 UTC (History)
9 users (show)

Fixed In Version: is21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-21 22:19:41 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 19700 0 None None None Never
oVirt gerrit 20024 0 None None None Never

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


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