puppet-zabbix
puppet-zabbix copied to clipboard
Installation failed on Amazonlinux 2
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 6.3.0
- Distribution: Amazonlinux 2
- Module version: 6.7.0
How to reproduce (e.g Puppet code you use)
class{ 'zabbix::agent':
zabbix_version => '3.4',
manage_repo => true,
}
What are you seeing
Error: Package: zabbix-agent-3.4.15-1.el6.x86_64 (Zabbix_6_x86_64) Requires: libpcre.so.0()(64bit)
What behaviour did you expect instead
zabbix agent successful installed
Output log
Notice: /Stage[main]/Zabbix::Repo/Yumrepo[zabbix]/ensure: created
Info: Yumrepo[zabbix](provider=inifile): changing mode of /etc/yum.repos.d/Zabbix_6_x86_64.repo from 600 to 644
Notice: /Stage[main]/Zabbix::Repo/Yumrepo[zabbix-nonsupported]/ensure: created
Info: Yumrepo[zabbix-nonsupported](provider=inifile): changing mode of /etc/yum.repos.d/Zabbix_nonsupported_6_x86_64.repo from 600 to 644
Error: Execution of '/usr/bin/yum -e 0 -y install zabbix-agent' returned 1: Loaded plugins: ovl, priorities
7 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 0:3.4.15-1.el6 will be installed
--> Processing Dependency: /sbin/service for package: zabbix-agent-3.4.15-1.el6.x86_64
--> Processing Dependency: libpcre.so.0()(64bit) for package: zabbix-agent-3.4.15-1.el6.x86_64
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.39-1.amzn2.0.2 will be installed
--> Processing Dependency: sysvinit-tools >= 2.87-5 for package: initscripts-9.49.39-1.amzn2.0.2.x86_64
--> Processing Dependency: iproute for package: initscripts-9.49.39-1.amzn2.0.2.x86_64
--> Processing Dependency: hostname for package: initscripts-9.49.39-1.amzn2.0.2.x86_64
--> Processing Dependency: /sbin/sysctl for package: initscripts-9.49.39-1.amzn2.0.2.x86_64
--> Processing Dependency: /sbin/arping for package: initscripts-9.49.39-1.amzn2.0.2.x86_64
---> Package zabbix-agent.x86_64 0:3.4.15-1.el6 will be installed
--> Processing Dependency: libpcre.so.0()(64bit) for package: zabbix-agent-3.4.15-1.el6.x86_64
--> Running transaction check
---> Package hostname.x86_64 0:3.13-3.amzn2.0.2 will be installed
---> Package iproute.x86_64 0:4.15.0-1.amzn2.0.3 will be installed
--> Processing Dependency: libmnl.so.0(LIBMNL_1.0)(64bit) for package: iproute-4.15.0-1.amzn2.0.3.x86_64
--> Processing Dependency: libmnl.so.0()(64bit) for package: iproute-4.15.0-1.amzn2.0.3.x86_64
---> Package iputils.x86_64 0:20160308-10.amzn2.0.2 will be installed
--> Processing Dependency: libidn.so.11(LIBIDN_1.0)(64bit) for package: iputils-20160308-10.amzn2.0.2.x86_64
--> Processing Dependency: libidn.so.11()(64bit) for package: iputils-20160308-10.amzn2.0.2.x86_64
---> Package procps-ng.x86_64 0:3.3.10-17.amzn2.2.2 will be installed
---> Package sysvinit-tools.x86_64 0:2.88-14.dsf.amzn2.0.2 will be installed
---> Package zabbix-agent.x86_64 0:3.4.15-1.el6 will be installed
--> Processing Dependency: libpcre.so.0()(64bit) for package: zabbix-agent-3.4.15-1.el6.x86_64
--> Running transaction check
---> Package libidn.x86_64 0:1.28-4.amzn2.0.2 will be installed
---> Package libmnl.x86_64 0:1.0.3-7.amzn2.0.2 will be installed
---> Package zabbix-agent.x86_64 0:3.4.15-1.el6 will be installed
--> Processing Dependency: libpcre.so.0()(64bit) for package: zabbix-agent-3.4.15-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: zabbix-agent-3.4.15-1.el6.x86_64 (Zabbix_6_x86_64)
Requires: libpcre.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Error: /Stage[main]/Zabbix::Agent/Package[zabbix-agent]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/yum -e 0 -y install zabbix-agent' returned 1: Loaded plugins: ovl, priorities
7 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 0:3.4.15-1.el6 will be installed
--> Processing Dependency: /sbin/service for package: zabbix-agent-3.4.15-1.el6.x86_64
--> Processing Dependency: libpcre.so.0()(64bit) for package: zabbix-agent-3.4.15-1.el6.x86_64
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.39-1.amzn2.0.2 will be installed
--> Processing Dependency: sysvinit-tools >= 2.87-5 for package: initscripts-9.49.39-1.amzn2.0.2.x86_64
--> Processing Dependency: iproute for package: initscripts-9.49.39-1.amzn2.0.2.x86_64
--> Processing Dependency: hostname for package: initscripts-9.49.39-1.amzn2.0.2.x86_64
--> Processing Dependency: /sbin/sysctl for package: initscripts-9.49.39-1.amzn2.0.2.x86_64
--> Processing Dependency: /sbin/arping for package: initscripts-9.49.39-1.amzn2.0.2.x86_64
---> Package zabbix-agent.x86_64 0:3.4.15-1.el6 will be installed
--> Processing Dependency: libpcre.so.0()(64bit) for package: zabbix-agent-3.4.15-1.el6.x86_64
--> Running transaction check
---> Package hostname.x86_64 0:3.13-3.amzn2.0.2 will be installed
---> Package iproute.x86_64 0:4.15.0-1.amzn2.0.3 will be installed
--> Processing Dependency: libmnl.so.0(LIBMNL_1.0)(64bit) for package: iproute-4.15.0-1.amzn2.0.3.x86_64
--> Processing Dependency: libmnl.so.0()(64bit) for package: iproute-4.15.0-1.amzn2.0.3.x86_64
---> Package iputils.x86_64 0:20160308-10.amzn2.0.2 will be installed
--> Processing Dependency: libidn.so.11(LIBIDN_1.0)(64bit) for package: iputils-20160308-10.amzn2.0.2.x86_64
--> Processing Dependency: libidn.so.11()(64bit) for package: iputils-20160308-10.amzn2.0.2.x86_64
---> Package procps-ng.x86_64 0:3.3.10-17.amzn2.2.2 will be installed
---> Package sysvinit-tools.x86_64 0:2.88-14.dsf.amzn2.0.2 will be installed
---> Package zabbix-agent.x86_64 0:3.4.15-1.el6 will be installed
--> Processing Dependency: libpcre.so.0()(64bit) for package: zabbix-agent-3.4.15-1.el6.x86_64
--> Running transaction check
---> Package libidn.x86_64 0:1.28-4.amzn2.0.2 will be installed
---> Package libmnl.x86_64 0:1.0.3-7.amzn2.0.2 will be installed
---> Package zabbix-agent.x86_64 0:3.4.15-1.el6 will be installed
--> Processing Dependency: libpcre.so.0()(64bit) for package: zabbix-agent-3.4.15-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: zabbix-agent-3.4.15-1.el6.x86_64 (Zabbix_6_x86_64)
Requires: libpcre.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Notice: /Stage[main]/Zabbix::Agent/File[/etc/zabbix/zabbix_agentd.conf]: Dependency Package[zabbix-agent] has failures: true
Warning: /Stage[main]/Zabbix::Agent/File[/etc/zabbix/zabbix_agentd.conf]: Skipping because of failed dependencies
Warning: /Stage[main]/Zabbix::Agent/File[/etc/zabbix/zabbix_agentd.d]: Skipping because of failed dependencies
Warning: /Stage[main]/Zabbix::Agent/Service[zabbix-agent]: Skipping because of failed dependencies
Warning: /Stage[main]/Systemd::Journald/Service[systemd-journald]: Skipping because of failed dependencies
Warning: /Stage[main]/Zabbix::Agent/Zabbix::Startup[zabbix-agent]/File[/etc/systemd/system/zabbix-agent.service]: Skipping because of failed dependencies
Warning: /Stage[main]/Systemd::Systemctl::Daemon_reload/Exec[systemctl-daemon-reload]: Skipping because of failed dependencies
Warning: /Stage[main]/Zabbix::Agent/Zabbix::Startup[zabbix-agent]/File[/etc/init.d/zabbix-agent]: Skipping because of failed dependencies
Any additional information you'd like to impart
It works if I change manifests/repo.pp:42 from 6 to 7
HI @bkmeneguello, thanks for raising the issue. Are you able to provide a patch for this?
I am, but I'm not sure if epel 7 should be used always by amzn2. Can you confirm this assumption? If yes the PR is easy peasy.
Sadly I don't have any amazon boxes by hand and I don't know their operating systems very well :(