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

ReservationPoller null error for availability zone #264

Open
screechdiesel opened this issue Aug 14, 2017 · 3 comments
Open

ReservationPoller null error for availability zone #264

screechdiesel opened this issue Aug 14, 2017 · 3 comments

Comments

@screechdiesel
Copy link

Hello. The ReservationCapacityPoller class attempts to retrieve data elements for each reservation, including:
reservation.getAvailabilityZone()
Which results in a null error for those reservations that are not tied to a specific zone and do not have that data element in the JSON:
"ReservedInstances": [
{
...
"Scope": "Region",
...
}
]

@screechdiesel
Copy link
Author

Can also raise a null error in BasicReservationService.java:
Zone zone = Zone.getZone(reservedInstances.getAvailabilityZone());

@shaneknapp
Copy link

i'm seeing the same error... ice was working until ~late last week and now it won't even start up. the config hasn't changed.

here's the stack trace i'm seeing:

Message: failed to load reservation prices null
    Line | Method
->>  124 | init                             in com.netflix.ice.basic.BasicReservationService
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|     97 | <init>                           in com.netflix.ice.processor.ProcessorConfig
|    187 | doCall . . . . . . . . . . . . . in BootStrap$_closure1
|    327 | evaluateEnvironmentSpecificBlock in grails.util.Environment
|    320 | executeForEnvironment . . . . .  in     ''
|    296 | executeForCurrentEnvironment     in     ''
|    266 | run . . . . . . . . . . . . . .  in java.util.concurrent.FutureTask
|   1149 | runWorker                        in java.util.concurrent.ThreadPoolExecutor
|    624 | run . . . . . . . . . . . . . .  in java.util.concurrent.ThreadPoolExecutor$Worker
^    748 | run                              in java.lang.Thread

@NitriKx
Copy link
Member

NitriKx commented Oct 17, 2017

Hi @screechdiesel which version are you using?

This should protect against null availability zone:

// Ignore Region-Wide RIs
if (offer.getAvailabilityZone() == null)
continue;

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