Red Hat Bugzilla – Bug 989908
oo-admin-usage reports "end time cannot be greater than the start time"" while start time is later than end time
Last modified: 2015-05-14 20:19:27 EDT
Description of problem:
Try to show usage info via oo-admin-usage, with option --start and --end while start time greater than end time.
"The end time cannot be greater than the start time" will show. Actually, this should be "The start time cannot be greater than the end time"
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.oo-admin-usage -l user --start 2013-07-30 --end 2013-07-18
"The end time cannot be greater than the start time"
"The start time cannot be greater than the end time"
Fixed with --> https://github.com/openshift/origin-server/pull/3345
Commit pushed to master at https://github.com/openshift/origin-server
Fix for bug 989908
Verified on devenv_3646, it has been fixed.
# oo-admin-usage -l lxia -s 2013-09-01 -e 2013-08-01
The start time cannot be greater than the end time
oo-admin-usage: List the usage data for a user.
Note: The usage cost displayed is based on the usage duration and the usage rate.
It does not take into account any unbilled usage by the billing provider.
The user login whose usage data is to be displayed (required)
The application name to filter the usage data
The gear id to filter the usage data
The start date (yyyy-mm-dd) to filter the usage data (defaults to start of current month in UTC)
The end date (yyyy-mm-dd) to filter the usage data (defaults to the current time in UTC)
Show Usage info