Actions
Bug #28903
closedForeman 2.0 nightly installer shows errors when a package can't be installed but doesn't fail
Status:
Closed
Priority:
Normal
Assignee:
Category:
foreman-installer script
Target version:
Difficulty:
Triaged:
Yes
Description
Installing on RHEL-7.7, the installer shows these errors:
[ INFO 2020-01-30T13:17:41 verbose] Running installer with args [["-v", "--foreman-initial-admin-password", "changeme"]] [ INFO 2020-01-30T13:17:41 verbose] Executing hooks in group pre_validations [ INFO 2020-01-30T13:17:41 verbose] All hooks in group pre_validations finished [ INFO 2020-01-30T13:17:41 verbose] Running validation checks [ INFO 2020-01-30T13:17:41 verbose] Executing hooks in group pre_commit [ INFO 2020-01-30T13:17:41 verbose] All hooks in group pre_commit finished [ INFO 2020-01-30T13:17:41 verbose] Executing hooks in group pre Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install rh-redis5-redis' returned 1: Error: Nothing to do Error: /Package[rh-redis5-redis]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install rh-redis5-redis' returned 1: Error: Nothing to do package { 'rh-redis5-redis': ensure => 'purged', provider => 'yum', } /opt/puppetlabs/bin/puppet resource package rh-redis5-redis ensure=installed finished successfully! Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install rh-postgresql12-postgresql-server' returned 1: Error: Nothing to do Error: /Package[rh-postgresql12-postgresql-server]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install rh-postgresql12-postgresql-server' returned 1: Error: Nothing to do package { 'rh-postgresql12-postgresql-server': ensure => 'purged', provider => 'yum', } /opt/puppetlabs/bin/puppet resource package rh-postgresql12-postgresql-server ensure=installed finished successfully! [ INFO 2020-01-30T13:17:53 verbose] All hooks in group pre finished
The installer should check the packages presence and handle it without error.
This issue probably relates to issue https://projects.theforeman.org/issues/28902
Actions