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

failed to get RI price for region and instance type #192

Open
tizatron opened this issue Nov 20, 2015 · 6 comments
Open

failed to get RI price for region and instance type #192

tizatron opened this issue Nov 20, 2015 · 6 comments

Comments

@tizatron
Copy link

https://github.com/Netflix/ice/blob/5c76154d3771735618c9bd5c774470e7c3a592e0/src/java/com/netflix/ice/basic/BasicLineItemProcessor.java#L221

Is causing me some grief - mainly because it keeps clogging up my catalina.out file.

Anyone have any insight why I am throwing this error?

@anpbabaki
Copy link

same here..only on a few instance types. most of them are the t2 class

@anpbabaki
Copy link

I narrowed this down to an issue where certain reservation offerings are missing from the reservation_prices.whatever.whatever file.

I believe this issue is related to this section in BasicReservationService.java

                if (offer.getProductDescription().indexOf("Amazon VPC") >= 0)
                    continue;

The code is ignoring any reservation type with "Amazon VPC" in it, probably to avoid duplicates in the the reservation_prices.whatever.whatever file since they have different RI's for either EC2-Classic or VPC. This was done during the introduction of VPC's, but the problem is, AWS is phasing out the non Amazon VPC reservation types, so the new instance classes like m4 and t2 are never being added and thereby causing the errors above. Go into the AWS console and try to purchase a t2 or m4 non Amazon VPC reservation, it will tell you that there are none available. I changed the code to

                if (offer.getProductDescription().indexOf("Amazon VPC") < 0)
                 continue;

Now it will take onty the reservation types WITH "Amazon VPC" in the description, which should take care of all of them. This change got rid of all the errors for me, and now ICE accurately reflects my RI prices for the new classes like m4 and t2.

@anpbabaki
Copy link

Well now Ive run into another problem with the above change. All reserved costs are now being rolled up into UpFrontAmortized.

@anpbabaki
Copy link

OK second issue was occuring because once I changed the filter to get only the VPC RI's, the RI prices for both default and dedicated tenancy were being added to the reference file and apparently causing some havoc . I fixed the second issue by filtering out the dedicated RI's (i dont use them myself)

                           if (offer.getInstanceTenancy().indexOf("default") == -1)
                           continue;

patrickvalenzuela pushed a commit to lyft/ice that referenced this issue Jan 7, 2017
azrik added a commit to azrik/ice that referenced this issue Apr 7, 2017
azrik added a commit to azrik/ice that referenced this issue Apr 10, 2017
@PabloCastellano
Copy link
Contributor

After applying these two changes said by @anpbabaki I still get my logs flooded with "failed to get RI price for {region} {instancetype}"

@CpuID
Copy link

CpuID commented Oct 3, 2017

Seeing this issue using 1.1.2 - would love to know how to resolve it. Seeing it for mostly t2, c4 and r4 instances.

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

4 participants