kubernetes / test-infra

Test infrastructure for the Kubernetes project.
Apache License 2.0
3.83k stars 2.64k forks source link

Kops - Update Rocky 9 prow jobs to 9.4 #32762

Closed rifelpet closed 3 months ago

rifelpet commented 3 months ago

The AMI IDs advertised on the rocky linux website have a different name format for Rocky 9: https://rockylinux.org/download

aws ec2 describe-images --region us-east-1 --output table --owners 792107900819 --image-ids ami-021a1f96fec61f4e9

---------------------------------------------------------------------------------
|                                DescribeImages                                 |
+-------------------------------------------------------------------------------+
||                                   Images                                    ||
|+---------------------+-------------------------------------------------------+|
||  Architecture       |  x86_64                                               ||
||  BootMode           |  uefi-preferred                                       ||
||  CreationDate       |  2023-11-19T21:41:22.000Z                             ||
||  DeprecationTime    |  2025-11-19T21:41:22.000Z                             ||
||  Description        |  Rocky-9-EC2-Base-9.3-20231113.0.x86_64               ||
||  EnaSupport         |  True                                                 ||
||  Hypervisor         |  xen                                                  ||
||  ImageId            |  ami-021a1f96fec61f4e9                                ||
||  ImageLocation      |  792107900819/Rocky-9-EC2-Base-9.3-20231113.0.x86_64  ||
||  ImageType          |  machine                                              ||
||  Name               |  Rocky-9-EC2-Base-9.3-20231113.0.x86_64               ||
||  OwnerId            |  792107900819                                         ||
||  PlatformDetails    |  Linux/UNIX                                           ||
||  Public             |  True                                                 ||
||  RootDeviceName     |  /dev/sda1                                            ||
||  RootDeviceType     |  ebs                                                  ||
||  State              |  available                                            ||
||  UsageOperation     |  RunInstances                                         ||
||  VirtualizationType |  hvm                                                  ||
|+---------------------+-------------------------------------------------------+|
|||                            BlockDeviceMappings                            |||
||+--------------------------------------+------------------------------------+||
|||  DeviceName                          |  /dev/sda1                         |||
||+--------------------------------------+------------------------------------+||
||||                                   Ebs                                   ||||
|||+---------------------------------+---------------------------------------+|||
||||  DeleteOnTermination            |  True                                 ||||
||||  Encrypted                      |  False                                ||||
||||  SnapshotId                     |  snap-0d99bef0dcbbf092f               ||||
||||  VolumeSize                     |  10                                   ||||
||||  VolumeType                     |  gp2                                  ||||
|||+---------------------------------+---------------------------------------+|||

The new format has images built in the past month, whereas the old format hasn't had an AMI built in 2 years.

/cc @hakman

k8s-ci-robot commented 3 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman, rifelpet

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[config/jobs/kubernetes/kops/OWNERS](https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes/kops/OWNERS)~~ [hakman,rifelpet] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
k8s-ci-robot commented 3 months ago

@rifelpet: Updated the job-config configmap in namespace default at cluster test-infra-trusted using the following files:

In response to [this](https://github.com/kubernetes/test-infra/pull/32762): >The AMI IDs advertised on the rocky linux website have a different name format for Rocky 9: https://rockylinux.org/download > >``` >aws ec2 describe-images --region us-east-1 --output table --owners 792107900819 --image-ids ami-021a1f96fec61f4e9 > >--------------------------------------------------------------------------------- >| DescribeImages | >+-------------------------------------------------------------------------------+ >|| Images || >|+---------------------+-------------------------------------------------------+| >|| Architecture | x86_64 || >|| BootMode | uefi-preferred || >|| CreationDate | 2023-11-19T21:41:22.000Z || >|| DeprecationTime | 2025-11-19T21:41:22.000Z || >|| Description | Rocky-9-EC2-Base-9.3-20231113.0.x86_64 || >|| EnaSupport | True || >|| Hypervisor | xen || >|| ImageId | ami-021a1f96fec61f4e9 || >|| ImageLocation | 792107900819/Rocky-9-EC2-Base-9.3-20231113.0.x86_64 || >|| ImageType | machine || >|| Name | Rocky-9-EC2-Base-9.3-20231113.0.x86_64 || >|| OwnerId | 792107900819 || >|| PlatformDetails | Linux/UNIX || >|| Public | True || >|| RootDeviceName | /dev/sda1 || >|| RootDeviceType | ebs || >|| State | available || >|| UsageOperation | RunInstances || >|| VirtualizationType | hvm || >|+---------------------+-------------------------------------------------------+| >||| BlockDeviceMappings ||| >||+--------------------------------------+------------------------------------+|| >||| DeviceName | /dev/sda1 ||| >||+--------------------------------------+------------------------------------+|| >|||| Ebs |||| >|||+---------------------------------+---------------------------------------+||| >|||| DeleteOnTermination | True |||| >|||| Encrypted | False |||| >|||| SnapshotId | snap-0d99bef0dcbbf092f |||| >|||| VolumeSize | 10 |||| >|||| VolumeType | gp2 |||| >|||+---------------------------------+---------------------------------------+||| >``` > >The new format has images built in the past month, whereas the old format hasn't had an AMI built in 2 years. > >/cc @hakman Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.