Skip to content
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

PD test cases and readme update #1478

Merged

Conversation

jayanthvn
Copy link
Contributor

@jayanthvn jayanthvn commented Jun 2, 2021

What type of PR is this?
automation and documentation

Which issue does this PR fix:
n/a

What does this PR do / Why do we need it:
Updated readme for warm ip and minimum ip support with PD enabled and added traffic test case for pods with prefix.

If an issue # is not available please add repro steps and logs from IPAMD/CNI showing the issue:

Testing done on this change:

Yes.

Running Suite: VPC IPAMD Test Suite
===================================
Random Seed: 1622701519
Will run 5 of 20 specs

SSSSSSSSSSSSS
------------------------------
test warm target variables when warm IP target is set with PD enabled when WARM_IP_TARGET = 2
  should have 1 prefix
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:242
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true MINIMUM_IP_TARGET:0 WARM_IP_TARGET:2]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} MINIMUM_IP_TARGET:{} WARM_IP_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:136.352 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm IP target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:175
    when WARM_IP_TARGET = 2
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:236
      should have 1 prefix
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:242
------------------------------
test warm target variables when warm IP target is set with PD enabled when WARM_IP_TARGET = 16
  should have 1 prefix
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:251
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true MINIMUM_IP_TARGET:0 WARM_IP_TARGET:16]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} MINIMUM_IP_TARGET:{} WARM_IP_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:138.134 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm IP target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:175
    when WARM_IP_TARGET = 16
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:245
      should have 1 prefix
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:251
------------------------------
test warm target variables when warm IP target is set with PD enabled when MINIMUM_IP_TARGET = 2
  should have 1 prefix
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:260
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true MINIMUM_IP_TARGET:2 WARM_IP_TARGET:0]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} MINIMUM_IP_TARGET:{} WARM_IP_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:144.144 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm IP target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:175
    when MINIMUM_IP_TARGET = 2
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:254
      should have 1 prefix
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:260
------------------------------
test warm target variables when warm IP target is set with PD enabled when MINIMUM_IP_TARGET = 16
  should have 1 prefixe
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:269
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true MINIMUM_IP_TARGET:16 WARM_IP_TARGET:0]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} MINIMUM_IP_TARGET:{} WARM_IP_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:146.148 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm IP target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:175
    when MINIMUM_IP_TARGET = 16
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:263
      should have 1 prefixe
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:269
------------------------------
test warm target variables when warm IP target is set with PD enabled when MINIMUM_IP_TARGET = 6 and WARM_IP_TARGET = 10
  should have 1 prefix
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:278
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true MINIMUM_IP_TARGET:10 WARM_IP_TARGET:6]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} MINIMUM_IP_TARGET:{} WARM_IP_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:132.133 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm IP target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:175
    when MINIMUM_IP_TARGET = 6 and WARM_IP_TARGET = 10
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:272
      should have 1 prefix
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:278
------------------------------
SS
Ran 5 of 20 Specs in 700.620 seconds
SUCCESS! -- 5 Passed | 0 Failed | 0 Pending | 15 Skipped
PASS | FOCUSED

Ginkgo ran 1 suite in 11m47.525511023s
Test Suite Passed

Prefix target -

Running Suite: VPC IPAMD Test Suite
===================================
Random Seed: 1622748099
Will run 2 of 22 specs

SSSSSSSSSSSSSSS
------------------------------
test warm target variables when warm prefix target is set with PD enabled when WARM_PREFIX_TARGET = 2
  should have 2 free prefixes
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:346
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true WARM_PREFIX_TARGET:2]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} WARM_PREFIX_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:148.342 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm prefix target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:283
    when WARM_PREFIX_TARGET = 2
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:341
      should have 2 free prefixes
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:346
------------------------------
test warm target variables when warm prefix target is set with PD enabled when WARM_PREFIX_TARGET = 0
  should have no free prefixes
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:354
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true WARM_PREFIX_TARGET:0]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} WARM_PREFIX_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:166.152 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm prefix target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:283
    when WARM_PREFIX_TARGET = 0
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:349
      should have no free prefixes
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:354
------------------------------
SSSSS
Ran 2 of 22 Specs in 318.169 seconds
SUCCESS! -- 2 Passed | 0 Failed | 0 Pending | 20 Skipped
PASS | FOCUSED

Ginkgo ran 1 suite in 5m25.020539668s
Test Suite Passed

Prefix target and warm IP/min IP co-existence -

Running Suite: VPC IPAMD Test Suite
===================================
Random Seed: 1622751536
Will run 7 of 27 specs

