Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unBlendedCost field is gone #504

Open
StevenCTimm opened this issue Jun 11, 2024 · 1 comment
Open

unBlendedCost field is gone #504

StevenCTimm opened this issue Jun 11, 2024 · 1 comment
Assignees

Comments

@StevenCTimm
Copy link
Contributor

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])

@BrunoCoimbra BrunoCoimbra modified the milestones: 2017-Demo, 2.0.X Oct 23, 2024
@BrunoCoimbra BrunoCoimbra removed this from the 2.0.X milestone Oct 23, 2024
@StevenCTimm
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants