Project

Profile

Help

Issue #1713

closed

Disabling schedule does not work if number of recurrences was specified

Added by ttereshc almost 7 years ago. Updated over 3 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Master
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

- create a repo

$ pulp-admin rpm repo create --repo-id yar1 --feed https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/ --relative-url yar1

- schedule sync to run every 30 seconds and specify the number of recurrences

$ pulp-admin rpm repo sync schedules create -s R2/PT30S --repo-id yar1

- wait for more that 1.5 minutes and look at the schedule report. It says that schedule is not enabled anymore but total_run_count is still increasing and also you can check that the list of completed sync tasks for your repo is growing too

$ pulp-admin -vv rpm repo sync schedules  list --repo-id yar1
+----------------------------------------------------------------------+
                               Schedules
+----------------------------------------------------------------------+

2016-02-24 13:54:52,262 - DEBUG - sending GET request to /pulp/api/v2/repositories/yar1/importers/yum_importer/schedules/sync/
2016-02-24 13:54:52,293 - INFO - GET request to /pulp/api/v2/repositories/yar1/importers/yum_importer/schedules/sync/ with parameters None
2016-02-24 13:54:52,293 - INFO - Response status : 200 

2016-02-24 13:54:52,293 - INFO - Response body :
 [
  {
    "next_run": "2016-02-24T12:55:16Z", 
    "task": "pulp.server.controllers.repository.queue_sync_with_auto_publish", 
    "last_updated": 1456318491.582464, 
    "first_run": "2016-02-24T12:52:46Z", 
    "schedule": "R2/PT30S", 
    "args": [
      "yar1"
    ], 
    "enabled": false, 
    "last_run_at": "2016-02-24T12:54:46Z", 
    "_id": "56cda79ee1382316a16a7492", 
    "total_run_count": 5, 
    "failure_threshold": null, 
    "kwargs": {
      "overrides": {}, 
      "scheduled_call_id": "56cda79ee1382316a16a7492"
    }, 
    "resource": "pulp:importer:yar1:yum_importer", 
    "remaining_runs": 0, 
    "consecutive_failures": 0, 
    "_href": "/pulp/api/v2/repositories/yar1/importers/yum_importer/schedules/sync/56cda79ee1382316a16a7492/"
  }
]

Schedule: R2/PT30S
Id:       56cda79ee1382316a16a7492
Enabled:  False
Next Run: 2016-02-24T12:55:16Z

- explicitly disabling this schedule does not help either

pulp-admin rpm repo sync schedules update --schedule-id 56cda79ee1382316a16a7492 --enabled false --repo-id yar1

This issue is presented at least in 2.7 and 2.8.

Actions #1

Updated by mhrivnak almost 7 years ago

  • Severity changed from 2. Medium to 1. Low
  • Triaged changed from No to Yes
Actions #2

Updated by bmbouter over 3 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #3

Updated by bmbouter over 3 years ago

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #4

Updated by bmbouter over 3 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF