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

Network interfaces and an instance-level subnet ID may not be specified on the same request

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate
    • Component/s: ec2-plugin
    • Labels:
      None
    • Environment:
      ec2 plugin 1.46
    • Similar Issues:

      Description

      After upgrading to 1.46 the plugin can no longer spawn instances. I get the above error from AWS.

      This works correctly when I downgrade to 1.45.

      My plugin configuration is

      final cloud = new AmazonEC2Cloud(
              'ec2',
              false,
              '',
              config.ec2_region,
              config.ec2_ssh_key,
              config.ec2_instance_cap,
              [
      
      
                      new SlaveTemplate(
                              config.ec2_ami_id,
                              '',
                              null,
                              config.ec2_security_groups,
                              '/opt/jenkins',
                              InstanceType.fromValue(config.ec2_instance_type),
                              false,
                              config.ec2_label,
                              Node.Mode.NORMAL,
                              "ec2 (${config.ec2_ami_id})",
                              '',
                              '/tmp',
                              '''#!/bin/bash -xe
                              mkfs.ext4 /dev/nvme1n1
                              mkdir -p /opt/jenkins
                              mount /dev/nvme1n1 /opt/jenkins
                              chown -R admin:admin /opt/jenkins
      
                              service docker stop
                              mkdir -p /opt/jenkins/docker/lib
                              mv /var/lib/docker /opt/jenkins/docker/lib
                              ln -s /opt/jenkins/docker/lib /var/lib/docker
                              service docker start
                              ''',
                              '1',
                              config.ec2_remote_user,
                              new UnixData(null, null, null, null),
                              '',
                              false,
                              config.ec2_subnet_id,
                              [
                                      Name: 'foo'
                              ].collect{ new EC2Tag(it.key,it.value) },
                              '30',
                              false,
                              '',
                              config.ec2_arn_role,
                              true,
                              false,
                              false,
                              '1800',
                              false,
                              '/dev/xvdb=:20',
                              false,
                              false,
                              false,
                              false
                      )],
              config.ec2_arn_role,
              ''
      )
      

        Attachments

          Issue Links

            Activity

            Hide
            jbochenski Jakub Bochenski added a comment -

            I'm guessing this might be related to https://issues.jenkins-ci.org/browse/JENKINS-58578

            Show
            jbochenski Jakub Bochenski added a comment - I'm guessing this might be related to https://issues.jenkins-ci.org/browse/JENKINS-58578
            Hide
            philw_bench Phil Whelan added a comment -

            We just hit this exact same issue.

            Show
            philw_bench Phil Whelan added a comment - We just hit this exact same issue.

              People

              • Assignee:
                thoulen FABRIZIO MANFREDI
                Reporter:
                jbochenski Jakub Bochenski
              • Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: