Feature #27253
closedPre-upgrade check to identify duplicate roles and offer procedure to delete them
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:
Updated by Kavita Gaikwad almost 5 years ago
- Assignee changed from Anurag Patel to Kavita Gaikwad
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
Updated by Kavita Gaikwad almost 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|e575bfe23a642ca0e35233b670a02cd32801aee1.