[ 
https://issues.apache.org/jira/browse/JCLOUDS-594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14028966#comment-14028966
 ] 

Chris Custine commented on JCLOUDS-594:
---------------------------------------

This wasn't hard to figure out :-)  Fixed in 
https://github.com/jclouds/jclouds/pull/403

> ComputeService.suspendNodesMatching throwing UnsupportedOperationException 
> but call still succeeds
> --------------------------------------------------------------------------------------------------
>
>                 Key: JCLOUDS-594
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-594
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-compute
>    Affects Versions: 1.7.2, 1.7.3
>         Environment: rackspace/openstack instance on unix. jclouds being 
> called from windows/unix.
>            Reporter: Christopher Dancy
>              Labels: NovaComputeService, openstack, rackspace, 
> suspendNodesMatching
>
> DISCLAIMER: i'm using rackspace/openstack.
> When calling ComputeService.suspendNodesMatching with 1 id the call throws 
> the below stracktrace. However when I query the instance I see that it is 
> indeed suspended. Going through the rackspace/openstack dashboard confirms 
> that the instance is indeed suspended. Even weirder is when I call 
> ComputeService.suspendNodesMatching with more than 1 id I get the same 
> behavior as above but ONLY 1 succeeds (still throwing exception) whereas all 
> others do NOT suspend as expected.
> java.lang.UnsupportedOperationException: suspend requires installation of the 
> Admin Actions extension
>       at 
> org.jclouds.openstack.nova.v2_0.compute.NovaComputeServiceAdapter.suspendNode(NovaComputeServiceAdapter.java:283)
>       at 
> org.jclouds.compute.strategy.impl.AdaptingComputeServiceStrategies.suspendNode(AdaptingComputeServiceStrategies.java:170)
>       at 
> org.jclouds.compute.internal.BaseComputeService.suspendNode(BaseComputeService.java:488)
>       at 
> org.jclouds.compute.internal.BaseComputeService$5.apply(BaseComputeService.java:504)
>       at 
> org.jclouds.compute.internal.BaseComputeService$5.apply(BaseComputeService.java:500)
>       at 
> org.jclouds.concurrent.FutureIterables.transformParallel(FutureIterables.java:84)
>       at 
> org.jclouds.concurrent.FutureIterables.transformParallel(FutureIterables.java:72)
>       at 
> org.jclouds.compute.internal.BaseComputeService.suspendNodesMatching(BaseComputeService.java:499)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at 
> com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
>       at com.sun.proxy.$Proxy60.suspendNodesMatching



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to