Project

General

Profile

Actions

Bug #28903

closed

Foreman 2.0 nightly installer shows errors when a package can't be installed but doesn't fail

Added by Vladimir Sedmik over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
foreman-installer script
Target version:

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


Related issues 2 (0 open2 closed)

Related to Installer - Feature #28697: Upgrade to Postgresql 12ClosedEric HelmsActions
Related to Installer - Bug #28902: Foreman 2.0 nightly installation fails on RHEL-7.7ClosedActions
Actions #1

Updated by Vladimir Sedmik over 4 years ago

Edit: The package is not present as stated in the subject, it is actually missing and the installer complains there is nothing to do. I'm sorry for the confusion.

Actions #2

Updated by Ewoud Kohl van Wijngaarden over 4 years ago

  • Subject changed from Foreman 2.0 nightly installer shows errors when a package is already present on the system to Foreman 2.0 nightly installer shows errors when a package can't be installed but doesn't fail
  • Category set to foreman-installer script
  • Target version set to 2.0.0
  • Triaged changed from No to Yes
Actions #3

Updated by Ewoud Kohl van Wijngaarden over 4 years ago

Actions #4

Updated by Ewoud Kohl van Wijngaarden over 4 years ago

  • Related to Bug #28902: Foreman 2.0 nightly installation fails on RHEL-7.7 added
Actions #5

Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Eric Helms
  • Pull request https://github.com/theforeman/foreman-installer/pull/471 added
Actions #6

Updated by The Foreman Bot over 4 years ago

  • Pull request https://github.com/theforeman/foreman-installer/pull/474 added
Actions #7

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases 2.1.0 added
Actions #8

Updated by Ewoud Kohl van Wijngaarden over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #9

Updated by The Foreman Bot over 4 years ago

  • Pull request https://github.com/theforeman/foreman-installer/pull/481 added
Actions #10

Updated by Ewoud Kohl van Wijngaarden over 4 years ago

  • Fixed in Releases 2.0.0 added
  • Fixed in Releases deleted (2.1.0)
Actions #11

Updated by The Foreman Bot over 4 years ago

  • Pull request https://github.com/theforeman/foreman-installer/pull/483 added
Actions

Also available in: Atom PDF