Bug 760777 - examples for ISO8601 date format would be awesome
Summary: examples for ISO8601 date format would be awesome
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-06 22:21 UTC by Mike McCune
Modified: 2014-03-31 01:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:15:17 UTC


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.