pulp-admin command cannot set the 'Failure Threshold' status to NONE.

Solution In Progress - Updated -

Issue

pulp-admin command cannot set the 'Failure Threshold' status to NONE.

# pulp-admin -u admin -p <pass>  rpm repo sync schedules list --details --repo-id rhel-7-server-rhui-3-rpms-x86_64
+----------------------------------------------------------------------+
                               Schedules
+----------------------------------------------------------------------+

Schedule:             2019-11-12T02:58:49-05:00/PT1H
Id:                   5dca11da3a03b42f2e6948af
Enabled:              True
Remaining Runs:       N/A
Consecutive Failures: 2
Failure Threshold:    None
First Run:            2019-11-12T02:58:49-05:00
Next Run:             2019-12-12T04:58:49Z
-----------------------

# pulp-admin -u admin -p <pass>  rpm repo sync schedules update -f 100  --repo-id rhel-7-server-rhui-3-rpms-x86_64   --schedule-id 5dca11da3a03b42f2e6948af
# pulp-admin -u admin -p <pass>  rpm repo sync schedules list --details --repo-id rhel-7-server-rhui-3-rpms-x86_64
+----------------------------------------------------------------------+
                               Schedules
+----------------------------------------------------------------------+

Schedule:             2019-11-12T02:58:49-05:00/PT1H
Id:                   5dca11da3a03b42f2e6948af
Enabled:              True
Remaining Runs:       N/A
Consecutive Failures: 2
Failure Threshold:    100
First Run:            2019-11-12T02:58:49-05:00
Next Run:             2019-12-12T04:58:49Z

pulp-admin command has no options to change the status.

# pulp-admin -u admin -p <oass>  rpm repo sync schedules update --help
Command: update
Description: updates an existing schedule

Available Arguments:

  --schedule-id           - (required) identifies an existing schedule
  --failure-threshold, -f - number of failures before the schedule is
                            automatically disabled; unspecified means the
                            schedule will never be automatically disabled
  --enabled               - if "false", the schedule will exist but will not
                            trigger any executions; defaults to true
  --schedule, -s          - time to execute in iso8601 format
                            (yyyy-mm-ddThh:mm:ssZ/PiuT); the number of
                            recurrences may be specified in this value
  --repo-id               - (required) unique identifier; only alphanumeric, .,
                            -, and _ allowed

Environment

Red Hat Update Infrastructure 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content