Bug 1177367
| Summary: | [CLI] Add support for different ids than uuid like id | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Ondra Machacek <omachace> |
| Component: | ovirt-engine-cli | Assignee: | Juan Hernández <juan.hernandez> |
| Status: | CLOSED ERRATA | QA Contact: | Ondra Machacek <omachace> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.5.0 | CC: | gklein, lsurette, oourfali, rbalakri, Rhev-m-bugs, yeylon, ykaul |
| Target Milestone: | ovirt-3.6.0-rc | ||
| Target Release: | 3.6.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-engine-cli-3.6.0.0-0.1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-03-09 19:54:43 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: | |||
show user --domain-identifier "6164322E726865762E6C61622E656E672E6272712E7265646861742E636F6D" --id "39343934396564392D366433642D343437362D613932392D356439363730386635333733" domain 6164322E726865762E6C61622E656E672E6272712E7265646861742E636F6D does not exist. Get specific user fails on same error. 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 : 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 |
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.