java.lang.RuntimeException: failed to poll reservation prices for You are not authorized to perform

789 views
Skip to first unread message

bmk...@gmail.com

unread,
Nov 19, 2013, 6:05:58 AM11/19/13
to iceu...@googlegroups.com
Hello,

I have tried to setup ice processor using https://github.com/mdsol/ice_cookbook.

I got the following error when application start,

2013-11-19 16:27:53,962 [main] INFO scaffolding.DefaultGrailsTemplateGenerator - Scaffolding template generator set to use resource loader org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@764b2c0: startup date [Tue Nov 19 16:27:49 IST 2013]; parent: Root WebApplicationContext
2013-11-19 16:27:58,903 [main] INFO context.GrailsConfigUtils - [GrailsContextLoader] Grails application loaded.
2013-11-19 16:27:59,039 [main] INFO BootStrap - Starting ice...
2013-11-19 16:28:02,676 [main] INFO common.AwsUtils - file not found in s3 /var/ice_processor/reservation_prices.threeyear.LIGHT
2013-11-19 16:28:02,786 [main] INFO common.AwsUtils - file not found in s3 /var/ice_processor/reservation_prices.threeyear.MEDIUM
2013-11-19 16:28:02,820 [main] INFO common.AwsUtils - file not found in s3 /var/ice_processor/reservation_prices.threeyear.HEAVY
2013-11-19 16:28:02,875 [main] INFO common.AwsUtils - file not found in s3 /var/ice_processor/reservation_prices.threeyear.FIXED
java.lang.RuntimeException: failed to poll reservation prices for You are not authorized to perform this operation.
at com.netflix.ice.basic.BasicReservationService.init(BasicReservationService.java:109)
at com.netflix.ice.processor.ProcessorConfig.<init>(ProcessorConfig.java:93)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
at BootStrap$_closure1.doCall(BootStrap.groovy:186)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1082)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1106)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:956)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1106)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:406)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:308)
at grails.util.Environment.executeForEnvironment(Environment.java:301)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:277)
at org.codehaus.groovy.grails.commons.DefaultGrailsBootstrapClass.callInit(DefaultGrailsBootstrapClass.java:60)
at org.codehaus.groovy.grails.web.context.GrailsConfigUtils.executeGrailsBootstraps(GrailsConfigUtils.java:74)
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.initWebApplicationContext(GrailsContextLoader.java:108)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2013-11-19 16:28:04,646 [main] ERROR BootStrap - Startup failed
java.lang.RuntimeException: failed to poll reservation prices for You are not authorized to perform this operation.
at com.netflix.ice.basic.BasicReservationService.init(BasicReservationService.java:109)
at com.netflix.ice.processor.ProcessorConfig.<init>(ProcessorConfig.java:93)
at BootStrap$_closure1.doCall(BootStrap.groovy:186)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:308)
at grails.util.Environment.executeForEnvironment(Environment.java:301)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:277)

How to fix this issue?

Thanks

Fang Ji

unread,
Nov 19, 2013, 2:20:56 PM11/19/13
to bmk...@gmail.com, iceu...@googlegroups.com
Please make sure the user/role you use for Ice is granted the permission to make ec2 describeReservedInstancesOfferings call.

Thanks
-Fang



--
You received this message because you are subscribed to the Google Groups "iceusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iceusers+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

bmk...@gmail.com

unread,
Nov 20, 2013, 4:28:03 AM11/20/13
to iceu...@googlegroups.com, bmk...@gmail.com
Thanks Fang. This issue has bee fixed after give the permission.

I have configured custom tag ice.properties
ice.customTags=Project

But this tag is not shown on ice dashboard UI.

From the doc "Then you will need to subclass abstract class ResourceService and have your own bootstrap.groovy create ProcessorConfig and ReaderConfig. See SampleMapDbResourceService for a sample of subclass."

If i need to create a subclass for displaying tag. If there is any example for this?

Thanks

Nicolas Fonrose

unread,
Nov 20, 2013, 9:51:10 AM11/20/13
to bmk...@gmail.com, iceu...@googlegroups.com
Hi,

On Wed, Nov 20, 2013 at 10:28 AM, <bmk...@gmail.com> wrote:
ice.customTags=Project

You probably need to add "user:" in front of your tag name as this is how tag names are represented in the AWS Programmatic Billing file.

ice.customTags=user:Project

That should solve your problem.

Cheers,

--
Nicolas Fonrose | Teevity | Founder
http://ice.teevity.com/register/ - Cloud Costs Analytics
twitter - @nfonrose / @teevity

B MK

unread,
Nov 21, 2013, 5:53:45 AM11/21/13
to Nicolas Fonrose, iceu...@googlegroups.com
On Wed, Nov 20, 2013 at 8:21 PM, Nicolas Fonrose <nicolas...@teevity.com> wrote:
Hi,

On Wed, Nov 20, 2013 at 10:28 AM, <bmk...@gmail.com> wrote:
ice.customTags=Project

You probably need to add "user:" in front of your tag name as this is how tag names are represented in the AWS Programmatic Billing file.

ice.customTags=user:Project

That should solve your problem.
After clear the data files from s3 (work files),  ice_reader, ice_processor issues has fixed
This thread helped to fix this issue https://github.com/Netflix/ice/issues/38
ice_reader

zemmipho...@gmail.com

unread,
Dec 2, 2013, 6:54:02 PM12/2/13
to iceu...@googlegroups.com, bmk...@gmail.com
Hey,

Would you be able to share the IAM role that you're using (obviously sanitized)? I'm curious if there is a way to just limit it to just describing the reserved instances.

Thanks,
KP

zemmipho...@gmail.com

unread,
Dec 2, 2013, 6:59:35 PM12/2/13
to iceu...@googlegroups.com, bmk...@gmail.com, zemmipho...@gmail.com
Nevermind, I found what I was looking for deep in the aws jungle of documentation
(for those looking for it) http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-policies-for-amazon-ec2.html
Reply all
Reply to author
Forward
0 new messages