Skip to content

Handle missing Eureka AMI metadata#4565

Open
pony-maggie wants to merge 1 commit into
spring-cloud:mainfrom
pony-maggie:fix-eureka-dashboard-ami-column
Open

Handle missing Eureka AMI metadata#4565
pony-maggie wants to merge 1 commit into
spring-cloud:mainfrom
pony-maggie:fix-eureka-dashboard-ami-column

Conversation

@pony-maggie
Copy link
Copy Markdown

Fixes gh-3703

This PR keeps the Eureka dashboard AMI fallback when an Amazon instance does not include the ami-id metadata value. It also avoids a null availability-zone key for the same dashboard count model.

Tests:

  • JAVA_HOME=$(/usr/libexec/java_home -v 17) ./mvnw -pl spring-cloud-netflix-eureka-server -Dtest=EurekaControllerTests#statusUsesDefaultAmiForAmazonInstancesWithoutAmiMetadata test -P spring -nsu --batch-mode
  • JAVA_HOME=$(/usr/libexec/java_home -v 17) ./mvnw -pl spring-cloud-netflix-eureka-server -Dtest=EurekaControllerTests test -P spring -nsu --batch-mode
  • JAVA_HOME=$(/usr/libexec/java_home -v 17) ./mvnw -pl spring-cloud-netflix-eureka-server test -P spring -nsu --batch-mode

Fixes spring-cloudgh-3703

Signed-off-by: Lucas Ma <7184042+pony-maggie@users.noreply.github.com>
@pony-maggie pony-maggie force-pushed the fix-eureka-dashboard-ami-column branch from 274aa35 to efa2f84 Compare June 6, 2026 13:36
@pony-maggie
Copy link
Copy Markdown
Author

Rebased on latest main.

Verified locally:

JAVA_HOME=$(/usr/libexec/java_home -v 17) ./mvnw -pl spring-cloud-netflix-eureka-server -Dtest=EurekaControllerTests#statusUsesDefaultAmiForAmazonInstancesWithoutAmiMetadata test -P spring -nsu --batch-mode

Result: BUILD SUCCESS; Tests run: 1, Failures: 0, Errors: 0, Skipped: 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Eureka FreeMarker template error in AMI's column when running in AWS Fargate with private IP

2 participants