Bug 638710
| Summary: | pulp-admin /pulp-client consumer history --start_date & --end_date format | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | z_other | Assignee: | Jay Dobies <jason.dobies> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | tsanders, whayutin |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-02-17 16:52:16 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 647488 | ||
commit cb8e68a48ac061a890b574110bc02dda78df4865 tree 01d109b9c624735ff37a9d283063ffc6e84dc158 638710 - Corrected docs on date format. src/pulp/client/core/consumer.py Fixed in build 0.76. verified
[root@preethi ~]# pulp-client consumer history --help
Usage: pulp-client <options> consumer history <options>
Options:
-h, --help show this help message and exit
--event_type=EVENT_TYPE
limits displayed history entries to the given type
--limit=LIMIT limits displayed history entries to the given amount
(must be greater than zero)
--sort=SORT indicates the sort direction ("ascending" or
"descending") based on the entry's timestamp
--start_date=START_DATE
only return entries that occur on or after the given
date (format: yyyy-mm-dd)
--end_date=END_DATE only return entries that occur on or before the given
date (format: yyyy-mm-dd)
[root@preethi ~]# pulp-client consumer history --start_date=2010-10-26 --end_date=2010-10-27
+------------------------------------------+
Consumer History
+------------------------------------------+
Event Type Consumer Created
Timestamp 2010-10-26 16:04:47.365000
Originator admin
Event Type Consumer Deleted
Timestamp 2010-10-26 16:04:42.086000
Originator admin
Event Type Consumer Created
Timestamp 2010-10-26 16:03:14.234000
Originator admin
Event Type Consumer Deleted
Timestamp 2010-10-26 15:39:05.124000
Originator admin
Event Type Consumer Created
Timestamp 2010-10-26 15:38:53.357000
Originator admin
[root@preethi ~]#
Closing with community release pulp-0.0.139-1.fc14.noarch |
Description of problem: consumer history --help states that the format for startdate & end date is mm-dd-yyyy format --start_date=START_DATE Only return entries that occur after the given date (format: mm-dd-yyyy) --end_date=END_DATE Only return entries that occur before the given date (format: mm-dd-yyyy) but the [root@preethi ~]# pulp-client consumer history --start_date=09-27-2010 --end_date=09-28-2010 History retrieval failed for consumer [preethi.usersys.redhat.com] [root@preethi ~]# pulp-client consumer history --start_date=2010-09-27 --end_date=2010-09-28 +------------------------------------------+ Consumer History +------------------------------------------+ Event Type Consumer Created Timestamp 2010-09-27 16:00:42.813000 Originator admin [root@preethi ~]# pulp-admin consumer history --id=preethi.usersys.redhat.com --start_date=09-27-2010 --end_date=09-28-2010 History retrieval failed for consumer [preethi.usersys.redhat.com] [root@preethi ~]# pulp-admin consumer history --id=preethi.usersys.redhat.com --start_date=2010-09-27 --end_date=2010-09-28 +------------------------------------------+ Consumer History +------------------------------------------+ Event Type Consumer Created Timestamp 2010-09-27 16:00:42.813000 Originator admin