Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21108

Creating a VM with jcloud plugin fails due to empty userData

    Details

    • Similar Issues:

      Description

      Creating a VM via jcloud plugin, using the nova-ec2 interface, fails with:

         Caused by: java.lang.IllegalArgumentException: userData cannot be empty
         	at    com.google.common.base.Preconditions.checkArgument(Preconditions.java:92)
      	at org.jclouds.ec2.options.RunInstancesOptions.withUserData(RunInstancesOptions.java:89)
      	at org.jclouds.ec2.compute.strategy.CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions.execute(CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions.java:95)
      	at org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.createKeyPairAndSecurityGroupsAsNeededThenRunInstances(EC2CreateNodesInGroupThenAddToSet.java:216)
      	at org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.runInstancesAndWarnOnInvisible(EC2CreateNodesInGroupThenAddToSet.java:154)
      	at org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.execute(EC2CreateNodesInGroupThenAddToSet.java:135)
      	at org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:212)
      	at org.jclouds.ec2.compute.EC2ComputeService.createNodesInGroup(EC2ComputeService.java:147)
      	at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.get(JCloudsSlaveTemplate.java:316)
      	at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.provisionSlave(JCloudsSlaveTemplate.java:182)
      	at jenkins.plugins.jclouds.compute.JCloudsCloud.doProvision(JCloudsCloud.java:283)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
      	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      

      any idea?

        Attachments

          Activity

          Hide
          felfert Fritz Elfert added a comment -

          Fixed in 2.11

          Show
          felfert Fritz Elfert added a comment - Fixed in 2.11

            People

            • Assignee:
              Unassigned
              Reporter:
              ktf Giulio Eulisse
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: