Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fails on RedHat 8 Azure images using "Red Hat Update Infrastructure" (rhui) for codeready-builder #841

Open
picklesrein opened this issue Jan 29, 2025 · 1 comment
Labels
bug Something isn't working Need feedback

Comments

@picklesrein
Copy link

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

running the latest and previous versions of glpi-agent-1.12-linux-installer.pl fails due to the repository being set to:
codeready-builder-for-rhel-8-x86_64-rhui-rpms rather than codeready-builder-for-rhel-8-x86_64-rpms

To reproduce

Build basic RHEL 8 image on Azure
Notice the repositories are set to rhui versions instead of the Redhat repositories.
Try to install GLPI-agent
Receive the following error:

[RHEL-8.1:root@my-host ~]# perl glpi-agent-1.12-with-snap-linux-installer.pl --server=https://glpi.my.domain/marketplace/glpiinventory/ --no-httpd --type=typical --runnow
Installing glpi-agent v1.12...
Can't enable codeready-builder-for-rhel-8-x86_64-rhui-rpms repository:

Expected behavior

Would hope the install worked on standard images deployed by Azure/Redhat

Operating system

Linux

GLPI Agent version

v1.12

GLPI version

10.0.17

GLPIInventory plugin or other plugin version

GLPI Inventory v1.4.0

Additional context

I made an amateur attempt at fixing this by adding -rhui to the script on these three lines but it didn't resolve the problem:

            $self->verbose("Checking codeready-builder-for-rhel-$v-$arch-rhui-rpms repository repository is enabled");
            my $ret = $self->run("subscription-manager repos --enable codeready-builder-for-rhel-$v-$arch-rhui-rpms");
            die "Can't enable codeready-builder-for-rhel-$v-$arch-rhui-rpms repository: $!\n" if $ret;

The install does complete normally when I comment out the die line completely, since codeready-builder is already active.

@picklesrein picklesrein added the bug Something isn't working label Jan 29, 2025
@g-bougard
Copy link
Member

Hi @picklesrein

maybe Azure installation is really customized and they changed the codeready repository.

To better understand what's Azure installation, can you share the content of the /etc/os-release file ?

Can you also share the output of the subscription command run attempt ?

subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rhui-rpms

And eventually the output of the repository listing:

subscription-manager repos --list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Need feedback
Projects
None yet
Development

No branches or pull requests

2 participants