New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECS create server group is throwing exception because of problem with Orca running with Java 17 #6926
Comments
This issue hasn't been updated in 45 days, so we are tagging it as 'stale'. If you want to remove this label, comment:
|
@spinnakerbot remove-label stale |
@dbyron-sf could you or someone else have a look here? |
@jgrumboe Can you post the contents of your bake stage? I'm not familiar with ecs....trying to find the bit of pipeline config that:
from here references. As I look at the code more closely, maybe it's your find image stage? As I look at the output of one of my find image stages, imageId is a string, not a list. It's amiDetails that's a list though. See FindImageFromTagsTask for that. ImageFinder seems to be the source of truth that imageId is a String. So, I'm not sure how this ever worked. |
There is no bake stage as we build the image in GitHub Actions and push it to AWS ECR. So we just have a FindImageFromTags stage that looks up the image tag in AWS ECR. I had already a quick conversation in slack with @jasonmcintosh who thinks it could be Groovy3 related: https://spinnakerteam.slack.com/archives/C091CCWRJ/p1706795583143819 As said, the FindImageFromTags stage has worked fine under Java11 and for us for years already. |
@jgrumboe Are you set up to make/test the code change here to treat amiDetails as a list and imageId as a string? |
You mean localdev setup? Yes, I have it working. |
Yes please. |
This issue hasn't been updated in 45 days, so we are tagging it as 'stale'. If you want to remove this label, comment:
|
Issue Summary:
We wanted to upgrade to 1.33.0 and ECS deployments started failing with the an exception:
Downgrading to 1.32.3 resolved the problem.
Cloud Provider(s):
AWS ECS
Environment:
Tested in two environments:
Feature Area:
Pipeline stage "Deploy" in combination with a "Find Image from Tags" stage
Description:
This is the complete stacktrace from the execution:
So, something is happening in orca in EcsServerGroupCreator.groovy line 125 I thought. That's where a
Deploy
stage with image referenced from a previousFind Image from Tags
stage tries to get the imageId.I searched if the code changed, but there weren't any changes in the last 5 years.
My next thought was maybe it's related to Java 17 upgrade of orca.
I tested multiple scenarios locally:
Steps to Reproduce:
Additional Details:
It only fails in combination with the
Find Image from Tags
stage reference.Single
Deploy
stages with fixed container mappings are working.The text was updated successfully, but these errors were encountered: