Bug 1177367 - [CLI] Add support for different ids than uuid like id
Summary: [CLI] Add support for different ids than uuid like id
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-cli
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Juan Hernández
QA Contact: Ondra Machacek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-26 18:32 UTC by Ondra Machacek
Modified: 2016-03-09 19:54 UTC (History)
7 users (show)

Fixed In Version: ovirt-engine-cli-3.6.0.0-0.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-09 19:54:43 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1172187 0 unspecified CLOSED [aaa] two ldap external providers have same id assigned, when one is incorrectly configured 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHEA-2016:0406 0 normal SHIPPED_LIVE rhevm-cli bug fix and enhancement update 2016-03-10 00:04:32 UTC
oVirt gerrit 36535 0 master MERGED cli: Add support for --type-name options Never

Internal Links: 1172187

Description Ondra Machacek 2014-12-26 18:32:57 UTC
Description of problem:
Since there is different ID for domain then uuid, it's not possible to work correctly with those id's in CLI.

Version-Release number of selected component (if applicable):
vt13.4

How reproducible:
always

Steps to Reproduce:
1. Add ldap domain into setup.
 $rhevm-manage-domains add --domain=ad2.rhev.lab.eng.brq.redhat.com --user=vdcadmin --provider=ad
2. $ service ovirt-engine restart
3. $ list users --query ""  --domain-identifier "${domain_id}"

Actual results:
domain ${domain_id} does not exist.

Expected results:
list of users from domain

Additional info:
I can see there is conversion into UUID object in OvirtCommand.resolve_base.
uuid_cand = self._toUUID(val), which can't be used for string which are used for
domains (ie. 6272712D6F70656E6C6461702E726865762E6C61622E656E672E6272712E7265646861742E636F6D)
Please add support to use also such strings.

Comment 1 Ondra Machacek 2014-12-26 18:41:05 UTC
show user --domain-identifier "6164322E726865762E6C61622E656E672E6272712E7265646861742E636F6D" --id "39343934396564392D366433642D343437362D613932392D356439363730386635333733"

domain 6164322E726865762E6C61622E656E672E6272712E7265646861742E636F6D does not exist.

Get specific user fails on same error.

Comment 2 Ondra Machacek 2015-07-07 07:15:44 UTC
ovirt-engine-cli-3.6.0.0-0.2.20150518.gite3609e3.el6.noarch

[oVirt shell (connected)]# list users --query ""  --domain-identifier 50524F46494C452D617574687A

id         : 31613462323537312D616332372D346438652D616139332D343638383863316631383130
name       : 

id         : 32346138643337342D646565302D343335332D386534302D343938383264363662313732
name       :

Comment 4 errata-xmlrpc 2016-03-09 19:54:43 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/RHEA-2016-0406.html


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