Project

General

Profile

Actions

Bug #27091

closed

Hourly Scheduled sync plan executed every minute on upgraded Satellite VM's(6.4.z to 6.5 GA).

Added by Samir Jha almost 5 years ago. Updated almost 5 years ago.

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

Description

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

Description of problem: Hourly Scheduled sync plan executed every minute on upgraded Satellite VM's(6.4.z to 6.5 GA).

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

How reproducible:
frequently

Steps to Reproduce:
1. Created a 6.5 Satellite and Capsule templates from 6.4 Successfully.
2. By Using Step1 template created Satellite and Capsule VM.
3. Both VM's were running & upstate and had hourly, daily and weekly sync plan.
4. Restarted Katello services on both machines.
5. Sync plan was already scheduled.
  1. hammer sync-plan list --organization="Default Organization"
    ---|-------|---------------------|----------|---------|-----------------|-------------------
    ID | NAME | START DATE | INTERVAL | ENABLED | CRON EXPRESSION | RECURRING LOGIC ID
    ---|-------|---------------------|----------|---------|-----------------|-------------------
    1 | sync1 | 2018/11/13 11:11:00 | hourly | yes | | 4
    2 | sync2 | 2018/11/13 10:12:00 | daily | yes | | 5
    3 | sync3 | 2018/11/13 10:13:00 | weekly | yes | | 6
    ---|-------|---------------------|----------|---------|-----------------|-------------------
    hourly sync plan had the following info :
  2. hammer sync-plan info --organization="Default Organization" --id=1
    ID: 1
    Name: sync1
    Start Date: 2018/11/13 11:11:00
    Interval: hourly
    Enabled: yes
    Cron Expression:
    Recurring Logic ID: 4
    Description:
    Created at: 2018/11/13 08:11:42
    Updated at: 2019/05/15 10:00:41
    Products:
    1) ID: 2
    Name: Red Hat Software Collections (for RHEL Server)

Sync Status:

41306341-d6d1-457c-ac3d-f0f009793008 | Run Sync Plan: sync1 | stopped | success | 2019/06/17 08:06:51 | 2019/06/17 08:07:05 | | c0554bf8-c9ee-4618-95c1-d592d28d42d2 | Run Sync Plan: sync1 | stopped | success | 2019/06/17 08:06:35 | 2019/06/17 08:06:49 | | c06c0964-755e-444f-b600-ccac403be7b4 | Run Sync Plan: sync1 | stopped | success | 2019/06/17 08:06:18 | 2019/06/17 08:06:33 | | 3cba03c1-144c-4044-9162-91115df47795 | Run Sync Plan: sync1 | stopped | success | 2019/06/17 08:06:02 | 2019/06/17 08:06:17 | | 49c5ccd7-d17a-446f-bbba-70ca5c5771c3 | Run Sync Plan: sync1 | stopped | success | 2019/06/17 08:05:46 | 2019/06/17 08:06:01 | | 5be9408e-9774-4e40-82b0-30aeed6ff8f6 | Run Sync Plan: sync1 | stopped | success | 2019/06/17 08:05:30 | 2019/06/17 08:05:43 | | 6545a7bc-5864-49d6-82ee-175e257b0dee | Run Sync Plan: sync1 | stopped | success | 2019/06/17 08:05:14 | 2019/06/17 08:05:29 | | 826721fd-bf38-4c27-92f9-0075175abe94 | Run Sync Plan: sync1 | stopped | success | 2019/06/17 08:04:58 | 2019/06/17 08:05:11 | | cfbb9eb5-9c0f-4a5f-8fd5-30bc8e4f1347 | Run Sync Plan: sync1 | stopped | error | 2019/06/17 08:04:42 | 2019/06/17 08:04:42 | | Required lock is already taken by other running tasks.
db39bd6d-2154-4065-8c17-39ee50ee0e16 | Run Sync Plan: sync1 | stopped | success | 2019/06/17 08:04:26 | 2019/06/17 08:04:49 | | e523963e-b664-4dbc-ae94-2849161509c0 | Run Sync Plan: sync1 | stopped | error | 2019/06/17 08:04:10 | 2019/06/17 08:04:10 | | Required lock is already taken by other running tasks.
53f692c5-de66-45b0-b607-1b52a58ac19c | Run Sync Plan: sync1 | stopped | success | 2019/06/17 08:03:54 | 2019/06/17 08:04:13 | | 55a4f550-4681-4f03-ac1c-fca6b739c148 | Run Sync Plan: sync1 | stopped | error | 2019/06/17 08:03:38 | 2019/06/17 08:03:38 | | Required lock is already taken by other running tasks.
33eb8c2e-5801-44c7-ac76-36ade9ed52b8 | Run Sync Plan: sync1 | stopped | success | 2019/06/17 08:03:22 | 2019/06/17 08:03:47 | | 7c9fe850-9908-4804-b73d-d2cf41f346b1 | Run Sync Plan: sync1 | stopped | error | 2019/06/17 08:03:06 | 2019/06/17 08:03:06 | | Required lock is already taken by other running tasks.
854354e2-37ea-4ca6-89bd-f8d0040332e0 | Run Sync Plan: sync1 | stopped | success | 2019/06/17 08:02:50 | 2019/06/17 08:03:07 | | 8780fb7f-49bf-4039-a253-6bd431cb2381 | Run Sync Plan: sync1 | stopped | success | 2019/06/17 08:02:34 | 2019/06/17 08:02:47 |

Actual results:
Hourly scheduled sync plan executed every minute.

Expected results:
The scheduled task should be executed at the scheduled time.

Additional info:
After resaving the sync plan problem get resolved, This is one observation.


Related issues 1 (0 open1 closed)

Has duplicate foreman-tasks - Bug #25539: Recurring Logics : strange behaviorDuplicateActions
Actions #1

Updated by Samir Jha almost 5 years ago

  • Project changed from Katello to foreman-tasks
  • Category deleted (Sync Plans)
Actions #2

Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Samir Jha
  • Pull request https://github.com/theforeman/foreman-tasks/pull/427 added
Actions #3

Updated by Ivan Necas almost 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Adam Ruzicka over 2 years ago

  • Has duplicate Bug #25539: Recurring Logics : strange behavior added
Actions

Also available in: Atom PDF