Bug 1027292

Summary: Can't create a user with rhevm-shell: User [userName] required for add
Product: Red Hat Enterprise Virtualization Manager Reporter: Ohad Basan <obasan>
Component: ovirt-engine-cliAssignee: Michael Pasternak <mpastern>
Status: CLOSED WORKSFORME QA Contact: Elena <edolinin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, bazulay, eedri, iheim, knesenko, obasan, oramraz, Rhev-m-bugs, srevivo, yeylon
Target Milestone: ---Keywords: AutomationBlocker, AutomationTriaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-11 15:01:06 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:

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.

Comment 4 Red Hat Bugzilla 2023-09-14 01:53:15 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days