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

IllegalArgumentException when rolling back servers in openstack-nova

    Details

      Description

      When trying to rollback a server in OpenStack Nova, we are passing the ID in an invalid format to the cleanup strategy, leading to an IllegalArgumentException:

      Caused by: java.lang.IllegalArgumentException: id must be in format regionId/id
          at com.google.common.base.Preconditions.checkArgument(Preconditions.java:125)
          at org.jclouds.openstack.nova.v2_0.domain.regionscoped.RegionAndId.fromSlashEncoded(RegionAndId.java:31)
          at org.jclouds.openstack.nova.v2_0.compute.functions.CleanupServer.apply(CleanupServer.java:67)
          at org.jclouds.openstack.nova.v2_0.compute.NovaComputeServiceAdapter.destroyNode(NovaComputeServiceAdapter.java:269)
          at org.jclouds.openstack.nova.v2_0.compute.NovaComputeServiceAdapter.createNodeWithGroupEncodedIntoName(NovaComputeServiceAdapter.java:152)
          at org.jclouds.compute.strategy.impl.AdaptingComputeServiceStrategies.createNodeWithGroupEncodedIntoName(AdaptingComputeServiceStrategies.java:196)
          at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet$AddNode.call(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:81)
          at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet$AddNode.call(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:64)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
          at java.lang.Thread.getStackTrace(Thread.java:1552)
          at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.createNodeInGroupWithNameAndTemplate(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:169)
          at org.jclouds.openstack.nova.v2_0.compute.strategy.ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet.createNodeInGroupWithNameAndTemplate(ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet.java:161)
          at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.execute(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:124)
          at org.jclouds.openstack.nova.v2_0.compute.strategy.ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet.execute(ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet.java:154)
          at org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:217)
      

        Issue Links

          Activity

          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 459d437af289344ace3d0bad21c57da5e7b3aeb7 in jclouds's branch refs/heads/master from Ignasi Barrera
          [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=459d437 ]

          JCLOUDS-1249: Fix OpenStack server rollback

          Show
          jira-bot ASF subversion and git services added a comment - Commit 459d437af289344ace3d0bad21c57da5e7b3aeb7 in jclouds's branch refs/heads/master from Ignasi Barrera [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=459d437 ] JCLOUDS-1249 : Fix OpenStack server rollback
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 95759292468b0dbfb5d3eda972f3b24dd117c826 in jclouds's branch refs/heads/2.0.x from Ignasi Barrera
          [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=9575929 ]

          JCLOUDS-1249: Fix OpenStack server rollback

          Show
          jira-bot ASF subversion and git services added a comment - Commit 95759292468b0dbfb5d3eda972f3b24dd117c826 in jclouds's branch refs/heads/2.0.x from Ignasi Barrera [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=9575929 ] JCLOUDS-1249 : Fix OpenStack server rollback

            People

            • Assignee:
              Unassigned
              Reporter:
              nacx Ignasi Barrera
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development