You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Andrew Phillips (JIRA)" <ji...@apache.org> on 2014/06/27 19:06:27 UTC

[jira] [Resolved] (JCLOUDS-594) ComputeService.suspendNodesMatching throwing UnsupportedOperationException but call still succeeds

     [ https://issues.apache.org/jira/browse/JCLOUDS-594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Phillips resolved JCLOUDS-594.
-------------------------------------

    Resolution: Fixed

> 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
>             Fix For: 1.8.0
>
>         Attachments: JCLOUDS-594.patch
>
>
> 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)