Bug 973907
| Summary: | Allow passing org name with dot to other katello cli api's e.g. environment, system | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> |
| Component: | Content Management | Assignee: | Christine Fouant <cfouant> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Sachin Ghai <sghai> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.0.1 | CC: | adujicek, bbuckingham, cfouant, gkhachik, jsherril, sthirugn, tomckay |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-07-02 14:07:50 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 971511 | ||
|
Description
Sachin Ghai
2013-06-13 05:53:58 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. *** Bug 987386 has been marked as a duplicate of this bug. *** character "/" in org name causes the same error: katello> org create --name foo/bar Successfully created org [ foo/bar ] katello> environment list --org "foo/bar" Resource not found on the server katello> environment create --org "foo/bar" --name test --prior Library Resource not found on the server katello> product list --org foo/bar Resource not found on the server katello> system list --org foo/bar Resource not found on the server The problem here is that the org name is being used as part of the url: GET /katello/api/organizations/foo/bar/systems Work around is to use the org label (which would be foo_bar by default). Moving to future release as low priority. Please note: there is *NO* workaround in case of RHSM registration. using org name (with dot) brings to the same "Resource not found on the server" and with the label (in --org <orgLabel> of RHSM register command) - just org not found from Sat6 side. so no way registering a system to that org. Updated terminology to current process, and no longer receiving errors. Below are tests reproduced and resultant output (checked for "/" character as well and no errors): 1. katello> organization create --name foo.bar Organization created 2. katello> lifecycle-environment list --organization "foo.bar" ---|---------|------ ID | NAME | PRIOR ---|---------|------ 2 | Library | ---|---------|------ 3. katello> lifecycle-environment create --organization "foo.bar" --name test --prior Library Environment created 4. katello> product list --organization foo.bar No data. 5. katello> content-host list --organization foo.bar No data. Verified with latest snap sat6 beta snap6 - (Satellite-6.0.3-RHEL-6-20140523.0) Now I can use orgname with dot. I created an org foo.bar and added new environment under this org. [root@dhcp20x-xx ~]# hammer organization create --name foo.bar Organization created [root@dhcp20x-xx ~]# hammer organization list ---|------------------|------------------|------------------------------ ID | NAME | LABEL | DESCRIPTION ---|------------------|------------------|------------------------------ 1 | ACME_Corporation | ACME_Corporation | ACME_Corporation Organization 3 | foo.bar | foo_bar | ---|------------------|------------------|------------------------------ [root@dhcp20x-xx ~]# hammer lifecycle-environment list --organization "foo.bar" ---|---------|------ ID | NAME | PRIOR ---|---------|------ 5 | Library | ---|---------|------ [root@dhcp20x-xx ~]# hammer lifecycle-environment create --organization "foo.bar" --name test --prior Library Environment created [root@dhcp20x-xx ~]# hammer lifecycle-environment list --organization "foo.bar" ---|---------|-------- ID | NAME | PRIOR ---|---------|-------- 5 | Library | 6 | test | Library ---|---------|-------- [root@dhcp20x-xx ~]# hammer product list --organization foo.bar No data. [root@dhcp20x-xx ~]# hammer host-collection list --organization foo.bar No data. [root@dhcp20x-xx ~]# hammer content-host list --organization foo.bar No data. verified with "/" char too. [root@dhcp20x-xx ~]# hammer organization create --name foo/bar Organization created [root@dhcp20x-xx ~]# hammer organization list ---|------------------|------------------|------------------------------ ID | NAME | LABEL | DESCRIPTION ---|------------------|------------------|------------------------------ 1 | ACME_Corporation | ACME_Corporation | ACME_Corporation Organization 4 | foo/bar | foo_bar | ---|------------------|------------------|------------------------------ [root@dhcp20x-xx ~]# hammer lifecycle-environment list --organization "foo/bar" ---|---------|------ ID | NAME | PRIOR ---|---------|------ 7 | Library | ---|---------|------ This was delivered with 6.0.3, which is the Satellite 6 Beta. |