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

Unable to launch slave in AWS due to " Security groups must all be VPC security groups to work in a VPC context"

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

       

      Providing a single security group name/id & single subnet id, both under same VPC gives the error.

      com.amazonaws.AmazonClientException: Security groups must all be VPC security groups to work in a VPC context
      	at hudson.plugins.ec2.SlaveTemplate.getEc2SecurityGroups(SlaveTemplate.java:986)
      	at hudson.plugins.ec2.SlaveTemplate.provisionOndemand(SlaveTemplate.java:527)
      	at hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:407)
      	at hudson.plugins.ec2.EC2Cloud.getNewOrExistingAvailableSlave(EC2Cloud.java:534)
      	at hudson.plugins.ec2.EC2Cloud.doProvision(EC2Cloud.java:340)
      	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)

      The launch happens when no security group is specified. Eliminating any permission related issue. However as the slave assumes the default security group, which is not the desirable state. 

      I get the same error when a different vpc security group name/id is specified.

       

      Jenkins Version: 2.111

      EC2 Pluging : 1.39

       

        Attachments

          Activity

          vikasbodke Vikas Bodke created issue -
          Hide
          vikasbodke Vikas Bodke added a comment -

          Closing as this got submitted in error

          Show
          vikasbodke Vikas Bodke added a comment - Closing as this got submitted in error
          vikasbodke Vikas Bodke made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          francisu Francis Upton made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          francisu Francis Upton made changes -
          Resolution Not A Defect [ 7 ]
          Status Reopened [ 4 ] Resolved [ 5 ]
          francisu Francis Upton made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            Assignee:
            francisu Francis Upton
            Reporter:
            vikasbodke Vikas Bodke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: