Bug 2213447
Summary: | Remove API for changing content view + lifecycle environment organizations | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Shweta Singh <shwsingh> |
Component: | Content Views | Assignee: | Samir Jha <sajha> |
Status: | CLOSED NOTABUG | QA Contact: | Satellite QE Team <sat-qe-bz-list> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.14.0 | CC: | iballou, rlavi, sajha |
Target Milestone: | Unspecified | Keywords: | Triaged, UserExperience |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-08-16 15:27:02 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: |
Description
Shweta Singh
2023-06-08 07:51:16 UTC
I'm guessing that changing a CVs org doesn't update things like the distribution path -- so we shouldn't be allowing this at all. I'd recommend that we first deprecate the API and then remove it in the next Katello release. Not only would the distribution paths be wrong, but the related repositories would also not exist, causing all sorts of CV-related errors. Changing the title. Created redmine issue https://projects.theforeman.org/issues/36680 from this bug Hi Shweta, The organization-id params in hammer commands when updating CV or env or other records are present to allow for scoping search of the resource by name to provided organization. The organization itself is not updated/affected if you pass a new value to it as it's not an update param for the call, rather a search param to locate the resource. The Org id is needed for these calls to support searching by name or label on different resources which generally are unique only to an organization. If you use Id of resource to target a resource, the organization-id is ignored by the API as id is a sufficient unique identifier for resources. I'd consider this expected behavior as hammer doesn't allow changing org id on resources just like UI/API. If that makes sense, let me know if we can close this out or if you needed some further action on this. Thanks Shweta, Closing this based on conversation above. |