-
Improvement
-
Resolution: Not A Defect
-
Minor
-
None
-
jenkins 1.651
ec2-plugin 1.31
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.
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)