Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-594

ComputeService.suspendNodesMatching throwing UnsupportedOperationException but call still succeeds

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        1. JCLOUDS-594-1.7.x.patch
          14 kB
          Andrew Phillips
        2. JCLOUDS-594.patch
          14 kB
          Andrew Phillips

        Activity

          People

            Unassigned Unassigned
            dancc@pega.com Christopher Dancy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: