Bug 2006806
| Summary: | The amazon-id plugin can't be disabled by configuration | ||
|---|---|---|---|
| Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Radek Bíba <rbiba> |
| Component: | Operations | Assignee: | Martin Minar <mminar> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Radek Bíba <rbiba> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.1.9 - EOL | CC: | mminar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-10-25 13:12:00 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: | |||
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/.