Bug 1271300 - Satellite throws an error when product name changes in the CDN
Summary: Satellite throws an error when product name changes in the CDN
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.1.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On: 1578922
Blocks: 1541321 GSS_Sat6Beta_Tracker, GSS_Sat6_Tracker 1122832
TreeView+ depends on / blocked
 
Reported: 2015-10-13 14:57 UTC by David Davis
Modified: 2021-12-10 14:32 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-04 18:43:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1570792 1 None None None 2022-03-13 14:54:04 UTC
Red Hat Bugzilla 1578424 0 unspecified CLOSED katello:correct_repositories should handle cases where repos cannot be added to pulp 2021-12-10 16:09:57 UTC
Red Hat Knowledge Base (Solution) 3218411 0 None None None 2017-11-15 10:35:38 UTC

Internal Links: 1570792 1578424 1588146 1588149

Description David Davis 2015-10-13 14:57:57 UTC
Description of problem:

Recently the product names for OSP changed in the CDN from "Red Hat OpenStack..." to "Red Hat Enterprise Linux Openstack...". This caused us on RHCI to experience errors when trying to enable new repos after importing a new manifest:

Oct 12 16:12:06 sat61dev pulp: pulp.plugins.pulp_rpm.plugins.distributors.yum.configuration:ERROR: Relative URL [Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/openstack-director/7.0/os] for repository [Default_Organization-Red_Hat_OpenStack-Red_Hat_Enterprise_Linux_OpenStack_Platform_7_0_director_for_RHEL_7_RPMs_x86_64_7Server] conflicts with existing relative URL [Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/openstack-director/7.0/os] for repository [Default_Organization-Red_Hat_OpenStack-Red_Hat_OpenStack_7_0_for_RHEL_7_Platform_director_RPMs_x86_64_7Server]
Oct 12 16:12:06 sat61dev pulp: pulp.server.managers.repo.cud:ERROR: (9488-74560) Exception adding distributor to repo [Default_Organization-Red_Hat_OpenStack-Red_Hat_Enterprise_Linux_OpenStack_Platform_7_0_director_for_RHEL_7_RPMs_x86_64_7Server]; the repo will be deleted
Oct 12 16:12:06 sat61dev pulp: pulp.server.managers.repo.cud:ERROR: (9488-74560) Traceback (most recent call last):
Oct 12 16:12:06 sat61dev pulp: pulp.server.managers.repo.cud:ERROR: (9488-74560)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/cud.py", line 187, in create_and_configure_repo
Oct 12 16:12:06 sat61dev pulp: pulp.server.managers.repo.cud:ERROR: (9488-74560)     distributor_id)
Oct 12 16:12:06 sat61dev pulp: pulp.server.managers.repo.cud:ERROR: (9488-74560)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/distributor.py", line 184, in add_distributor
Oct 12 16:12:06 sat61dev pulp: pulp.server.managers.repo.cud:ERROR: (9488-74560)     raise PulpDataException(message)
Oct 12 16:12:06 sat61dev pulp: pulp.server.managers.repo.cud:ERROR: (9488-74560) PulpDataException: Relative URL [Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/openstack-director/7.0/os] for repository [Default_Organization-Red_Hat_OpenStack-Red_Hat_Enterprise_Linux_OpenStack_Platform_7_0_director_for_RHEL_7_RPMs_x86_64_7Server] conflicts with existing relative URL [Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/openstack-director/7.0/os] for repository [Default_Organization-Red_Hat_OpenStack-Red_Hat_OpenStack_7_0_for_RHEL_7_Platform_director_RPMs_x86_64_7Server]


Version-Release number of selected component (if applicable):

All


How reproducible:

Always


Steps to Reproduce:
1) upload an old manifest that contains the before-change reposet names           
2) enable the repos                                                               
3) sync (maybe?)                                                                  
4) disable repos                                                                                       
5) refresh manifest / upload new manifest with new reposet names                                                                              
6) enable repos again                                                             


Actual results:

Error.


Expected results:

Preferably, Satellite should handle the name change.

Comment 1 Brad Buckingham 2015-10-13 17:38:03 UTC
Hi David, can you attach the manifest to the BZ?

Also, is there a workaround for handling the scenario when the error?

Comment 2 David Davis 2015-10-14 15:38:09 UTC
Once you've disabled the old repos, there is no workaround (other than go into the database and removing the old content). I guess the workaround would be not to disable your old repos and then enable them again if the product name in the manifest changes but not sure customers would be knowledgeable enough to do avoid that.

Comment 8 Bryan Kearney 2016-08-04 20:14:37 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 10 Michael Hrivnak 2017-03-22 14:45:44 UTC
This doesn't look like a Pulp bug. Here's what I think happened:

Katello tried to configure two different Pulp repositories to publish at the same location on the filesystem. Pulp doesn't allow that for obvious reasons, and thus returned an error.

I can imagine that if the name of the repo changed in the manifest, it might be difficult for Katello to figure out that it needed to update/modify an existing repo, or at least delete the old one before re-creating it as the new one.

Justin, what do you make of this?

Comment 11 Justin Sherrill 2017-03-22 14:55:13 UTC
yes, what you said is mostly correct.  Its not really the name of the repo that is important, but the fact that two different content sets were imported from manifests that had the same location on the cdn (and thus we tried to make two repos in pulp with the same location on the local filesystem). 

This is not 'fixed' other than we expect these content sets to not change.

Comment 12 Bryan Kearney 2017-08-01 20:34:25 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in product in the foreseeable 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.

Comment 13 Peter Vreman 2017-12-07 15:26:32 UTC
The same problem is with the new 4 Year Support channels that were renamed.
It is a re-occuring issue once/twice per year.

Comment 18 evan.hisey 2018-01-30 19:08:20 UTC
I understand this is a wont-fix. But can we get a better  Red Hat Knowledge Base (Solution) than 3218411? Like perhaps one that tells how to clean the old repo out of the database so we can get past this bug?

Comment 28 Peter Vreman 2018-04-11 08:56:55 UTC
The same problem again with the now called 'Update Services for SAP Solutions'.
This is a repeating topic that must be fixed

Comment 36 Justin Sherrill 2018-05-23 15:10:01 UTC
This is coming up more and more, proposing for recent releases.

Comment 38 Justin Sherrill 2018-05-23 15:42:31 UTC
Actually https://bugzilla.redhat.com/show_bug.cgi?id=1570792 covers the renaming issues, moving this back.

Comment 40 Justin Sherrill 2018-05-23 15:56:07 UTC
I believe this should be closed as WONT_FIX.  Here is my reasoning:

6.2:
  * Allows you enable a 2nd copy of a repo who's product/repo name has changed (resulting in an error that leave the system inconsistent)

6.3:
  * Correctly recognizes matches up an existing repo when its product/repo name has changed, showing it on the rh repos page and allowing it to be disabled.  This BZ is ONLY relevant to 6.0-6.2.  6.3 is not affected by this bz.

Neither 6.2 and 6.3 properly rename products or repositories though.


1).  The lack of automatic renaming is being worked on as part of https://bugzilla.redhat.com/show_bug.cgi?id=1570792  and will be released as part of 6.3.z 

2) To alleviate the current system inconsistency we are going to include bz1578922 in 6.2.16 if there is one. This will not fix many of the issues, but will prevent the user from putting the satellite in an inconsistent state as a result of this issue.
 
3) BZ1578424 contains a patch to a rake task to help cleanup 6.2.z systems in an inconsistent state. 

Since this issue is not present in 6.3, we are fixing the renaming issue in 6.3.z, 6.2 is near the end of its update life and we have a fix to prevent the worst effects of this issue, i propose we close this BZ.

Comment 44 Bryan Kearney 2018-09-04 18:43:59 UTC
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 foreseeable 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.

Comment 45 Peter Vreman 2018-09-05 13:28:30 UTC
This is not a WONTFIX either. This is something that is FIXED in next release 6.4.0.

Comment 46 Bryan Kearney 2018-09-05 13:31:05 UTC
Yes, there are several versions of this bug. It will be fied in 6.4 by https://bugzilla.redhat.com/show_bug.cgi?id=1588149.


Note You need to log in before you can comment on or make changes to this bug.