Project

General

Profile

Bug #34432

After upgrade products with repositories that had Ignorable Content = drpm can no longer be modified

Added by Marcel Kühlhorn 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Steps to Reproduce:
1. install foreman 2.3 / katello 3.18 with pulp2
2. create yum repository with ignorable content = drpm
3. upgrade to foreman 2.5 / katello 4.1 with migration to pulp3
4. try to modify the product / repository

Result:
The modification fails with error:
An error occurred saving the Product: Invalid value specified for ignorable content. Permissible values srpm

It appears that drpm is no longer a vailid value for ignorable content (#32658), but the value is not removed during migration

# hammer repository info --product-id 208 --name "SLES Client 12SP5 ARM" --organization Test
Id:                      1891
Name:                    SLES Client 12SP5 ARM
Label:                   SLES_Client_12SP5_ARM
Description:             
Organisation:            Test
Red Hat Repository:      no
Content Type:            yum
Mirror on Sync:          yes
Url:                     […]
Publish Via HTTP:        yes
Published At:            https://or.supp205.mk/pulp/content/639827e8-06a2-4445-b3cc-293403d48e79/Library/custom/SLES_Client_ARM/SLES_Client_12SP5_ARM/
Relative Path:           639827e8-06a2-4445-b3cc-293403d48e79/Library/custom/SLES_Client_ARM/SLES_Client_12SP5_ARM
Download Policy:         immediate
Ignorable Content Units: drpm, srpm
HTTP Proxy:              
    Id:                1
    Name:              default
    HTTP Proxy Policy: global_default_http_proxy
Product:                 
    Id:   208
    Name: SLES Client ARM64
GPG Key:                 Sync:                    
    Status:         Success
    Last Sync Date: about 1 hour
Created:                 2021/10/18 09:35:17
Updated:                 2021/11/22 11:15:59
Content Counts:          
    Packages:       9
    Source RPMS:    0
    Package Groups: 0
    Errata:         0
    Module Streams: 0

Screenshot_2022-02-08_11-26-55.png View Screenshot_2022-02-08_11-26-55.png 10.5 KB An error occurred saving the Product: Invalid value specified for ignorable content. Permissible values srpm Marcel Kühlhorn, 02/10/2022 10:05 AM
Screenshot 2022 02 08 11 26 55

Associated revisions

Revision 2859ec67 (diff)
Added by Samir Jha 4 months ago

Fixes #34432 - Remove drpm from ignorable_content for roots (#9986)

History

#1 Updated by Marcel Kühlhorn 5 months ago

It appears that making any modification to the affected repository will remove the invalid value, so the error only appears when making modifications to a product that contains a repo still having the invalid value

#2 Updated by Marcel Kühlhorn 5 months ago

  • Subject changed from After upgrade repositories that had Ignorable Content = drpm can no longer be modified to After upgrade products with repositories that had Ignorable Content = drpm can no longer be modified

#3 Updated by Jonathon Turel 5 months ago

  • Triaged changed from No to Yes
  • Target version changed from Katello 4.4.0 to Katello 4.5.0

#4 Updated by Justin Sherrill 5 months ago

  • Bugzilla link set to 2055391

#5 Updated by The Foreman Bot 4 months ago

  • Assignee set to Samir Jha
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9986 added

#6 Updated by The Foreman Bot 4 months ago

  • Fixed in Releases Katello 4.5.0 added

#7 Updated by Samir Jha 4 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF