Bug 2060006

Summary: dnf packager on AlmaLinux
Product: [oVirt] otopi Reporter: etienne.muesse
Component: Plugins.packagersAssignee: Yedidyah Bar David <didi>
Status: CLOSED CURRENTRELEASE QA Contact: Guilherme Santos <gdeolive>
Severity: medium Docs Contact:
Priority: medium    
Version: masterCC: bugs, czadikem
Target Milestone: ovirt-4.5.0Flags: sbonazzo: ovirt-4.5+
Target Release: 1.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: otopi-1.10.0 Doc Type: Enhancement
Doc Text:
OTOPI packager detection has been extended to implicitly support all RHEL rebuilds, such as AlmaLinux.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-28 09:26:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2034313    

Description etienne.muesse 2022-03-02 14:06:16 UTC
wont detect dnf for AlmaLinux.

ok_to_use_dnf (src/otopi/packager.py) should also check for "AlmaLinux" distribution.

I am trying to install ovirt on AlmaLinux 8.5 using engine-setup.
This only works if I set OTOPI_DNF_ENABLE=1.
Otherwise I get "Failed to execute stage 'Environment setup': No supported package manager found in your system".

Comment 1 Yedidyah Bar David 2022-03-02 14:28:12 UTC
Thanks for the bug. Do you want to push a patch? Otopi is now managed on github. I don't mind pushing a patch for you - should be trivial - but do not have time/resources for verifying it. Thanks!

Comment 2 Yedidyah Bar David 2022-03-02 15:18:28 UTC
Pushed a PR. Please verify. Thanks!

Comment 3 etienne.muesse 2022-03-03 08:34:44 UTC
Thanks, PR works on AlmaLinux 8.5

Comment 4 Yedidyah Bar David 2022-03-03 10:50:30 UTC
(In reply to etienne.muesse from comment #3)
> Thanks, PR works on AlmaLinux 8.5

Thanks for the report. Was this enough for completing engine-setup? Anything else missing?

Comment 5 Yedidyah Bar David 2022-03-03 10:50:51 UTC
QE: On CentOS/RHEL, sanity testing is enough (e.g. engine-setup doing an upgrade).

Comment 6 etienne.muesse 2022-03-03 10:55:32 UTC
Yes, I just replaced the packager.py file with your PR. After that I could finish engine-setup.

Comment 7 czadikem 2022-04-17 03:58:20 UTC
I tried to replace the packager.py file with the modified one and it didn't work instead I got an error.  I am also unable to install ovirt4.5 so how can I do that as I said here https://almalinux.discourse.group/t/almalinux-ovirt-install-help/1007

Comment 8 Yedidyah Bar David 2022-04-25 12:14:44 UTC
(In reply to czadikem from comment #7)
> I tried to replace the packager.py file with the modified one and it didn't
> work instead I got an error.  I am also unable to install ovirt4.5 so how
> can I do that as I said here
> https://almalinux.discourse.group/t/almalinux-ovirt-install-help/1007

If this was a question to me (as the bug owner), then sorry - I don't know, never tried almalinux myself. comment 3 and comment 6 seem to imply that it does work. I suggest to ask on a mailing list - users@ovirt or an almalinux list.

Comment 10 Sandro Bonazzola 2022-04-28 09:26:34 UTC
This bugzilla is included in oVirt 4.5.0 release, published on April 20th 2022.

Since the problem described in this bug report should be resolved in oVirt 4.5.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.