Question

MongoDB plugin dependency problem on centreon 22.04 Alma Linux 8

  • 18 December 2022
  • 3 replies
  • 68 views

Userlevel 1
Badge +4

Hi,

I have 1 central and 3 pollers, all with CentOS 7.9 and Centreon 22.04.7

I’m preparing the migration from CentOS 7.9 to AlmaLinux 8.7, same centreon version for now..

For that, I will begin with poller upgrades.

 

I have installed the first new alma poller ( OS+centreon 22.04 ). The poller is not registered at the moment. I always have a snapshot just in case.

I have installed all centreon-plugins, except centreon-plugin-Applications-Databases-Mongodb

If I want install this plugin, it will downgrade the dependancy perl-Exporter-Tiny, use by all others plugins.

The version installed with centreon is:

When I test to install mongdb plugin, and downgrade the dependancy, I have several errors when I try to do a

dnf update

 

dnf update --nobest
dnf update --best --allowerasing
dnf update --nobest --allowerasing

The only thing that works is to exclude the package

dnf update --exclude=perl-Exporter-Tiny*

But I’m worried, why centreon installs a more recent version, then want to downgrade it for only 1 plugin ?

Do I risk problems with the functionning of tre platorm with the downgrade version of this package ?

 

 

I don’t have this problem on CentOS 7, and I prefer to not have to exclude this package each time I want to do an update.

 

Thanks


3 replies

Userlevel 1
Badge +4
dnf list perl-Exporter-Tiny

The package installed is from centreon repo

 

But the mongoDB plugin want to downgrade with the package from powertools repo.

So the solution would be to wait for a new version of the mongoDB plugin which would use the centreon repos package ??

Userlevel 4
Badge +13

Moved to Data Collection

Badge +1

We just had the same issue but with Red Hat 8.6 but the package is clashing with the RHEL-8 version of the Code Ready Builder:

 

[root@LULUXLINFPV003 ~]# dnf update
Updating Subscription Management repositories.
Last metadata expiration check: 0:15:11 ago on Wed 25 Jan 2023 08:42:44 CET.
Error:
Problem: package perl-Type-Tiny-1.010006-1.el8.noarch requires perl(Exporter::Tiny), but none of the providers can be installed
- cannot install both perl-Exporter-Tiny-1.002002-1.el8.noarch and perl-Exporter-Tiny-1.000000-4.el8.noarch
- cannot install both perl-Exporter-Tiny-1.000000-4.el8.noarch and perl-Exporter-Tiny-1.002002-1.el8.noarch
- cannot install the best update candidate for package perl-Type-Tiny-1.010006-1.el8.noarch
- cannot install the best update candidate for package perl-Exporter-Tiny-1.000000-4.el8.noarch
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@LULUXLINFPV003 ~]# dnf list perl-Exporter-Tiny
Updating Subscription Management repositories.
Last metadata expiration check: 0:15:21 ago on Wed 25 Jan 2023 08:42:44 CET.
Installed Packages
perl-Exporter-Tiny.noarch 1.000000-4.el8 @codeready-builder-for-rhel-8-x86_64-rpms
Available Packages
perl-Exporter-Tiny.noarch 1.002002-1.el8 centreon-stable-noarch

 

Reply