SSSSSSSSSSSSS
------------------------------
test warm target variables when warm prefix target is set with PD enabled when WARM_PREFIX_TARGET = 2
  should have 2 free prefixes
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:345
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true WARM_PREFIX_TARGET:2]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} WARM_PREFIX_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:130.360 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm prefix target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:282
    when WARM_PREFIX_TARGET = 2
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:340
      should have 2 free prefixes
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:345
------------------------------
test warm target variables when warm prefix target is set with PD enabled when WARM_PREFIX_TARGET = 0
  should have no free prefixes
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:353
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true WARM_PREFIX_TARGET:0]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} WARM_PREFIX_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:134.126 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm prefix target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:282
    when WARM_PREFIX_TARGET = 0
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:348
      should have no free prefixes
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:353
------------------------------
test warm target variables when warm prefix, warm IP and min IP target is set with PD enabled when WARM_IP_TARGET = 2 and WARM_PREFIX_TARGET = 1
  should have 1 prefix
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:427
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true MINIMUM_IP_TARGET:0 WARM_IP_TARGET:2 WARM_PREFIX_TARGET:1]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} MINIMUM_IP_TARGET:{} WARM_IP_TARGET:{} WARM_PREFIX_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:154.293 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm prefix, warm IP and min IP target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:357
    when WARM_IP_TARGET = 2 and WARM_PREFIX_TARGET = 1
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:420
      should have 1 prefix
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:427
------------------------------
test warm target variables when warm prefix, warm IP and min IP target is set with PD enabled when WARM_IP_TARGET = 16 and WARM_PREFIX_TARGET = 0
  should have 1 prefix
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:437
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true MINIMUM_IP_TARGET:0 WARM_IP_TARGET:16 WARM_PREFIX_TARGET:0]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} MINIMUM_IP_TARGET:{} WARM_IP_TARGET:{} WARM_PREFIX_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:164.189 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm prefix, warm IP and min IP target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:357
    when WARM_IP_TARGET = 16 and WARM_PREFIX_TARGET = 0
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:430
      should have 1 prefix
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:437
------------------------------
test warm target variables when warm prefix, warm IP and min IP target is set with PD enabled when MINIMUM_IP_TARGET = 2 and WARM_PREFIX_TARGET = 2
  should have 1 prefix
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:447
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true MINIMUM_IP_TARGET:2 WARM_IP_TARGET:0 WARM_PREFIX_TARGET:2]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} MINIMUM_IP_TARGET:{} WARM_IP_TARGET:{} WARM_PREFIX_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:154.144 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm prefix, warm IP and min IP target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:357
    when MINIMUM_IP_TARGET = 2 and WARM_PREFIX_TARGET = 2
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:440
      should have 1 prefix
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:447
------------------------------
test warm target variables when warm prefix, warm IP and min IP target is set with PD enabled when MINIMUM_IP_TARGET = 16 and WARM_PREFIX_TARGET = 0
  should have 1 prefixe
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:457
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true MINIMUM_IP_TARGET:16 WARM_IP_TARGET:0 WARM_PREFIX_TARGET:0]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} MINIMUM_IP_TARGET:{} WARM_IP_TARGET:{} WARM_PREFIX_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:148.305 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm prefix, warm IP and min IP target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:357
    when MINIMUM_IP_TARGET = 16 and WARM_PREFIX_TARGET = 0
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:450
      should have 1 prefixe
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:457
------------------------------
test warm target variables when warm prefix, warm IP and min IP target is set with PD enabled when MINIMUM_IP_TARGET = 6, WARM_IP_TARGET = 10 and WARM_PREFIX_TARGET = 1
  should have 1 prefix
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:467
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true MINIMUM_IP_TARGET:10 WARM_IP_TARGET:6 WARM_PREFIX_TARGET:1]
STEP: updating the daemon set with new environment variable
STEP: verifying in node ip-192-168-25-13.us-west-2.compute.internal but pod's IP 192.168.13.0 address belongs to node name ip-192-168-25-13.us-west-2.compute.internal
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:{} MINIMUM_IP_TARGET:{} WARM_IP_TARGET:{} WARM_PREFIX_TARGET:{}]
STEP: updating the daemon set with new environment variable

• [SLOW TEST:161.791 seconds]
test warm target variables
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:31
  when warm prefix, warm IP and min IP target is set with PD enabled
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:357
    when MINIMUM_IP_TARGET = 6, WARM_IP_TARGET = 10 and WARM_PREFIX_TARGET = 1
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:460
      should have 1 prefix
      /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/ipamd/warm_target_test.go:467
------------------------------
SSSSSSS
Ran 7 of 27 Specs in 1051.882 seconds
SUCCESS! -- 7 Passed | 0 Failed | 0 Pending | 20 Skipped
PASS | FOCUSED

Ginkgo ran 1 suite in 17m38.817560796s
Test Suite Passed

Traffic with PD enable -> disable

STEP: creating test namespace
STEP: creating deployment
STEP: Setting PD - true
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:true]
STEP: updating the daemon set with new environment variable
successfully created server deployment
successfully created metric server pod
successfully fetched list of pod belonging to deployment
successfully created traffic client
successfully fetched the metrics from metric server
SuccessRate: 100
• [SLOW TEST:190.514 seconds]
Test pod networking with prefix delegation enabled <-> disabled
/home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/cni/pod_traffic_test_PD_toggle.go:29
  when testing TCP traffic between client and server pods on enabling PD
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/cni/pod_traffic_test_PD_toggle.go:74
    should have 100% success rate
    /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/cni/pod_traffic_test_PD_toggle.go:81
