Skip to content
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

Bug: Owner ID does not look correct for Windows AMI images #92

Closed
dan-hoeger opened this issue Mar 21, 2023 · 4 comments · Fixed by #93
Closed

Bug: Owner ID does not look correct for Windows AMI images #92

dan-hoeger opened this issue Mar 21, 2023 · 4 comments · Fixed by #93
Assignees
Labels
bug Something isn't working

Comments

@dan-hoeger
Copy link

Expected Behaviour

we are getting a message saying we have custom AMI's when we are using the latest Amazon windows AMI's for the EKS version specified.

our instances are using the following AMI
ami-087cc060ba1de1b6d https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#ImageDetails:imageId=ami-087cc060ba1de1b6d
Windows_Server-2019-English-Full-EKS_Optimized-1.21-2023.02.14
the owner for this AMI is 957547624766 but in the Preflight code it's looking for an owner of 801119661308

I don't find any EKS_Optimized windows images under that owner.

Current Behaviour

getting the following message in the pre-flight

i-01c9ece320961ce5c cannot be upgraded as it uses a custom AMI!
i-06af7621a4c1c99d2 cannot be upgraded as it uses a custom AMI!

Code snippet

try to upgrade a cluster with windows nodes.

Possible Solution

change the owner ID to 957547624766 in iscustomami method for the windows instances.

Steps to Reproduce

try to upgrade a cluster with windows nodes.

Amazon EKS upgrade version

1.22

Python runtime version

3.9

Packaging format used

Git clone

Debugging logs

No response

@dan-hoeger dan-hoeger added the bug Something isn't working label Mar 21, 2023
@quixoticmonk
Copy link
Contributor

quixoticmonk commented Mar 21, 2023

Thank you for bringing this up. Taking a look at the current amis for windows show the account id as 957547624766 on us-east-1. @mbeacom Are we changing the underlying method here or do you want me to change the filters in a PR ?

@mbeacom
Copy link
Contributor

mbeacom commented Mar 21, 2023

@dan-hoeger Thanks for reporting this!

@quixoticmonk We can patch the existing implementation to resolve Dan's issue, but we are replacing this workflow totally in an upcoming release.

@mbeacom
Copy link
Contributor

mbeacom commented Mar 22, 2023

The fix (#93) for this issue will be released in 0.8.1 thanks to @quixoticmonk.

@dan-hoeger Thank you again for reporting this!

@mbeacom
Copy link
Contributor

mbeacom commented Mar 22, 2023

@dan-hoeger This bug fix is now released and available in 0.8.1 from PyPi!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants