Project

General

Profile

Bug #25740

Upgrade step drop_apache_foreman_group failed.

Added by Evgeni Golov 11 months ago. Updated 11 months ago.

Status:
Closed
Priority:
High
Category:
foreman-installer script
Target version:

Description

On latest nightly, when running foreman-installer --upgrade I get:

Upgrade Step: drop_apache_foreman_group...
Removing user apache from group foreman
gpasswd: user 'apache' is not a member of 'foreman'
gpasswd -d apache foreman failed! Check the output for error!
Upgrade step drop_apache_foreman_group failed. Check logs for more information.

This step was added in https://github.com/Katello/katello-installer/commit/7e2b81d6e12ecf9e0c4b1ebda0895001a2a9d211 and seems not to work when the Apache user isn't member of the Foreman group to begin with.

Associated revisions

Revision 9b58a70d (diff)
Added by Ewoud Kohl van Wijngaarden 11 months ago

Fixes #25740 - Ensure a user is a member when removing

When a user is not part of a group, the removal fails. Because this is
the desired end state, the upgrade should not fail on that.

Revision 716c9ccd (diff)
Added by Ewoud Kohl van Wijngaarden 11 months ago

Fixes #25740 - Use strings for user and group

History

#1 Updated by Ewoud Kohl van Wijngaarden 11 months ago

  • Target version set to 1.21.0
  • Category changed from Installer to foreman-installer script
  • Project changed from Katello to Installer
  • Found in Releases 1.21.0 added
  • Fixed in Releases 1.21.0 added

#2 Updated by Michael Moll 11 months ago

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

#3 Updated by The Foreman Bot 11 months ago

  • Assignee set to Ewoud Kohl van Wijngaarden
  • Status changed from New to Ready For Testing

#4 Updated by Ewoud Kohl van Wijngaarden 11 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by The Foreman Bot 11 months ago

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

Also available in: Atom PDF