com.amazonaws.AmazonClientException: Security groups must all be VPC security groups to work in a VPC context

Jenkins JIRA | Joshua Hoblitt | 9 months ago
  1. 0

    I am attempting to to launch on demand instances into an existing VPC. If I set the security group to either the sg ID or the sg name, I get the below error in the logs. I tried created a new log recorder for all the classes under hudson.plugins.ec2.* but have not been able to find any more detailed debugging information. {code:java} Apr 15, 2016 3:43:30 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Launching ami-3331f958 for template centos 7 Apr 15, 2016 3:43:30 PM WARNING hudson.plugins.ec2.EC2Cloud provision Exception during provisioning 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:916) at hudson.plugins.ec2.SlaveTemplate.provisionOndemand(SlaveTemplate.java:476) at hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:377) at hudson.plugins.ec2.EC2Cloud.provisionSlaveIfPossible(EC2Cloud.java:406) at hudson.plugins.ec2.EC2Cloud.provision(EC2Cloud.java:422) at hudson.slaves.NodeProvisioner$StandardStrategyImpl.apply(NodeProvisioner.java:700) at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:305) at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:58) at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:797) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code}

    Jenkins JIRA | 9 months ago | Joshua Hoblitt
    com.amazonaws.AmazonClientException: Security groups must all be VPC security groups to work in a VPC context
  2. 0

    I am attempting to to launch on demand instances into an existing VPC. If I set the security group to either the sg ID or the sg name, I get the below error in the logs. I tried created a new log recorder for all the classes under hudson.plugins.ec2.* but have not been able to find any more detailed debugging information. {code:java} Apr 15, 2016 3:43:30 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Launching ami-3331f958 for template centos 7 Apr 15, 2016 3:43:30 PM WARNING hudson.plugins.ec2.EC2Cloud provision Exception during provisioning 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:916) at hudson.plugins.ec2.SlaveTemplate.provisionOndemand(SlaveTemplate.java:476) at hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:377) at hudson.plugins.ec2.EC2Cloud.provisionSlaveIfPossible(EC2Cloud.java:406) at hudson.plugins.ec2.EC2Cloud.provision(EC2Cloud.java:422) at hudson.slaves.NodeProvisioner$StandardStrategyImpl.apply(NodeProvisioner.java:700) at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:305) at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:58) at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:797) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code}

    Jenkins JIRA | 9 months ago | Joshua Hoblitt
    com.amazonaws.AmazonClientException: Security groups must all be VPC security groups to work in a VPC context
  3. 0

    [JIRA] [ec2-plugin] (JENKINS-34291) unable to configure VPC security groups

    Google Groups | 9 months ago | jo...@hoblitt.com (JIRA)
    com.amazonaws.AmazonClientException: Security groups must all be VPC security groups to work in a VPC context
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jackrabbit - Dev - [jira] [Updated] (JCR-3740) s3 datastore classloading issue

    nabble.com | 1 year ago
    com.amazonaws.AmazonClientException: Unable to unmarshall response (Couldn't initialize a sax driver for the XMLReader)
  6. 0

    GitHub comment 26#92394166

    GitHub | 2 years ago | Gregsen
    com.amazonaws.AmazonClientException: Unable to load AWS credentials from any provider in the chain

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.amazonaws.AmazonClientException

      Security groups must all be VPC security groups to work in a VPC context

      at hudson.plugins.ec2.SlaveTemplate.getEc2SecurityGroups()
    2. hudson.plugins.ec2
      EC2Cloud.provision
      1. hudson.plugins.ec2.SlaveTemplate.getEc2SecurityGroups(SlaveTemplate.java:916)
      2. hudson.plugins.ec2.SlaveTemplate.provisionOndemand(SlaveTemplate.java:476)
      3. hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:377)
      4. hudson.plugins.ec2.EC2Cloud.provisionSlaveIfPossible(EC2Cloud.java:406)
      5. hudson.plugins.ec2.EC2Cloud.provision(EC2Cloud.java:422)
      5 frames
    3. Hudson
      SafeTimerTask.run
      1. hudson.slaves.NodeProvisioner$StandardStrategyImpl.apply(NodeProvisioner.java:700)
      2. hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:305)
      3. hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:58)
      4. hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:797)
      5. hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50)
      5 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames