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

The centos-release-scl package does not exist for RHEL #823

Closed
ncstate-mafields opened this issue Jun 16, 2022 · 3 comments
Closed

The centos-release-scl package does not exist for RHEL #823

ncstate-mafields opened this issue Jun 16, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@ncstate-mafields
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.17.0
  • Ruby: 2.7.6
  • Distribution: RHEL 7
  • Module version: 9.2.0

How to reproduce (e.g Puppet code you use)

class{ 'zabbix::agent':
    zabbix_package_state => present,
    zabbix_version       => '5.4',
    manage_firewall      => false,
    manage_repo          => true,
    service_ensure       => running,
    service_enable       => true,
    server               => $server,
    hostmetadata         => '',
    hostname             => $facts['networking']['fqdn'],
    serveractive         => "${server}:10051",
  }

What are you seeing

The centos-release-scl package is attempted to be installed, which fails because it does not exist on RHEL 7.

What behaviour did you expect instead

The centos-release-scl package is skipped for RHEL 7.

Output log

Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install centos-release-scl' returned 1: Error: Nothing to do
/Stage[main]/Zabbix::Repo/Package[zabbix-required-scl-repo]/ensure | change from 'purged' to 'latest' failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install centos-release-scl' returned 1: Error: Nothing to do

Any additional information you'd like to impart

Note that this only affects RHEL 7 specifically, the 9.2.0 release works fine on RHEL 8.

It looks like this bug has been around for a while, but it was previously isolated only to the zabbix::web class, so just using zabbix::agent sidestepped the issue. Since #801 the code was moved to the zabbix::repo class, which affects everything using the managed repo on RHEL 7.

It looks like this conditional just needs to check for the OS name to omit RHEL:

if ($facts['os']['release']['major'] == '7' and versioncmp($zabbix_version, '5.0') >= 0) {

@Rathios
Copy link
Contributor

Rathios commented Aug 17, 2022

This one hit us too. I have a PR in the works but have to wait for this one to be merged first (fixes CI tests): #834

@anthonysomerset
Copy link
Contributor

and i just hit this too....

i see that #834 is now merged also :)

@evgeni
Copy link
Member

evgeni commented Oct 4, 2023

this has been fixed in #887

@evgeni evgeni closed this as completed Oct 4, 2023
@evgeni evgeni added the bug Something isn't working label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants