Bug 760777

Summary: examples for ISO8601 date format would be awesome
Product: [Retired] Pulp Reporter: Mike McCune <mmccune>
Component: user-experienceAssignee: Jason Connor <jconnor>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: mmccune, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-24 20:15:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mike McCune 2011-12-06 22:21:16 UTC
Trying to add a sync schedule to a repo:

# pulp-admin repo sync --help
Usage: pulp-admin <options> repo sync <options>

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
                       format
  --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
                       distribution
  --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


Now I have to go search for what ISO8601 would be.  Ideally I would see:


  --interval=INTERVAL  length of time between each run in iso8601 duration
                       format (P[n]Y[n]M[n]DT[n]H[n]M[n]S)
                       eg "P3Y6M4DT12H30M5S" for "three years, six months, four
                       days, twelve hours, thirty minutes, and five seconds" 
  --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
                       eg "2012-03-01T13:00:00Z" 
  --exclude=EXCLUDE    elements to exclude: packages, errata and/or
                       distribution
  --timeout=TIMEOUT    repository sync timeout specified in iso8601 duration
                       format (P[n]Y[n]M[n]DT[n]H[n]M[n]S)

Comment 1 Jason Connor 2011-12-12 23:15:15 UTC
added the above examples
fix pushed in 629a9e58b49d523832566b86e439d0cae3044ac7

Comment 2 Jeff Ortel 2011-12-15 20:18:08 UTC
build: 0.255

Comment 3 Preethi Thomas 2011-12-16 18:33:13 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.255-1.fc15.noarch


[root@preethi ~]# pulp-admin repo sync --help
Usage: pulp-admin <options> repo sync <options>

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
                       format: P[n]Y[n]M[n]DT[n]H[n]M[n]S (e.g.
                       "P3Y6M4DT12H30M5S" for "three years, six months, four
                       days, twelve hours, thirty minutes, and five seconds")
  --runs=RUNS          number of times to run the scheduled sync, omitting
                       implies running indefinitely
  --start=START        date and time of the first run in iso8601 combined date
                       and time format (e.g. "2012-03-01T13:00:00Z"), omitting
                       implies starting immediately
  --exclude=EXCLUDE    elements to exclude: packages, errata and/or
                       distribution
  --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

Comment 4 Preethi Thomas 2012-02-24 20:15:17 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 5 Preethi Thomas 2012-02-24 20:16:54 UTC
Pulp v1.0 is released.