-
Notifications
You must be signed in to change notification settings - Fork 635
Description
/kind bug
What steps did you take and what happened:
Certain Pre-built Kubernetes AMIs, which existed a few days ago, are no longer available.
I can reproduce the problem without using ClusterAPI, just trying to use the AMI from AWS.
What did you expect to happen:
In the documentation, it is explained that specific AMIs ("pre-built Kubernetes AMIs") are available:
https://cluster-api-aws.sigs.k8s.io/topics/images/built-amis
Several days ago, using the CLI clusterawsadm, I could see that there were indeed AMIS in the eu-west-3 region.
I refined the search and found the one I was interested in (Ubuntu-20.04, Kube-v1.25.6).
$clusterawsadm ami list --region eu-west-3 --kubernetes-version v1.25.6 --os
KUBERNETES VERSION REGION OS NAME AMI ID
v1.25.6 eu-west-3 ubuntu-20.04 capa-ami-ubuntu-20.04-v1.25.6-1675792181 ami-0dc483fa659842781
BUT...
Since yesterday, this AMI is no longer available.
And Many others have been disappearing!!
Right now, I don't see any in that region:
$ clusterawsadm ami list --region eu-west-3
No AMIs found
I think that the problem is not in that region, and the AMIS are being deleted (I don't know with what criteria, but it doesn't seem to have to do with the age of the Kubernetes versions).
For example, a few days ago these commands returned me a dozen AMIS... but today:
$ clusterawsadm ami list --os ubuntu-20.04 --kubernetes-version v1.25.6
No AMIs found
$ clusterawsadm ami list --os ubuntu-20.04 --kubernetes-version v1.28.2
No AMIs found
It's not just the AMIS that have disappeared.
Yesterday, using an AMI that DID appear in the ami-list... I was getting errors like these:
$ aws ec2 describe-images --image-id ami-03986b93868a41e8f
<response OK, no errors>
$ aws ec2 run-instances --image-id ami-03986b93868a41e8f --instance-type t2.large --count 1
An error occurred (InvalidSnapshot.NotFound) when calling the RunInstances operation: Failed trying to describe product codes for snapshot '216734523443'
Anything else you would like to add:
I did some tests, and it only happened with ClusterAPI AMIs.
Environment:
Simply using the AMIs, no matter the ClusterAPI version.