Bug 1027292 - Can't create a user with rhevm-shell: User [userName] required for add [NEEDINFO]
Summary: Can't create a user with rhevm-shell: User [userName] required for add
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-cli
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.3.0
Assignee: Michael Pasternak
QA Contact: Elena
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-06 13:37 UTC by Ohad Basan
Modified: 2016-02-10 19:26 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-11 15:01:06 UTC
oVirt Team: Infra
Target Upstream Version:
mpastern: needinfo? (obasan)


Attachments (Terms of Use)

Description Ohad Basan 2013-11-06 13:37:05 UTC
Description of problem:
Passing an add user command to rhevm-shell including all the required parameters (including --user_name) yields User [userName] required for add
it looks like rhevm-shell ignores the supplied parameter

Comment 2 Michael Pasternak 2013-11-06 14:24:06 UTC
i cannot reproduce this:

[RHEVM shell (connected)]# list domains 

id         : 71612e6c-6162-2e74-6c76-2e7265646861
name       : qa.lab.tlv.redhat.com

id         : 696e7465-726e-616c-696e-7465726e616c
name       : internal

    
[RHEVM shell (connected)]# list users --domain-identifier 71612e6c-6162-2e74-6c76-2e7265646861 --query "name=mpastern"

id         : 895a8649-8dcb-4e6b-b609-b407a0549f03
name       : mpastern

[RHEVM shell (connected)]# add user 
correlation_id  domain-id       domain-name     expect          user_name       
[oVirt shell (connected)]# add user --user_name mpastern --domain-id 71612e6c-6162-2e74-6c76-2e7265646861

id         : 895a8649-8dcb-4e6b-b609-b407a0549f03
name       : mpastern
domain-id  : 71612e6c-6162-2e74-6c76-2e7265646861
domain-name: qa.lab.tlv.redhat.com
user_name  : mpastern.tlv.redhat.com

[RHEVM shell (connected)]# remove user mpastern

status-state: complete

[RHEVM shell (connected)]# add user --user_name mpastern.tlv.redhat.com --domain-name qa.lab.tlv.redhat.com --expect '201-created' --correlation_id 324

id         : 895a8649-8dcb-4e6b-b609-b407a0549f03
name       : mpastern
domain-id  : 71612e6c-6162-2e74-6c76-2e7265646861
domain-name: qa.lab.tlv.redhat.com
user_name  : mpastern.tlv.redhat.com

[RHEVM shell (connected)]# remove user mpastern

status-state: complete

[RHEVM shell (connected)]# add user --user_name 'mpastern.tlv.redhat.com' --domain-name 'qa.lab.tlv.redhat.com' --expect '201-created' --correlation_id 324

id         : 895a8649-8dcb-4e6b-b609-b407a0549f03
name       : mpastern
domain-id  : 71612e6c-6162-2e74-6c76-2e7265646861
domain-name: qa.lab.tlv.redhat.com
user_name  : mpastern.tlv.redhat.com

please provide reproducer

Comment 3 Michael Pasternak 2013-11-11 15:01:06 UTC
closing this bug, please reopen it if you have reproducer.


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