Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
unable to assign any location to an organization using API and CLI (UI works) - the PUT request results in 404 (organization not found) despite the fact, that the organization exists and is perfectly listable by the same user:
the following is a part of debug output from the hammer command:
# hammer -d -u admin -p changeme organization add-location --id="116" --location-id="2"
...
[ INFO 2018-05-02T08:16:53 API] GET /katello/api/organizations/116
[DEBUG 2018-05-02T08:16:53 API] Params: {}
[DEBUG 2018-05-02T08:16:53 API] Headers: {
:params => {}
}
[DEBUG 2018-05-02T08:16:53 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth
[DEBUG 2018-05-02T08:16:53 API] Response: {
"label" => "rplevka_org",
"owner_details" => {
"parentOwner" => nil,
"id" => "8a...ad",
...
[ INFO 2018-05-02T08:16:53 API] PUT /katello/api/organizations/116
[DEBUG 2018-05-02T08:16:53 API] Params: {
"location_id" => 2,
"organization" => {
"location_ids" => [
[0] "2"
]
}
}
[DEBUG 2018-05-02T08:16:53 API] Headers: {}
[DEBUG 2018-05-02T08:16:53 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth
[ERROR 2018-05-02T08:16:54 API] 404 Not Found
[DEBUG 2018-05-02T08:16:54 API] {
"error" => {
"message" => "Resource organization not found by id '116'"
}
}
Version-Release number of selected component (if applicable):
6.4.0-1
How reproducible:
always
Steps to Reproduce:
1. create an org and loc
2. try to assign a location to an org using `hammer organization add-location` or `hammer organization update --id 1 --location-id 2` commands
Actual results:
404, unable to find the organization by id
Additional info:
Comment 2Daniel Lobato Garcia
2018-07-06 11:17:02 UTC
Marking as duplicate - the newer bug report is already being worked on.
*** This bug has been marked as a duplicate of bug 1597501 ***
Description of problem: unable to assign any location to an organization using API and CLI (UI works) - the PUT request results in 404 (organization not found) despite the fact, that the organization exists and is perfectly listable by the same user: the following is a part of debug output from the hammer command: # hammer -d -u admin -p changeme organization add-location --id="116" --location-id="2" ... [ INFO 2018-05-02T08:16:53 API] GET /katello/api/organizations/116 [DEBUG 2018-05-02T08:16:53 API] Params: {} [DEBUG 2018-05-02T08:16:53 API] Headers: { :params => {} } [DEBUG 2018-05-02T08:16:53 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth [DEBUG 2018-05-02T08:16:53 API] Response: { "label" => "rplevka_org", "owner_details" => { "parentOwner" => nil, "id" => "8a...ad", ... [ INFO 2018-05-02T08:16:53 API] PUT /katello/api/organizations/116 [DEBUG 2018-05-02T08:16:53 API] Params: { "location_id" => 2, "organization" => { "location_ids" => [ [0] "2" ] } } [DEBUG 2018-05-02T08:16:53 API] Headers: {} [DEBUG 2018-05-02T08:16:53 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth [ERROR 2018-05-02T08:16:54 API] 404 Not Found [DEBUG 2018-05-02T08:16:54 API] { "error" => { "message" => "Resource organization not found by id '116'" } } Version-Release number of selected component (if applicable): 6.4.0-1 How reproducible: always Steps to Reproduce: 1. create an org and loc 2. try to assign a location to an org using `hammer organization add-location` or `hammer organization update --id 1 --location-id 2` commands Actual results: 404, unable to find the organization by id Additional info: