You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
note that the above output actually came from hepcsvc01 where the bill-calculator runs standalone,
but the exception happens whether it's running in the decision engine or standalone.
can reproduce by changing the date in /etc/decisionengine/modules.conf/AccountConstants_my.py
to sometime in 2024 or later.
At first I thought this bug was happening because the UnblendedCost field was gone in the cSV file but
namratha and I looked at it and the field is there.
Traceback (most recent call last):
File "/opt/bill-calculator/bin/AWSBillAnalysis.py", line 439, in _sumUpBillFromDateToDate
BillSummaryDict[ key ] += float(row[unBlendedCostCsvHeaderString])
KeyError: 'AmazonSimpleStorageService'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/bill-calculator/bin/hcf-bill-calculator", line 135, in AWSBillAnalysis
message = alarm.EvaluateAlarmConditions(publishData = True)
File "/opt/bill-calculator/bin/AWSBillAnalysis.py", line 557, in EvaluateAlarmConditions
alarmConditionsDict = self.ExtractAlarmConditions()
File "/opt/bill-calculator/bin/AWSBillAnalysis.py", line 626, in ExtractAlarmConditions
newLastStartDateBilledDatetime, CorrectedBillSummaryOneDayBeforeDict = self.calculator.CalculateBill()
File "/opt/bill-calculator/bin/AWSBillAnalysis.py", line 82, in CalculateBill
lastStartDateBilledConsideredDatetime, BillSummaryDict = self._sumUpBillFromDateToDate( self.billCVSAggregateStr, self.lastKnownBillDate, self.sumToDate );
File "/opt/bill-calculator/bin/AWSBillAnalysis.py", line 452, in _sumUpBillFromDateToDate
BillSummaryDict[ key ] = float(row[unBlendedCostCsvHeaderString])
The text was updated successfully, but these errors were encountered: