[JIRA] (JENKINS-59564) Network interfaces and an instance-level subnet ID may not be specified on the same request

6 views
Skip to first unread message

bochenski.kuba+jenkins@gmail.com (JIRA)

unread,
Sep 27, 2019, 11:53:02 AM9/27/19
to jenkinsc...@googlegroups.com
Jakub Bochenski created an issue
 
Jenkins / Bug JENKINS-59564
Network interfaces and an instance-level subnet ID may not be specified on the same request
Issue Type: Bug Bug
Assignee: FABRIZIO MANFREDI
Components: ec2-plugin
Created: 2019-09-27 15:52
Environment: ec2 plugin 1.46
Priority: Critical Critical
Reporter: Jakub Bochenski

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,
        ''
)
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

bochenski.kuba+jenkins@gmail.com (JIRA)

unread,
Sep 27, 2019, 11:56:02 AM9/27/19
to jenkinsc...@googlegroups.com

phil.whelan@bench.co (JIRA)

unread,
Oct 1, 2019, 12:03:02 AM10/1/19
to jenkinsc...@googlegroups.com

raihaan.shouhell@autodesk.com (JIRA)

unread,
Oct 2, 2019, 10:44:08 PM10/2/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages