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.
DescriptionOleksandr Shtaier
2016-02-21 12:49:19 UTC
Description of problem:
Defect is reproducible for both API and Hammer CLI.
API:
Attempt to update product with new organization gives no error, but actually no changes happened:
Making HTTP PUT request to https://my_server/katello/api/v2/products/72 with options {'verify': False, 'auth': ('username', 'pass'), 'headers': {'content-type': 'application/json'}} and data {"description": null, "label": "f44252c2-a057-4ae6-a2c7-9ca26a17e999", "organization_id": 106, "sync_plan_id": null, "repository_ids": [], "id": 72, "gpg_key_id": null, "name": "test_name"}.
Received HTTP 200 response: {"sync_state":null,"last_sync":null,"last_sync_words":null,"organization":{"name":"org_name","label":"2f2e7855-c46a-46cf-b160-f51f3864fbf4","id":105},"id":72,"cp_id":"1456057498035","name":"test_name","label":"f44252c2-a057-4ae6-a2c7-9ca26a17e999","description":null,"provider_id":207,"sync_plan_id":null,"sync_status":{"state":null},"sync_summary":{},"gpg_key_id":null,"redhat":false,"repository_count":0,"":null,"created_at":"2016-02-21T12:24:57Z","updated_at":"2016-02-21T12:24:58Z","product_content":[],"available_content":[],"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"readonly":false,"repositories":[],"provider":{"name":"Anonymous"}}
For that specific example id should change to 106, but that fact doesn't happen
CLI:
Create new product:
hammer -u username -p pass product info --name my_prod --organization-id 102
ID: 70
Name: my_prod
Label: my_prod
Description:
Sync State:
Sync Plan ID:
GPG:
GPG Key ID:
GPG Key:
Organization: org_name
Readonly: false
Deletable:
Content:
Attempt to update product
1) Unexpected and non-informative message:
hammer -u username -p pass product update --id 70 --organization-id 103
Could not update the product:
Missing values for product.
2) Found way to run command at all, but organization was not updated as expected
hammer -u username -p pass product update --id 70 --name my_prod --organization-id 103
Product updated
hammer -u username -p pass product info --name my_prod --organization-id 103
Error: product not found
hammer -u username -p pass product info --name my_prod --organization-id 102
ID: 70
Name: my_prod
Label: my_prod
Description:
Sync State:
Sync Plan ID:
GPG:
GPG Key ID:
GPG Key:
Organization: org_name
Readonly: false
Deletable:
Content:
Version-Release number of selected component (if applicable):
6.1.7
How reproducible:
Always
Steps to Reproduce:
1. Create product assigned to organization
2. Attempt to update product and assign it to another organization
Actual results:
Product is not updated
Expected results:
Product updated successfully
Additional info:
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the forseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.