How can I set the end time of an allocation to today?


Issue: 
I'm getting an error when trying to set the end time of an allocation to the current date.
Symptom:
# gchalloc -e 2015-08-04 -i 12
The allocation end time may not be moved backward if the result is in the past
Affected Version: 

8.1.x

 

Solution:
By default MAM prevents you from setting the end time of an allocation in the past so you don't create cases where you have charges that are associated with an allocation after it is shown as having ended. There are some options you have.

1. You can use the keyword NOW to end the allocation and it will put the current time stamp as well as the date for the end time.
gchalloc -e NOW -i 12

2. You can anticipate when you want the allocation to end and set the end time in advance.
gchalloc -e "2015-08-04 17:00:00" -i 12

3. You can disable the enforcement of the discrete allocation method and set the end time of this allocation in the past.
gchalloc -e "2015-08-04 00:00:00" -i 12 --option name=EnforceDiscrete value=False

4. You can disable the enforcement of the discrete allocation method system wide by editing your goldd.conf file.
allocation.enforcediscrete = false
 
Be aware that you run the risk of having charges that look like they were made to an allocation that wasn't active if you use options 3 or 4. 
Tags: allocation, end, mam, past
Last update:
2015-08-20 23:04
Author:
Ben Roberts
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category

Tags