Project

General

Profile

Actions

Feature #27253

closed

Pre-upgrade check to identify duplicate roles and offer procedure to delete them

Added by Kavita Gaikwad almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1720253

Description of problem:
If duplicate roles exist in DB, upgrade fails with error Validation failed: Name has already been taken at db:migrate stage.

Original BZ - https://bugzilla.redhat.com/show_bug.cgi?id=1651389
which explains this problem in details.

To resolve this, it would be good to have pre-upgrade check in Foreman Maintain
which warn user for duplicate roles and offer a procedure to delete roles, which are not used by any user/usergroup.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:

Expected results:

Additional info:

Actions #1

Updated by Kavita Gaikwad almost 5 years ago

  • Assignee changed from Anurag Patel to Kavita Gaikwad
Actions #2

Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_maintain/pull/273 added
Actions #3

Updated by Kavita Gaikwad almost 5 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF