Bug 2118672 - Use rpm instead of auto in package_facts ansible module to prevent mistakes of determining the correct package manager inside package_facts module
Summary: Use rpm instead of auto in package_facts ansible module to prevent mistakes o...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.5.1
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ovirt-4.5.3
: ---
Assignee: Dana
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-16 12:05 UTC by Shruti
Modified: 2022-11-16 00:03 UTC (History)
2 users (show)

Fixed In Version: ovirt-engine-4.5.3
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-19 14:31:24 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-engine pull 648 0 None open Use rpm instead of auto in package_facts ansible module 2022-09-11 13:01:52 UTC
Red Hat Issue Tracker RHV-47832 0 None None None 2022-08-16 12:19:59 UTC

Comment 1 Martin Perina 2022-08-17 11:30:11 UTC
So not sure why apt is installed on RHEL hosts, it shouldn't be installed by default. But we can override the automatic package manager identification inside package_facts module, by using 'manager: rpm' as RHV supports only RHVH or RHEL-H hypervisors.

Comment 2 Klaas Demter 2022-08-25 08:20:47 UTC
Hi,
I'd say it's not a bug in rhv/ovirt, it's a bug in ansible for mistaking apt binary without checking if it's actually the apt package manager.
About workarounds, I don't think we actually need java installed on the rhel hypervisors, so I am recommending internally to just remove the package.
None the less I still think this is something that should at addressed in ansible if it's also happening outside of rhv/ovirt (I did not test that). Otherwise you can't install java and use ansible at the same time on rhel(or other rpm/yum/dnf) hosts.

Greetings
Klaas

Comment 3 Casper (RHV QE bot) 2022-09-11 13:30:59 UTC
This bug has low overall severity and is not going to be further verified by QE. If you believe special care is required, feel free to properly align relevant severity, flags and keywords to raise PM_Score or use one of the Bumps ('PrioBumpField', 'PrioBumpGSS', 'PrioBumpPM', 'PrioBumpQA') in Keywords to raise it's PM_Score above verification threashold (1000).

Comment 6 Casper (RHV QE bot) 2022-09-19 14:31:24 UTC
This bug has low overall severity and passed an automated regression suite, and is not going to be further verified by QE. If you believe special care is required, feel free to re-open to ON_QA status.


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