WINC-805: Use Windows Server 2019 in aws-e2e-operator test#29791
Conversation
|
Skipping CI for Draft Pull Request. |
11642a4 to
8de62f0
Compare
|
/lgtm |
This commit leverage the environment variables introduced in openshift/release#29791 to allow a parameter-based configuration for the machine and container images used in the e2e test suit.
|
/remove-lgtm |
8de62f0 to
ae817eb
Compare
There was a problem hiding this comment.
IMO this is embedding too much logic within the release repo. We shouldn't need to open a release PR if we want to change the container image being used. I'd suggest sticking with a single env var which if set indicates 2019 should be used.
There was a problem hiding this comment.
Everything is about context and in this context, we need a specific variation of the configuration for one of the tests. The required logic could be explicit (as proposed) or implicit (defined by a flag as you recommend). A single env var should have enough context to explain its usage which in this case may complicate its definition.
For example, the name of the single env var could be WINDOWS_SERVER_2019_ENABLED which is tightened to a specific version of Windows Server (2019). The latter, cannot be extended to other versions, where we may end up with multiple env vars to support multiple versions, followed by several conditional statements in the WMCO's e2e code.
To change the "default" container image being used, no release PR is needed. To adjust the corner case, yes. Both cases, a PR is required.
The introduction of the VM_TEMPLATE env var for vSphere, was the first stepping stone towards moving the Windows Server image definition to the release repo for the e2e test. I feel the proposed env vars align with that approach.
There was a problem hiding this comment.
I would be more okay with this if it was just describing infrastructure, like the vSphere tests you point to do. But its not just infrastructure, you're moving part of the test workload definition to the release job as well with WINDOWS_CONTAINER_IMAGE. What happens if we need to include more changes to the tests which are different for 2019/2022, such as using runtimeclasses?
I want to avoid more logic being moved to the release repo. So I see two possible options here, either use a simple WINDOWS_SERVER_2019_ENABLED, or use the Windows node status to figure out the Windows server version. The first option is a lot simpler.
There was a problem hiding this comment.
To be honest, I lean towards the solution that requires no release repo changes. It seems doable to keep everything configured through the WMCO repo's e2e test suite.
One suggestion is to replace tc.hasCustomVXLAN with a flag isWindowsServer2022 in the testContext struct, setting it at the time of machineset creation in the e2e test suite. Might require some parsing of the machine set spec to see the OS version of the image being used.
There was a problem hiding this comment.
Makes sense, let me adjust that.
ae817eb to
be0539a
Compare
This commit leverage the environment variables introduced in openshift/release#29791 to allow a parameter-based configuration for the machine and container images used in the e2e test suit.
This commit leverage the environment variables introduced in openshift/release#29791 to allow a parameter-based configuration for the machine and container images used in the e2e test suit. (cherry picked from commit 419d49b)
This commit leverage the environment variables introduced in openshift/release#29791 to allow a parameter-based configuration for the machine and container images used in the e2e test suit.
be0539a to
d28f001
Compare
This commit adds an environment variable to the aws-e2e-operator test to cover Windows Server 2019 in one of the CI jobs, as it is a supported version.
d28f001 to
f27f329
Compare
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without Docker container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without Docker container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
|
/approve |
|
/lgtm |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jrvaldes, mansikulkarni96, saifshaikh48, sebsoto The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@jrvaldes: Updated the following 4 configmaps:
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@jrvaldes: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without Docker container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without Docker container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without Docker container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without Docker container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without Docker container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without Docker container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without Docker container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without Docker container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without Docker container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without Docker container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suit. In addition, updates the logic to select the container image based on the cloud provider, where the default container image must be compatible with Windows Server 2022. Finally, adjusts the PowerShell cmdlets for WS2022 to avoid the escaping the double-quotes when default shell is Powershell.
This commit updates the AWS's EC2 AMI to use Windows Server 2022 base image without container runtime. The container runtime (containerd) is installed by WMCO. It also leverages the environment variable introduced in openshift/release#29791 to allow a parameter-based configuration for Windows Server version, where the machine and container images can be adjusted in the e2e test suite. In addition, adjusts the logic for PowerShell cmdlets to avoid escaping the double-quotes when default shell is PowerShell to taking into account the Windows Server version.
Adds an environment variable to the aws-e2e-operator test to
cover Windows Server 2019 in one of the CI jobs, as it is a supported version.