Bug 2006806 - The amazon-id plugin can't be disabled by configuration
Summary: The amazon-id plugin can't be disabled by configuration
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Operations
Version: 3.1.9 - EOL
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Martin Minar
QA Contact: Radek Bíba
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-22 13:08 UTC by Radek Bíba
Modified: 2021-10-25 13:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-25 13:12:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Radek Bíba 2021-09-22 13:08:20 UTC
Description of problem:
Disclaimer: you don't normally want to disable the amazon-id plugin. Doing so will break RHUI repos. Anyway, if you want to disable it anyway for any reason (such as testing), putting enabled=0 into /etc/dnf/plugins/amazon-id.conf has no effect.

Version-Release number of selected component (if applicable):
rh-amazon-rhui-client-3.0.41-1.el8.noarch

How reproducible:
Always

Steps to Reproduce:
1. sed -i s/enabled=1/enabled=0/ /etc/dnf/plugins/amazon-id.conf
2. dnf download tree

Actual results:
dnf uses the plugin anyway and is able to do what it's instructed to do.

Expected results:
dnf excludes the plugin and fails because AWS RHUI repos need extra headers that the plugin gathers and adds to the communication.

Additional info:
The problem is in the 'name' variable in the /usr/lib/python3.6/site-packages/dnf-plugins/amazon-id.py file. It is:

     83     name = "AmazonID"

This must be "amazon-id" so it can match the configuration file in /etc/dnf/plugins/.


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