Bug 1746245 - [AWS] RHEL8 choose_repo.py should re-enable enabled repositories after renaming the repo file
Summary: [AWS] RHEL8 choose_repo.py should re-enable enabled repositories after renami...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Operations
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Todd Sanders
QA Contact: Vratislav Hutsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-28 05:05 UTC by Alexey Masolov
Modified: 2023-03-24 15:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-06 10:08:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alexey Masolov 2019-08-28 05:05:30 UTC
Description of problem:
rh-amazon-rhui-client updates is not preserving selected repos. 


How reproducible:
100%

Steps to Reproduce:
===
# curl http://169.254.169.254/latest/meta-data/ami-id
ami-0975ce566eec139c3

# rpm -qa rh-amazon*
rh-amazon-rhui-client-3.0.17-1.el8.noarch

# dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms
# yum repolist
repo id                                                                                                repo name                                                                                                                      status
rhui-client-config-server-8                                                                            Red Hat Update Infrastructure 3 Client Configuration Server 8                                                                      3
rhui-codeready-builder-for-rhel-8-rhui-rpms                                                            Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) from RHUI                                                             1,497
rhui-rhel-8-appstream-rhui-rpms                                                                        Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (RPMs)                                                             5,760
rhui-rhel-8-baseos-rhui-rpms                                                                           Red Hat Enterprise Linux 8 for x86_64 - BaseOS from RHUI (RPMs)                                                                2,097

# dnf -y update rh-amazon-rhui-client
…
Upgraded:
  rh-amazon-rhui-client-3.0.19-1.el8.noarch

Complete!

# dnf repolist
repo id                                                                                        repo name                                                                                                                              status
rhel-8-appstream-rhui-rpms                                                                     Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (RPMs)                                                                     5,760
rhel-8-baseos-rhui-rpms                                                                        Red Hat Enterprise Linux 8 for x86_64 - BaseOS from RHUI (RPMs)                                                                        2,097
rhui-client-config-server-8                                                                    Red Hat Update Infrastructure 3 Client Configuration Server 8                                                                              3
===

Actual results:
choose_repo.py renames the repo file in /etc/yum.repos.d and replaces it with the new one with default repositories/streams enabled

Expected results:
Preserving enabled repositories after updating

Additional info:


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