Project

General

Profile

Bug #28188

Sync status information is lost after cleaning up old tasks related to sync.

Added by Justin Sherrill 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Urgent
Category:
Sync Plans
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

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

Description of problem:
Sync status information is lost after cleaning up old tasks related to sync. For an example -
Suppose we synced five repository 7 days ago and if we go ahead and delete the tasks which were generated during the sync, The status will change from Syncing Complete to Never Synced in Sync Status page of Satellite WebUI.

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

How reproducible: 100%

Steps to Reproduce:
1. Sync any repository, once synced its status will show as Syncing Complete in Sync Status page of Satellite WebUI.
2. Now go ahead and delete that particular task using task id-
  1. foreman-rake foreman_tasks:cleanup TASK_SEARCH='id = 4fbe2626-9378-49f4-9923-d86c43cc80e7' VERBOSE=true
    3. Now go ahead and check the Sync Status page of Satellite WebUI, that particular repository's status will get changed to Never Synced.

Actual results: Sync status shows as Never Synced

Expected results: Sync status should be shown as Syncing Complete

Associated revisions

Revision ea446721 (diff)
Added by Justin Sherrill 7 months ago

Fixes #28188 - audit repo syncs and fallback to audit times

this adds auditing of repository syncs, upon successful
syncs. Display of last syncs times will use audit times
if the last sync tasks have been removed.

History

#1 Updated by The Foreman Bot 7 months ago

  • Assignee set to Justin Sherrill
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8409 added

#2 Updated by Justin Sherrill 7 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.15.0

#3 Updated by The Foreman Bot 7 months ago

  • Fixed in Releases Katello 3.15.0 added

#4 Updated by Justin Sherrill 7 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF