Bug 972146
Summary: | if org name is altered in satellite, sst will not sync orgs | ||
---|---|---|---|
Product: | [Retired] Subscription Asset Manager | Reporter: | Chris Duryee <cduryee> |
Component: | Splice | Assignee: | Chris Duryee <cduryee> |
Status: | CLOSED ERRATA | QA Contact: | mkovacik |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.3 | CC: | vkuznets |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-10-01 11:11:48 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: | 833466 |
Description
Chris Duryee
2013-06-07 19:33:21 UTC
forgot to mention, the org name change to cause the bug is in spacewalk, not katello. Also, if the "root org" changes as the result of a new cert being imported, then syncs cannot be performed until the user runs katello-configure --reset-data=YES, since the root org's name can't be altered in the UI. fixed in c99c8b01e0f775356dde90a406d790479f580ef2, spacewalk-splice-tool it will show up in version 0.20+ After the fix SST is not blowing up, but the organization is not being renamed. 1) Initial data is spacewalk: # spacewalk-report users organization_id,organization,user_id,username,last_name,first_name,position,email,role,creation_time,last_login_time,active 1,Spacewalk Default Organization,1,admin,Admin,Admin,,root@localhost,Organization Administrator;Satellite Administrator,2013-06-18 07:11:46,,enabled 2,Org1,2,adminorg1,Adminorg1,Adminorg1,,adminorg1@localhost,Organization Administrator,2013-06-18 07:19:08,,enabled 2) running sst: # spacewalk-splice-checkin 2013-06-18 07:27:30,446 INFO splice.common.connect connect:_request: Sending 'POST' to '/splice/api//v1/spliceserver/' with headers '{'Content-type': 'application/json', 'Accept': 'application/json'}' 2013-06-18 07:27:31,013 INFO splice.common.connect connect:_request: Received '204' from 'POST /splice/api//v1/spliceserver/' 2013-06-18 07:27:31,014 INFO splice.common.connect connect:_request: Sending 'POST' to '/splice/api//v1/marketingproductusage/' with headers '{'Content-type': 'application/json', 'Accept': 'application/json'}' 2013-06-18 07:27:31,104 INFO splice.common.connect connect:_request: Received '204' from 'POST /splice/api//v1/marketingproductusage/' Upload was successful 3) Now I can see these orgs in Katello: [{u'apply_info_task_id': None, u'created_at': u'2013-06-18T11:27:20Z', u'default_info': {u'distributor': [], u'system': []}, u'deletion_task_id': None, u'description': u'no description', u'id': 3, u'label': u'satellite-2', u'name': u'Org1', u'service_level': None, u'service_levels': [], u'updated_at': u'2013-06-18T11:27:20Z'}, {u'apply_info_task_id': None, u'created_at': u'2013-06-18T11:27:18Z', u'default_info': {u'distributor': [], u'system': []}, u'deletion_task_id': None, u'description': u'no description', u'id': 2, u'label': u'satellite-1', u'name': u'Spacewalk Default Organization', u'service_level': None, u'service_levels': [], u'updated_at': u'2013-06-18T11:27:18Z'}, {u'apply_info_task_id': None, u'created_at': u'2013-06-18T11:23:25Z', u'default_info': {u'distributor': [], u'system': []}, u'deletion_task_id': None, u'description': u'ACME_Corporation Organization', u'id': 1, u'label': u'ACME_Corporation', u'name': u'ACME_Corporation', u'service_level': None, u'service_levels': [], u'updated_at': u'2013-06-18T11:23:25Z'}] 4) renaming org in spacewalk (Org1 -> Org1_renamed): # spacewalk-report users organization_id,organization,user_id,username,last_name,first_name,position,email,role,creation_time,last_login_time,active 1,Spacewalk Default Organization,1,admin,Admin,Admin,,root@localhost,Organization Administrator;Satellite Administrator,2013-06-18 07:11:46,,enabled 2,Org1_renamed,2,adminorg1,Adminorg1,Adminorg1,,adminorg1@localhost,Organization Administrator,2013-06-18 07:19:08,,enabled 5) running SST again # spacewalk-splice-checkin 2013-06-18 07:28:43,018 INFO splice.common.connect connect:_request: Sending 'POST' to '/splice/api//v1/spliceserver/' with headers '{'Content-type': 'application/json', 'Accept': 'application/json'}' 2013-06-18 07:28:43,112 INFO splice.common.connect connect:_request: Received '204' from 'POST /splice/api//v1/spliceserver/' 2013-06-18 07:28:43,113 INFO splice.common.connect connect:_request: Sending 'POST' to '/splice/api//v1/marketingproductusage/' with headers '{'Content-type': 'application/json', 'Accept': 'application/json'}' 2013-06-18 07:28:43,200 INFO splice.common.connect connect:_request: Received '204' from 'POST /splice/api//v1/marketingproductusage/' Upload was successful 6) Checking Katello: [{u'apply_info_task_id': None, u'created_at': u'2013-06-18T11:27:20Z', u'default_info': {u'distributor': [], u'system': []}, u'deletion_task_id': None, u'description': u'no description', u'id': 3, u'label': u'satellite-2', u'name': u'Org1', u'service_level': None, u'service_levels': [], u'updated_at': u'2013-06-18T11:27:20Z'}, {u'apply_info_task_id': None, u'created_at': u'2013-06-18T11:27:18Z', u'default_info': {u'distributor': [], u'system': []}, u'deletion_task_id': None, u'description': u'no description', u'id': 2, u'label': u'satellite-1', u'name': u'Spacewalk Default Organization', u'service_level': None, u'service_levels': [], u'updated_at': u'2013-06-18T11:27:18Z'}, {u'apply_info_task_id': None, u'created_at': u'2013-06-18T11:23:25Z', u'default_info': {u'distributor': [], u'system': []}, u'deletion_task_id': None, u'description': u'ACME_Corporation Organization', u'id': 1, u'label': u'ACME_Corporation', u'name': u'ACME_Corporation', u'service_level': None, u'service_levels': [], u'updated_at': u'2013-06-18T11:23:25Z'}] So Org1 was not renamed to Org1_renamed as expected. Actually now we're seeing https://bugzilla.redhat.com/show_bug.cgi?id=972942 so I can set this one to 'VERIFIED' 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. http://rhn.redhat.com/errata/RHEA-2013-1390.html |