-
Notifications
You must be signed in to change notification settings - Fork 237
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
feat: adding stateless CNI pipeline test #2914
base: master
Are you sure you want to change the base?
Conversation
8784e66
to
a00c923
Compare
...singletenancy/azure-cni-overlay-stateless/azure-cni-overlay-stateless-e2e-step-template.yaml
Outdated
Show resolved
Hide resolved
test/integration/manifests/cnsconfig/azurestatelesscnioverlaywindowsconfigmap.yaml
Outdated
Show resolved
Hide resolved
.../singletenancy/azure-cni-overlay-stateless/azure-cni-overlay-stateless-e2e-job-template.yaml
Show resolved
Hide resolved
...singletenancy/azure-cni-overlay-stateless/azure-cni-overlay-stateless-e2e-step-template.yaml
Outdated
Show resolved
Hide resolved
...singletenancy/azure-cni-overlay-stateless/azure-cni-overlay-stateless-e2e-step-template.yaml
Show resolved
Hide resolved
|
||
- job: ${{ parameters.name }}_windows | ||
displayName: Azure CNI Overlay Test Suite | Windows - (${{ parameters.name }}) | ||
dependsOn: ${{ parameters.name }}_linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to modify the depends on after ewmoving linux stages
- job: failedE2ELogs_linux | ||
displayName: "Linux Failure Logs" | ||
dependsOn: | ||
- ${{ parameters.name }}_linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing this
scriptType: "bash" | ||
addSpnToEnvironment: true | ||
inlineScript: | | ||
set -e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will add nodepool after the cluster creation
name: "kubeconfig" | ||
displayName: "Set Kubeconfig" | ||
|
||
- ${{ if eq(parameters.os, 'linux') }}: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the test belo need to be run on windows
26e0c9f
to
7e98835
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also would like to see a passing pipeline run to be sure
...singletenancy/azure-cni-overlay-stateless/azure-cni-overlay-stateless-e2e-step-template.yaml
Outdated
Show resolved
Hide resolved
bf25b66
to
a8a0251
Compare
1359ef1
to
5ba93d5
Compare
6a34418
to
e47fd99
Compare
- script: | | ||
echo "validate pod IP assignment before CNS restart" | ||
kubectl get pod -owide -A | ||
echo "validate pod state before CNS restarts" | ||
cd test/integration/load | ||
CNI_TYPE=stateless go test -timeout 30m -tags load -run ^TestValidateState$ | ||
kubectl rollout restart ds azure-cns -n kube-system | ||
kubectl rollout status ds azure-cns -n kube-system | ||
kubectl get pod -owide -A | ||
echo "validate pods after CNS restart" | ||
CNI_TYPE=stateless go test -timeout 30m -tags load -run ^TestValidateState$ | ||
name: "restartCNS_ValidatePodState" | ||
displayName: "Restart CNS and validate pod state" | ||
retryCountOnTaskFailure: 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is contained within make test-load
. Should be removed.
clusterType: overlay-byocni-up | ||
clusterName: "statelesswin" | ||
vmSize: Standard_B2ms | ||
k8sVersion: "1.30" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this line should/will be removed once #2924 is merged.
@@ -1125,18 +1126,23 @@ func (plugin *NetPlugin) Delete(args *cniSkel.CmdArgs) error { | |||
// network ID is passed in and used only for migration | |||
// otherwise, in stateless, we don't need the network id for deletion | |||
epInfos, err = plugin.nm.GetEndpointState(networkID, args.ContainerID) | |||
// if stateless CNI fail to get the endpoint from CNS for any reason other than Endpoint Not found | |||
if err != nil && !strings.Contains(err.Error(), "endpoint state could not be found in the statefile") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way we can tie this back to the defined error message?
ErrEndpointStateNotFound = errors.New("endpoint state could not be found in the statefile") |
for _, v := range cnsResult.Endpoints { | ||
for ifName, ip := range v.IfnameToIPMap { | ||
if ifName == "eth0" { | ||
cnsPodIps[ip.IPv4[0].IP.String()] = v.PodName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just wanted to confirm that ip.IPv4 will always have at least 1 item in it?
name: $(BUILD_POOL_NAME_DEFAULT) | ||
jobs: | ||
- job: ${{ parameters.name }}_windows | ||
displayName: Azure CNI Overlay Test Suite | Windows - (${{ parameters.name }}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we mention in the display name that this is for stateless?
inputs: | ||
kubectlVersion: latest | ||
|
||
- task: AzureCLI@1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we should only use AzureCLI@2
for anything new (also found below in this file)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e47fd99
to
2fb9949
Compare
This pull request is stale because it has been open for 2 weeks with no activity. Remove stale label or comment or this will be closed in 7 days |
2fb9949
to
cea8d32
Compare
cea8d32
to
582ce3c
Compare
Reason for Change:
Adding a pipline test for stateless CNI to check the cns State and the datapath
Notes: