Project

General

Profile

Bug #18405

Update installer upgrade process to include resolving data integrity issues.

Added by Brad Buckingham about 2 years ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Category:
Installer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

There are a couple of issues that were worked on recently to provide/update rake tasks to allow users to resolve possible data integrity issues for repositories and hosts/consumers. They included:

http://projects.theforeman.org/issues/17351 - e.g. added 'correct_repositories', 'correct_puppet_environments'...etc
http://projects.theforeman.org/issues/15721 - updated 'clean_backend_objects'

This issue is to enhance the installer upgrade process to perform these rake tasks to resolve these issues, to avoid users having to debug and manually execute the tasks.

The intent/goal would be to add the following parameter to the installer:
--clean-mismatches
true/false: defaults to 'true'
purpose: if 'true', execute the above tasks during the upgrade process. if 'false', execute the tasks in a 'non-commit' mode to report to the user the changes that would have been made


Related issues

Has duplicate Katello - Bug #16923: Pulp repositories check before upgradeResolved2016-10-13

Associated revisions

Revision 009c33d6 (diff)
Added by Brad Buckingham about 2 years ago

fixes #18405 - modify upgrade to include tasks to fix mismatches

There exist several rake tasks in katello to resolve data integrity
issues (or mismatches) between it and the backend services
(pulp and candlepin). This commit adds those steps to the installer
upgrade process so that the issues can be addressed automatically
versus the current behavior which may result in a failed upgrade
and then a need to run them manually.

Note: this is primarily for differences related to repository
and consumer resources.

The commit also includes an option (--disable-resolve-mismatches)
to run the upgrade without making any changes. It will still
run the tasks and report the changes that it would have made.

Revision d9255331
Added by Brad Buckingham about 2 years ago

Merge pull request #483 from bbuckingham/18405

fixes #18405 - modify upgrade to include rake tasks to fix mismatches

History

#1 Updated by Justin Sherrill about 2 years ago

  • Legacy Backlogs Release (now unused) set to 114

#2 Updated by Brad Buckingham about 2 years ago

  • Bugzilla link set to 1425437

#3 Updated by Brad Buckingham about 2 years ago

  • Target version changed from 163 to 169

#4 Updated by Brad Buckingham about 2 years ago

  • Status changed from New to Assigned
  • Assignee set to Brad Buckingham

#5 Updated by The Foreman Bot about 2 years ago

  • Status changed from Assigned to Ready For Testing
  • Legacy Backlogs Release (now unused) deleted (114)
  • Pull request https://github.com/Katello/katello-installer/pull/483 added

#6 Updated by Eric Helms about 2 years ago

  • Legacy Backlogs Release (now unused) set to 211

#7 Updated by Brad Buckingham about 2 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#8 Updated by Brad Buckingham almost 2 years ago

  • Has duplicate Bug #16923: Pulp repositories check before upgrade added

Also available in: Atom PDF