View Issue Details

IDProjectCategoryView StatusLast Update
0018535CentOS-7Cloud-Imagespublic2022-11-11 21:54
Reporterjulferts Assigned To 
PriorityimmediateSeveritymajorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version7.9.2009 
Summary0018535: Latest CentOS 7 image is not showing up in describe-images anymore - e.g. packer builds are broken ATM
DescriptionOn March 31, 2022 AWS started adding DeprecationTime to images and back filling this for existent images. https://aws.amazon.com/about-aws/whats-new/2022/03/amazon-machine-images-public-visibility-two-years/

The outcome is that images that reached their deprecation date are not showing up in DescribeImage calls. Exceptions are adding IncludeDeprecated into the RequestParameters or being the image owner ( which makes it even harder for publishers to identify this issue )

At the moment this new Parameter is not supported by the commonly used image building tool packer used by for example https://github.com/kubernetes-sigs/image-builder

Please either build a new image or even better if there is no change planned remove the deprecation from the latest AMI by issuing

aws ec2 disable-image-deprecation --image-id $ami-id
Steps To Reproduceaws ec2 describe-images --owners 125523088429 --filters "Name=name,Values=CentOS 7.9*" --query 'Images[] | length(@)'
0

aws ec2 describe-images --owners 125523088429 --filters "Name=name,Values=CentOS 7.9*" --query 'Images[] | length(@)' --include-deprecated
2
Additional Informationhere are the example calls for CentOS 7.9 images

for region in $(aws ec2 describe-regions --query 'Regions[].[RegionName]' --output text);aws ec2 describe-images --region $region --owners 125523088429 --filters "Name=name,Values=CentOS 7.9*" --include-deprecated --query 'sort_by(Images, &CreationDate)[].[ImageId]' --output text | xargs -n1 echo aws --region $region ec2 disable-image-deprecation --ami-id

aws --region ap-south-1 ec2 disable-image-deprecation --ami-id ami-0ffc7af9c06de0077
aws --region ap-south-1 ec2 disable-image-deprecation --ami-id ami-0b5c298137e260867
aws --region eu-north-1 ec2 disable-image-deprecation --ami-id ami-0358414bac2039369
aws --region eu-north-1 ec2 disable-image-deprecation --ami-id ami-0703d28356ece347c
aws --region eu-west-3 ec2 disable-image-deprecation --ami-id ami-072ec828dae86abe5
aws --region eu-west-3 ec2 disable-image-deprecation --ami-id ami-0286c81df9e81730d
aws --region eu-west-2 ec2 disable-image-deprecation --ami-id ami-0b22fcaf3564fb0c9
aws --region eu-west-2 ec2 disable-image-deprecation --ami-id ami-098cdf26bc3c008df
aws --region eu-west-1 ec2 disable-image-deprecation --ami-id ami-04f5641b0d178a27a
aws --region eu-west-1 ec2 disable-image-deprecation --ami-id ami-0e2a2f48fffbaa4fa
aws --region ap-northeast-2 ec2 disable-image-deprecation --ami-id ami-0e4214f08b51e23cc
aws --region ap-northeast-2 ec2 disable-image-deprecation --ami-id ami-09e34a2c74d315279
aws --region ap-northeast-1 ec2 disable-image-deprecation --ami-id ami-0ddea5e0f69c193a4
aws --region ap-northeast-1 ec2 disable-image-deprecation --ami-id ami-0a9d0fdaf6eba3b96
aws --region ca-central-1 ec2 disable-image-deprecation --ami-id ami-0a7c5b189b6460115
aws --region ca-central-1 ec2 disable-image-deprecation --ami-id ami-06cadcf5911e61f49
aws --region sa-east-1 ec2 disable-image-deprecation --ami-id ami-02334c45dd95ca1fc
aws --region sa-east-1 ec2 disable-image-deprecation --ami-id ami-07afdb5b9e57dab5e
aws --region ap-southeast-1 ec2 disable-image-deprecation --ami-id ami-0adfdaea54d40922b
aws --region ap-southeast-1 ec2 disable-image-deprecation --ami-id ami-0a8ab25085477038e
aws --region ap-southeast-2 ec2 disable-image-deprecation --ami-id ami-03d56f451ca110e99
aws --region ap-southeast-2 ec2 disable-image-deprecation --ami-id ami-014dafc35e50da2f5
aws --region eu-central-1 ec2 disable-image-deprecation --ami-id ami-08b6d44b4f6f7b279
aws --region eu-central-1 ec2 disable-image-deprecation --ami-id ami-0a305a7534a53874c
aws --region us-east-1 ec2 disable-image-deprecation --ami-id ami-00e87074e52e6c9f9
aws --region us-east-1 ec2 disable-image-deprecation --ami-id ami-0b802bd2b502aa382
aws --region us-east-2 ec2 disable-image-deprecation --ami-id ami-00f8e2c955f7ffa9b
aws --region us-east-2 ec2 disable-image-deprecation --ami-id ami-07f692d95b2b9c8c5
aws --region us-west-1 ec2 disable-image-deprecation --ami-id ami-08d2d8b00f270d03b
aws --region us-west-1 ec2 disable-image-deprecation --ami-id ami-09748e99ee14e3823
aws --region us-west-2 ec2 disable-image-deprecation --ami-id ami-0686851c4e7b1a8e1
aws --region us-west-2 ec2 disable-image-deprecation --ami-id ami-0db02f65655518c52
TagsNo tags attached.
abrt_hash
URL

Activities

hegyre

hegyre

2022-11-11 18:46

reporter   ~0039025

Hello,
See https://aws.amazon.com/marketplace/pp/prodview-foff247vr2zfw?sr=0-1&ref_=beagle&applicationId=AWSMPContessa

Looks like AWS published a new CentOS 7 AMI, but only available via the Marketplace...
Even being on the MarketPlace, it looks like it's belonging to AWS: It's "By: Amazon Web Services" on the above url.
Probably they've messed up the things here....

For example, for eu-west-1 region:
ID: ami-0c1f3a8058fde8814
Name: CentOS-7-2111-20220825_1.x86_64-d9a3032a-921c-4c6d-b150-bde168105e42
OwnerID: 679593333241
arrfab

arrfab

2022-11-11 21:53

administrator   ~0039026

Issue tracked in the proper tracker : https://pagure.io/centos-infra/issue/966

Issue History

Date Modified Username Field Change
2022-11-11 11:26 julferts New Issue
2022-11-11 18:46 hegyre Note Added: 0039025
2022-11-11 21:53 arrfab Note Added: 0039026
2022-11-11 21:54 arrfab Status new => acknowledged