------------------------------
Test pod networking with prefix delegation enabled <-> disabled when testing TCP traffic between client and server pods on disabling PD
  should have 100% success rate
  /home/varavaj/workspace/VPCCNI_test/src/EKSDataPlaneCNIv1/test/integration-new/cni/pod_traffic_test_PD_toggle.go:108
STEP: Setting PD - false
STEP: getting the aws-node daemon set in namesapce kube-system
STEP: setting the environment variables on the ds to map[ENABLE_PREFIX_DELEGATION:false]
STEP: updating the daemon set with new environment variable
successfully created server deployment
successfully created metric server pod
successfully fetched list of pod belonging to deployment
successfully created traffic client
successfully fetched the metrics from metric server
SuccessRate: 100

Automation added to e2e:

Yes

Will this break upgrades or downgrades. Has updating a running cluster been tested?:
No

Does this change require updates to the CNI daemonset config files to work?:

No

Does this PR introduce any user-facing change?:

No


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jayanthvn jayanthvn changed the title Traffic test case and readme update PD test cases and readme update Jun 3, 2021
test/integration-new/cni/pod_traffic_test_PD_enabled.go Outdated Show resolved Hide resolved
test/integration-new/cni/pod_traffic_test_PD_enabled.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
docs/prefix-and-ip-target.md Outdated Show resolved Hide resolved
docs/prefix-and-ip-target.md Show resolved Hide resolved
docs/prefix-and-ip-target.md Show resolved Hide resolved
@jayanthvn jayanthvn merged commit 39376f3 into aws:prefix-delegation-preview Jun 9, 2021
@jayanthvn jayanthvn added this to the v1.9.0 milestone Jun 10, 2021
jayanthvn added a commit that referenced this pull request Jun 24, 2021
…ter (#1516)

* [Preview] Prefix delegation feature development (#1434)

* ENABLE_PREFIX_DELEGATION knob

WARM_PREFIX_TARGET knob

cr https://code.amazon.com/reviews/CR-40610031

* PD changes - dev only

* Cooldown prefix IP

* minor fixes to support prefix count

* Code cleanup

* Handle few corner cases

* Nitro based check

* With custom networking, do not get prefix for primary ENI

* Code refactor

* Handle graceful upgrade/enable PD from disable PD

* code refactoring

* Code refactoring

* fix computing too low IPs

* UT for prefix store

* Fix UTs and handle CR comments

* Clean up SDK code and fix model code generation

* fix format and merge induced error

* Merge broke the code

* Fix Dockerfile.test

* Added IPAMD UTs and fixed removeENI total count

* Couple more IPAMD UTs for PD

* UTs for awsutils/imds

* Handle graceful PD enable to disable knob

* get prefix list for non-pd case

* Prevent reconcile of prefix IPs in IP datastore

* Handle disable scenario

* fix formatting

* clean up comment

* Remove unnecessary debugs

* Handle PR comments

* formatting fix

* Remodelled PD datastore

* Fix up UTs and fix Prefix nil

* formatting

* PR comments - minor cosmetic changes

* removed the sdk override from makefile

* Internal repo merge added these lines

* Update config file

* Handle wrapper of DescribeNetworkInterfacesWithContext to take one eni

* RemoveUnusedENIFromStore was not accounting for prefixes deleted

* Removed hardcoding of 16

* Code refactor - merge ENI's secondary and prefix store into single store of CIDRs  (#1471)

* Code refactor - merge to single DB

* remove few debugs

* remove prefix store files

* PR comments

* Fix up CR comments

* formatting

* Updated UT cases

* UT and formatting

* Minor fixes

* Minor comments

* Updated /32 store term

* remove unused code

* Multi-prefix and WARM/MIN IP targets support with PD (#1477)

* Multi-pd and WARM targets support

* cleanup

* Updated variable names

* Default prefix count to -1

* Get stats should be computed on the fly since CIDR pool can have /32 or /28

* Support for warm prefix 0

* code review comments

* PD test cases and readme update (#1478)

* Traffic test case and readme update

* Added testcases for warm ip/min ip with PD

* Testcases for prefix count

* Testcase for warm prefix along with warm ip/min ip

* Updated traffic test case while PD mode is flipped

* Fix minor comments

* pr comments

* added pods per eni

* fix up count

* Support mixed instances with PD (#1483)

* Support mixed instances with PD

* fix up the log

* Optimization for prefixes allocation (#1500)

* optimization for prefixes

Prefix store optimization

* pr comment

* Fixup eni allocation with warm targets (#1512)

* Fixup eni allocation with warm targets

* fixup cidr count

* code comments and warm prefix 0

* Default WARM_PREFIX_TARGET to 1 (#1515)

* Handle prefix target 0

* pr commets

* Fix up UTs, was failing because of vendor

* No need to commit this

* make format

* needed for UT workflow

* IMDS code refactor

* PR comments - v1

Error with merge

* PR comments v2

* PR comments - v3

* Update logs

* PR comments - v4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants