[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Pulp-list] Repo Sync Scheduling

Hi All,

I just pushed a change to Pulp's REST APIs and the pulp-admin script for
scheduling repo syncs.

REST API changes:
A repo sync schedule is no longer part  of repo create or update.

That is: the sync_schedule field is no longer accepted in the following
REST calls:

POST to /repositories/ for repo creation
PUT to /repositories/<id>/ for rep update

Instead there is a new sub-collection on a repo itself:

On this uri path:
GET will return the repo's sync schedule and options
PUT will create/replace the repo's sync schedule and options
DELETE will remove the repo's sync schedule and options

Documentation can be found here:

pulp-admin change:
The setting, removing and inspection of a repo's sync schedule is now
part of the 'repo sync' command.

The output of --help:
Usage: pulp-admin <options> repo sync <options>

  -h, --help           show this help message and exit
  --id=ID              repository id (required)
  --show-schedule      show existing schedule
  --delete-schedule    delete existing schedule
  --interval=INTERVAL  length of time between each run in iso8601 duration
  --runs=RUNS          number of times to run the scheduled sync, ommitting
                       implies running indefinitely
  --start=START        date and time of the first run in iso8601 combined date
                       and time format, ommitting implies starting immediately
  --exclude=EXCLUDE    elements to exclude: packages, errata and/or
  --timeout=TIMEOUT    repository sync timeout specified in iso8601 duration
                       format (P[n]Y[n]M[n]DT[n]H[n]M[n]S)
  --limit=LIMIT        limit download bandwidth per thread to value in KB/sec
  --threads=THREADS    number of threads to use for downloading content
  -F, --foreground     synchronize repository in the foreground

I haven't update the userguide or the pulp-admin bash completion script
yet, I'll do that tomorrow.

Jason L Connor
linear on freenode #pulp
RHCE: 805010912355231
GPG Fingerprint: 2048R/CC4ED7C1

Attachment: signature.asc
Description: This is a digitally signed message part

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]