Details
-
Bug
-
Resolution: Fixed
-
Low
-
5.15.3
-
None
-
Severity 3 - Minor
-
Description
Summary
Elastic agent failed to be started after importing Bamboo backup file from the older version
Steps to Reproduce
- Install Bamboo 5.14.3.1
- Configure the Linux stock image at Administration >> Elastic Bamboo >> Image configurations to enable "Use Virtual Private Cloud" option and select a "Virtual Private Cloud subnet"
- Save the configuration
- Start the image to confirm that it is able to startup
- Terminate it
- Create a backup file from Administration >> System >> Export
- Shutdown Bamboo 5.14.3.1
- Install Bamboo 5.15.3 in an empty directory and new Bamboo Home
- Restore the backup file from Step 6
- Start the Linux stock image
Expected Results
The stock image able to start up
Actual Results
The below exception is thrown in the atlassian-bamboo.log file:
2017-03-24 20:03:53,205 ERROR [http-nio-8085-exec-4] [ManageElasticInstancesAction] Failed to start elastic instances com.atlassian.aws.AWSException: Error when starting a new instance at com.atlassian.bamboo.agent.elastic.server.ElasticFunctionalityFacadeImpl.startupAgents(ElasticFunctionalityFacadeImpl.java:219) at com.atlassian.bamboo.ww2.actions.admin.elastic.ManageElasticInstancesAction.create(ManageElasticInstancesAction.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:871) at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1537) at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68) at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:96) at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:88) at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1613) at ognl.ASTMethod.getValueBody(ASTMethod.java:91) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) at ognl.SimpleNode.getValue(SimpleNode.java:258) ... Caused by: java.lang.IllegalArgumentException at com.google.common.base.Preconditions.checkArgument(Preconditions.java:108) at com.atlassian.aws.ec2.model.SubnetId.<init>(SubnetId.java:24) at com.atlassian.aws.ec2.model.SubnetId.from(SubnetId.java:41) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.Iterator.forEachRemaining(Iterator.java:116) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at com.atlassian.aws.ec2.model.ResourceId.fromCollection(ResourceId.java:70) at com.atlassian.aws.ec2.model.SubnetId.from(SubnetId.java:59) at com.atlassian.bamboo.agent.elastic.server.ElasticFunctionalityFacadeImpl.getVpcsAndSubnets(ElasticFunctionalityFacadeImpl.java:273) at com.atlassian.bamboo.agent.elastic.server.ElasticFunctionalityFacadeImpl.ensureSecurityGroupsExist(ElasticFunctionalityFacadeImpl.java:291) at com.atlassian.bamboo.agent.elastic.server.ElasticFunctionalityFacadeImpl.startupAgents(ElasticFunctionalityFacadeImpl.java:181)
The Linux stock image is missing the selected option in "Virtual Private Cloud subnet" but the option "Use Virtual Private Cloud" is selected
Notes
The Linux stock image in Bamboo 5.14.3.1 have different AMI ID compared to Bamboo 5.15.3
Workaround
Edit the problematic stock image and select the missing "Virtual Private Cloud subnet" option
Attachments
Issue Links
- mentioned in
-
Page Loading...