jclouds
  1. jclouds
  2. JCLOUDS-594

ComputeService.suspendNodesMatching throwing UnsupportedOperationException but call still succeeds

    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

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

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit f52a264b87253cbfdff4e66d43f3e1d53c0dc579 in jclouds's branch refs/heads/1.7.x from Chris Custine
        [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=f52a264 ]

        JCLOUDS-594: ComputeService.suspendNodesMatching throwing UnsupportedOperationException but call still succeeds

        Show
        ASF subversion and git services added a comment - Commit f52a264b87253cbfdff4e66d43f3e1d53c0dc579 in jclouds's branch refs/heads/1.7.x from Chris Custine [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=f52a264 ] JCLOUDS-594 : ComputeService.suspendNodesMatching throwing UnsupportedOperationException but call still succeeds
        Hide
        ASF subversion and git services added a comment -

        Commit 4d5f57a303dd5b0ac8ba8379d0291b358da02476 in jclouds's branch refs/heads/master from Chris Custine
        [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=4d5f57a ]

        JCLOUDS-594: ComputeService.suspendNodesMatching throwing UnsupportedOperationException but call still succeeds

        Show
        ASF subversion and git services added a comment - Commit 4d5f57a303dd5b0ac8ba8379d0291b358da02476 in jclouds's branch refs/heads/master from Chris Custine [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=4d5f57a ] JCLOUDS-594 : ComputeService.suspendNodesMatching throwing UnsupportedOperationException but call still succeeds
        Hide
        Christopher Dancy added a comment -

        Yea I saw the exception being thrown for both suspend and resume no matter what but didn't want to assume anything. Thanks for the quick turn around.

        Show
        Christopher Dancy added a comment - Yea I saw the exception being thrown for both suspend and resume no matter what but didn't want to assume anything. Thanks for the quick turn around.
        Hide
        Chris Custine added a comment -

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

        Show
        Chris Custine added a comment - This wasn't hard to figure out Fixed in https://github.com/jclouds/jclouds/pull/403

          People

          • Assignee:
            Unassigned
            Reporter:
            Christopher Dancy
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development