functest-kubernetes.git
2 years agoOutdated need to install python2.7-dev in CircleCI 73/73173/1 stable/v1.21
Cédric Ollivier [Tue, 11 Jan 2022 13:30:36 +0000 (14:30 +0100)]
Outdated need to install python2.7-dev in CircleCI

Change-Id: I6e25c16659f4a5653afbf9ed66d809cb638bce65
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit bdc882d05a70ec60fa6a4c9f8122ec29cae3f407)

2 years agoSet defaut provider to local back 48/72948/2
Cédric Ollivier [Tue, 5 Oct 2021 10:05:08 +0000 (12:05 +0200)]
Set defaut provider to local back

It apply the same rules as sonuoboy.
Any user is free to set skeleton or something else via testcases.yml.

Change-Id: Id999dfd5fbcf9bde9430e0f35c63c41e80c8044f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit b100b1254e06719bf1c779b9d53d0ac2da67fca4)

2 years agoFallback to item calculation 05/72905/1
Cédric Ollivier [Fri, 10 Sep 2021 15:59:25 +0000 (17:59 +0200)]
Fallback to item calculation

There is no final result if simple tag is called.

Change-Id: If86c5115e917e5790799fac4308cf08d57e87905
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit e2f255aaaddeb0b7bebd7a158b535aa0ecdf55e0)

2 years agoUpdate CNF_TESTSUITE_TAG to v0.15.0 04/72904/1
Cédric Ollivier [Fri, 10 Sep 2021 14:42:36 +0000 (16:42 +0200)]
Update CNF_TESTSUITE_TAG to v0.15.0

Change-Id: Icf13d49ec3c4fd65b0d089714728d67813633e49
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit fbd14c587ba477b7c9e3dcadabb295edbcc6ffbb)

2 years agoRemove sig_network_serial 67/72867/1
Cédric Ollivier [Thu, 26 Aug 2021 14:12:37 +0000 (16:12 +0200)]
Remove sig_network_serial

PerformanceDNS is now optional [1] and DNS configMap nameserver makes
operations on coredns which would break an living deployment [2].

sig_network_serial is now enpty and then can be safely removed.

[1] https://github.com/cntt-n/CNTT/pull/2580
[2] https://github.com/kubernetes/kubernetes/blob/c262d09bb7d22d62665aa215b5c6d1dd2a865007/test/e2e/network/dns_common.go#L238

Change-Id: I525cf894699a1d56f0b3cbb8e630d40ea3549b51
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 775135dd1ef01ab50a22846067bfdd87903f836e)

2 years agoFix parent container 63/72863/1
Cédric Ollivier [Thu, 26 Aug 2021 10:39:02 +0000 (12:39 +0200)]
Fix parent container

https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-security-v1.21-kube_hunter-run/30/console

Change-Id: I8d3263780c023d680d96f5ae18c2d76a188bdbfd
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2 years agoRemove SIG CLI testing 57/72857/1
Cédric Ollivier [Thu, 26 Aug 2021 08:02:06 +0000 (10:02 +0200)]
Remove SIG CLI testing

It conforms to https://github.com/cntt-n/CNTT/pull/2579

Change-Id: Ic5d6e6914fc34e8a5de9403c1b72ad251d97d759
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 0a68c0cb77c6d9967e5e33e59a737ef686b2e916)

2 years agoSkip git_repo testing 70/72770/1
Cédric Ollivier [Fri, 9 Jul 2021 12:14:54 +0000 (14:14 +0200)]
Skip git_repo testing

As discussed in Kind [1], this test is for the deprecated in-tree GitRepo volume type.
"we shouldn't expend resources on these volume types".

[1] https://github.com/kubernetes-sigs/kind/issues/2356
[2] https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-smoke-latest-sig_storage_serial-run/16/console

Change-Id: I9951f49208376652e8d580b3086f72994424cf80
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 89dfd5adb8a1e4ac8a1278e421ef7fd90847c65e)

2 years agoPrint cnf_testsuite console on exceptions 62/72762/1
Cédric Ollivier [Wed, 7 Jul 2021 13:23:36 +0000 (15:23 +0200)]
Print cnf_testsuite console on exceptions

Change-Id: I3c20993e1cbb644546ac89a8b4b7d1cfd98b0a80
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit f6d5010cd34db6cd639a7fcf5b6183aa117acacf)

2 years agoRemove k8s.io from ansible/site.yml 11/72711/1
Cédric Ollivier [Fri, 25 Jun 2021 16:02:51 +0000 (18:02 +0200)]
Remove k8s.io from ansible/site.yml

It's now up-to-date.
It also fixes ansible/site.cntt.yml

Change-Id: I2e3ad76f4b0f0064b8ce75ed6718eff6466c649f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 34b964032658014ed7d788c2fe1ed9e453f18d50)

2 years agoFix the docker tag in README.md 08/72708/1
Cédric Ollivier [Fri, 25 Jun 2021 09:09:28 +0000 (11:09 +0200)]
Fix the docker tag in README.md

Change-Id: I19a0f3aa10d50402e2cdcd136a38080e2a0d4fc0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2 years agoMake clear all skipped Features according to CNTT RA2 Chapter6 94/72694/1
Cédric Ollivier [Sun, 20 Jun 2021 11:51:43 +0000 (13:51 +0200)]
Make clear all skipped Features according to CNTT RA2 Chapter6

Change-Id: I57d414902e973d7bcbb67ba12d10b727b2ec4785
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 9e025ffa82fad7a5b49663a30987dcf03bb44ca3)

2 years agoAllow passing extra opts to e2e.test 90/72690/1
Cédric Ollivier [Sun, 20 Jun 2021 09:59:37 +0000 (11:59 +0200)]
Allow passing extra opts to e2e.test

E2E_TEST_OPTS now allows setting runtime opts.
For instance, Functest K8s gates ask for -container-runtime containerd

Change-Id: I4f6e1caf57590b16d0c01324dadb040f67f3cee4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 6ec9d5167032ed82e32cde592f98a4bcffca4c00)

2 years agoAdd enchant in travis-ci 86/72586/1
Cédric Ollivier [Wed, 26 May 2021 14:50:09 +0000 (16:50 +0200)]
Add enchant in travis-ci

Change-Id: I96c59f943ee58dec60b3a9376673c5a69c66747f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 2f3c5b67b1294ba81afd0c467f9db1f6e5266ed7)

2 years agoSwitch to focal in travis-ci gates 79/72579/1
Cédric Ollivier [Tue, 25 May 2021 14:16:47 +0000 (16:16 +0200)]
Switch to focal in travis-ci gates

Change-Id: Ifcd3f1df7116dc665bf8d3316ce2bc03e2db8c5d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit e21ef7b6db49c25936f7128605145fded723e03b)

2 years agoUpdate cnf_testsuite to v0.11.2 72/72572/1
Cédric Ollivier [Tue, 25 May 2021 04:54:22 +0000 (06:54 +0200)]
Update cnf_testsuite to v0.11.2

https://github.com/cncf/cnf-testsuite/releases/tag/v0.11.2

Change-Id: Id3a5ea98260859f7fe5aba6ecf02d09905610dda
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit c35c6d443eb93db318c3436d995809dfe7e8389f)

3 years agoBenchmark Kubernetes Networking Performance 96/72496/1
Cédric Ollivier [Sun, 9 May 2021 15:15:33 +0000 (17:15 +0200)]
Benchmark Kubernetes Networking Performance

https://github.com/kubernetes/perf-tests/tree/master/network/benchmarks/netperf

Change-Id: I6facd567f1c52c5949b53484a1fb107dcf34d622
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 3b5c1b115e234d636cb4f2a17d27ced872fee924)

3 years agoUpdate test case results in README 80/72480/1
Cédric Ollivier [Tue, 4 May 2021 22:36:07 +0000 (00:36 +0200)]
Update test case results in README

Change-Id: I315b077ec8f517d8fac71268de19476cccdc37d1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoUpdate skip Feature lists 79/72479/1
Cédric Ollivier [Tue, 4 May 2021 22:27:22 +0000 (00:27 +0200)]
Update skip Feature lists

Change-Id: I4fdc7bd31ef576da4a6405c48ade20c4d5ebb687
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoFix cnf-conformance results filename 71/72471/1
Cédric Ollivier [Mon, 3 May 2021 14:03:08 +0000 (16:03 +0200)]
Fix cnf-conformance results filename

It also decreases criteria to 1 due to massive changes (dockerd).

Change-Id: Ic420139e6355debae183a77d6b0c574801b05076
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit a025fb0ac12cd86ad4fb6dd05867fb273cdbb652)

3 years agoUpdate cnf-conformance to cnf-testsuite 63/72463/1
Cédric Ollivier [Mon, 3 May 2021 07:32:59 +0000 (09:32 +0200)]
Update cnf-conformance to cnf-testsuite

https://github.com/cncf/cnf-conformance
https://github.com/cncf/cnf-testsuite

Change-Id: I77983e0f04781a92b34afcf82f21366384782964
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 959da00d3e1c4d406bc59995c0ea93add1ec48d3)

3 years agoReduce number of threads 60/72460/1
Cédric Ollivier [Mon, 3 May 2021 07:33:44 +0000 (09:33 +0200)]
Reduce number of threads

It passed successfully with 10 threads (more doesn't reduce the
overall duration so much).

Change-Id: I9013897883a40ebaf699c9a180f1bc8a6a34505c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoUse stable v1.21 57/72457/1
Cédric Ollivier [Sat, 1 May 2021 14:15:03 +0000 (16:15 +0200)]
Use stable v1.21

Change-Id: If0413d6252bade49222c8ee00f30e79dd82f1203
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAllow publishing Functest K8s v1.21 containers 55/72455/1
Cédric Ollivier [Sat, 1 May 2021 13:24:16 +0000 (15:24 +0200)]
Allow publishing Functest K8s v1.21 containers

Change-Id: Idf6b5db4ac05afc18c360a54219ea914ed9ea092
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoMock os.makedirs 47/72447/1
Cédric Ollivier [Tue, 20 Apr 2021 15:19:06 +0000 (17:19 +0200)]
Mock os.makedirs

Change-Id: I5f9fd24421727cea474715f502670ae6f2c80b76
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 32d2ed700c449ba33a4060f55c2adadc2e76b070)

3 years agoSet defaultbranch=stable/v1.21 in .gitreview 46/72446/1
Cédric Ollivier [Sat, 1 May 2021 09:01:51 +0000 (11:01 +0200)]
Set defaultbranch=stable/v1.21 in .gitreview

Change-Id: I818821ced3878b34d9fa7291ceae3b6b37bb97c3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoInstall setuptools_scm before xrally 18/72418/1
Cédric Ollivier [Tue, 20 Apr 2021 12:30:56 +0000 (14:30 +0200)]
Install setuptools_scm before xrally

Else upper-constraints basically fails.

Change-Id: I022f101e2ed44708afd0b88d47b77d2f7ca85458
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 75170fc0b528c7e182b8164d5905fcbaa6957faa)

3 years agoSkip Network.should.set.TCP.CLOSE_WAIT.timeout 75/72375/1
Cédric Ollivier [Wed, 14 Apr 2021 22:00:33 +0000 (00:00 +0200)]
Skip Network.should.set.TCP.CLOSE_WAIT.timeout

https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes/sig-release/release-branch-jobs/1.21.yaml

Change-Id: I9d8065fe84d3f6f5e74bf9b46bc8c85ad985c8b1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoRemove sig_node_serial as it's fully disruptive 69/72369/2
Cédric Ollivier [Wed, 14 Apr 2021 13:29:23 +0000 (15:29 +0200)]
Remove sig_node_serial as it's fully disruptive

There is no other test when NoExecuteTaintManager is skipped.
http://artifacts.opnfv.org/functest-kubernetes/T94WVHSMW8ZH/functest-kubernetes-opnfv-functest-kubernetes-smoke-kali-sig_scheduling_serial-run-6/sig_scheduling_serial/e2e.log

Change-Id: I09a81ec973b26fc6de32df6788e73c7e529ecbf0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoRun Feature:Networking-IPv6 Feature:IPv6DualStackAlphaFeature 49/72349/1
Cédric Ollivier [Tue, 6 Apr 2021 12:13:58 +0000 (14:13 +0200)]
Run Feature:Networking-IPv6 Feature:IPv6DualStackAlphaFeature

kind master allows dualstack since [1]

[1] https://github.com/kubernetes-sigs/kind/commit/31e595678ed008ac657756d650729c8fac9b3551

Change-Id: Ia2caeee1380ee9c31d3c5717dfa9c13b0de0506c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoRemove [k8s.io] testing 48/72348/1
Cédric Ollivier [Tue, 6 Apr 2021 09:57:13 +0000 (11:57 +0200)]
Remove [k8s.io] testing

v1.21 enforces sig ownership of all e2e tests [1].

[1] https://github.com/kubernetes/kubernetes/issues/98326

Change-Id: Ibaac8ea38f54b08675a587afd9e138e65092997a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoSwitch to latest-1.21 45/72345/1
Cédric Ollivier [Mon, 5 Apr 2021 08:58:29 +0000 (10:58 +0200)]
Switch to latest-1.21

Else it would consider v1.22.0-alpha.0 (N+2).

Change-Id: Ie98418fc7068beb338a057af8ce8e092150cb696
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoUpdate test case list 41/72341/1
Cédric Ollivier [Sun, 4 Apr 2021 12:54:43 +0000 (14:54 +0200)]
Update test case list

Change-Id: Ide5fdd5967ce11847f9672259b79b6068c228848
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd k8s_io and serial test cases 37/72337/1
Cédric Ollivier [Sun, 4 Apr 2021 12:45:10 +0000 (14:45 +0200)]
Add k8s_io and serial test cases

It completes the first sig test cases.

Change-Id: I6b018177e93efe60f9de67f384e388d2a584536c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoMerge sig_network_features in sig_network 33/72333/2
Cédric Ollivier [Sun, 4 Apr 2021 10:01:15 +0000 (12:01 +0200)]
Merge sig_network_features in sig_network

Change-Id: I33516a7b0f280355c40aa821738a0625e4fae93a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoSpit conformance into 2 test cases 29/72329/2
Cédric Ollivier [Sat, 3 Apr 2021 09:14:51 +0000 (11:14 +0200)]
Spit conformance into 2 test cases

It hugely decreases the overall test duration.
(10 + 15 << 120)

Change-Id: I534f6d09956bb51c32ad35c5a1baff8ebbfabb3d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoFix etcd image repository in etcd-depl.yaml 24/72324/1
Cédric Ollivier [Sat, 3 Apr 2021 07:37:06 +0000 (09:37 +0200)]
Fix etcd image repository in etcd-depl.yaml

Change-Id: I4447b4030b141b691b3a2cdf05c97c79de9eb72a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoFix name in chronos-depl.yaml 18/72318/1
Cédric Ollivier [Fri, 2 Apr 2021 14:05:41 +0000 (16:05 +0200)]
Fix name in chronos-depl.yaml

Change-Id: Ia6972a216daaa9d807058b34b55615cab2c09b64
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoRun opnfv/functest-kubernetes-smoke sequentially 17/72317/1
Cédric Ollivier [Fri, 2 Apr 2021 11:12:52 +0000 (13:12 +0200)]
Run opnfv/functest-kubernetes-smoke sequentially

Now multithreading is enabled at test case level.

Change-Id: I17a9bdb07216cd645483a0a893da502abee2ade0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoProperly manage e2e parallel testing 04/72304/1
Cédric Ollivier [Fri, 2 Apr 2021 07:52:38 +0000 (09:52 +0200)]
Properly manage e2e parallel testing

It sets nodes=25 to run all tests in parallel.
It also beautifies all testcases.yml

Change-Id: I3ecd8899e957c0efbef34ab0409c2b4d557c9425
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoRather use skeleton instead of local 03/72303/1
Cédric Ollivier [Thu, 1 Apr 2021 23:05:48 +0000 (01:05 +0200)]
Rather use skeleton instead of local

“skeleton”: cluster is accessed via the Kubernetes API and nothing
else.

https://kubernetes.io/blog/2019/03/22/kubernetes-end-to-end-testing-for-everyone/

Change-Id: Iea8b65b2ac55d40572c0078b7a9a956d1c54d62a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoDisable sig_scheduling as serial 98/72298/1
Cédric Ollivier [Wed, 31 Mar 2021 17:55:32 +0000 (19:55 +0200)]
Disable sig_scheduling as serial

All remaining sig-scheduling tests are serial and for the time
Functest doesn't run serial test cases.

https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-smoke-latest-sig_scheduling-run/13/console

Change-Id: I3f09077a1873b92120daa3a97cbb6f68558e2b4d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoRemove the useless Feature prefix 71/72271/1
Cédric Ollivier [Thu, 25 Mar 2021 13:44:35 +0000 (14:44 +0100)]
Remove the useless Feature prefix

Change-Id: Ibec3e1cee170a91a4333b3c625ae39cd0c4bbe11
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoMerge "Exlude Serial and Feature:Feature:StorageVersionAPI"
Cedric Ollivier [Thu, 25 Mar 2021 12:01:01 +0000 (12:01 +0000)]
Merge "Exlude Serial and Feature:Feature:StorageVersionAPI"

3 years agoMerge "Blacklist all alpha testing"
Cedric Ollivier [Thu, 25 Mar 2021 12:00:55 +0000 (12:00 +0000)]
Merge "Blacklist all alpha testing"

3 years agoExlude Serial and Feature:Feature:StorageVersionAPI 70/72270/2
Cédric Ollivier [Thu, 25 Mar 2021 09:57:32 +0000 (10:57 +0100)]
Exlude Serial and Feature:Feature:StorageVersionAPI

Serial asks to split the testcases into 2 runs.

https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-smoke-latest-sig_api_machinery-run/7/console

Change-Id: I58f9d9023f596141bbefae8339043f813a124854
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoBlacklist all alpha testing 69/72269/1
Cédric Ollivier [Thu, 25 Mar 2021 09:55:16 +0000 (10:55 +0100)]
Blacklist all alpha testing

Change-Id: Ifb9edb0d70f285825eb2cfee05a53590367b2650
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years ago Provide support for air gapped env for e2e 63/72263/7
Sylvain Desbureaux [Wed, 24 Mar 2021 07:44:29 +0000 (08:44 +0100)]
 Provide support for air gapped env for e2e

 Sometimes, tested Kubernetes doesn't have direct access to Internet but
 access through repository mirrors.
 This patch handles this case for e2e test case.

Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: Iaa2960ad03aae1fff859d41bcd6ddf3176658f8e

3 years agoProvide support for air gapped env for ims 62/72262/8
Sylvain Desbureaux [Wed, 24 Mar 2021 07:23:03 +0000 (08:23 +0100)]
Provide support for air gapped env for ims

Sometimes, tested Kubernetes doesn't have direct access to Internet but
access through repository mirrors.

This patch handles this case for ims test cases.

Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I3b5e78fcf43ca7af6bcfd2d87fa4bb0705373697

3 years agoProvide support for air gapped env for security 61/72261/2
Sylvain Desbureaux [Wed, 24 Mar 2021 06:51:29 +0000 (07:51 +0100)]
Provide support for air gapped env for security

Sometimes, tested Kubernetes doesn't have direct access to Internet but
access through repository mirrors.
This patch handles this case for security test cases.

Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I699d065ee691596c4a5ccf06c22ea76ef00fe497

3 years agoAdd missing blackslashing 45/72245/1
Cédric Ollivier [Mon, 22 Mar 2021 08:37:13 +0000 (09:37 +0100)]
Add missing blackslashing

https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-smoke-leguer-sig_apps-run/2/console

Change-Id: I5cd41f2da49e59acd6bd06ded0c4e2178e7402b7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd sig_node 41/72241/1
Cédric Ollivier [Sun, 21 Mar 2021 13:46:40 +0000 (14:46 +0100)]
Add sig_node

It runs sig-node tests which are not included in K8s conformance.
It adds 38 single tests.

Change-Id: Idbd172517e705402632a7fadb4d4639b5f1ee2d1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd sig_cluster_lifecycle 26/72226/1
Cédric Ollivier [Sun, 21 Mar 2021 12:58:13 +0000 (13:58 +0100)]
Add sig_cluster_lifecycle

It runs sig-cluster-lifecycle tests which are not included in K8s conformance.
It adds 4 single tests.

Change-Id: I834523d753eec9bd570b8d4cc1cf3550b4a19bab
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd sig_instrumentation 25/72225/1
Cédric Ollivier [Sun, 21 Mar 2021 12:47:36 +0000 (13:47 +0100)]
Add sig_instrumentation

It runs sig-instrumentation tests which are not included in K8s conformance.
It adds 6 single tests.

Change-Id: Ic320f3bc7daed0aa2846a7ea672f13f3bec45f12
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd sig_scheduling 24/72224/1
Cédric Ollivier [Sun, 21 Mar 2021 12:30:30 +0000 (13:30 +0100)]
Add sig_scheduling

It runs sig-scheduling tests which are not included in K8s conformance.
It adds 19 single tests.

Change-Id: I9b34c327cc1079e401771b1fa77a6baeef24251c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd sig_cli 23/72223/1
Cédric Ollivier [Sun, 21 Mar 2021 12:18:49 +0000 (13:18 +0100)]
Add sig_cli

It runs sig-cli tests which are not included in K8s conformance.
It adds 34 single tests.

Change-Id: I4beaf9d08d151d06fc3f3c05770c51dcc68f762a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd sig-apps 22/72222/1
Cédric Ollivier [Sun, 21 Mar 2021 11:59:13 +0000 (12:59 +0100)]
Add sig-apps

It runs sig-apps tests which are not included in K8s conformance.

Change-Id: Ic02e75b94e6cd923f05af16eb98706599fd26f59
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd sig-auth 21/72221/1
Cédric Ollivier [Sun, 21 Mar 2021 11:52:46 +0000 (12:52 +0100)]
Add sig-auth

It runs sig-auth tests which are not included in K8s conformance.

Change-Id: I5684dbcb5d61866f5ae1cb483f3a119b8d3c7807
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd sig-api-machinery 20/72220/1
Cédric Ollivier [Sun, 21 Mar 2021 09:47:27 +0000 (10:47 +0100)]
Add sig-api-machinery

It runs sig-api-machinery which are not included in K8s conformance.
It adds 97 single tests.

Change-Id: I76949b75e2d6c59d21f459f8fc358e806af6f23d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoProvide support for air gapped env for rally 62/72162/4
Sylvain Desbureaux [Tue, 16 Mar 2021 13:09:29 +0000 (14:09 +0100)]
Provide support for air gapped env for rally

Sometimes, tested Kubernetes doesn't have direct access to Internet but
access through repository mirrors.
This patch handles this case for rally test case.

There's two ways for providing the repository mirrors:

- Give an environment variable (`MIRROR_REPO`) which gives a repository
  mirro with all needed images.
- Gives an environment variable per needed repo:
  - `DOCKERHUB_REPO` for DockerHub repository (`docker.io`)
  - `GCR_REPO` for Google Cloud repository (`gcr.io`)
  - `K8S_GCR_REPO` for Kubernetes repository (`k8s.gcr.io`)

Needed images list has also been extracted so Kubernetes administrator can
easily upload these images to the mirror if the mirror also doesn't have
access to Internet.

Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I2ea6622b79f7e3c3c63c1441c4dab48e9bc4fb1a

3 years agoFix k8s.gcr.io/etcd tag (3.4.13-0) 57/72157/1
Cédric Ollivier [Mon, 15 Mar 2021 08:49:32 +0000 (09:49 +0100)]
Fix k8s.gcr.io/etcd tag (3.4.13-0)

Change-Id: Idbc520f1b196fd9d66dc57d32a543a6af7b73598
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agonit: highlight the release 89/72089/1
Cédric Ollivier [Wed, 17 Feb 2021 21:48:36 +0000 (22:48 +0100)]
nit: highlight the release

Change-Id: I09e3708d4afb477bdc767f124a778d0176f448a8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoMove former wiki to README.md 87/72087/1
Cédric Ollivier [Wed, 17 Feb 2021 21:37:28 +0000 (22:37 +0100)]
Move former wiki to README.md

https://wiki.opnfv.org/pages/viewpage.action?pageId=20742412

Change-Id: I75a9303b2ee5b2df66e0169b37408bb9ad881d5a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd Cargo as build dev 79/71979/1
Cédric Ollivier [Thu, 11 Feb 2021 07:53:41 +0000 (08:53 +0100)]
Add Cargo as build dev

https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-core-latest-build/2/console

Change-Id: Ic4ac415de09226d4ce2bb59a2790be5364efbf35
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoForce legacy pip resolver 78/71978/1
Cédric Ollivier [Wed, 10 Feb 2021 23:22:54 +0000 (00:22 +0100)]
Force legacy pip resolver

Change-Id: I6e3ad097333b529e4d80cbf52905e4e75cb96227
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoFix alpine version 56/71956/1
Cédric Ollivier [Wed, 10 Feb 2021 13:32:20 +0000 (14:32 +0100)]
Fix alpine version

It also install rust as it's now a build dependency.

Change-Id: I8fb11095b3fa29d40ec415c111015abd2dea2b34
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoUpgrade system first 50/71950/1
Cédric Ollivier [Wed, 10 Feb 2021 10:43:34 +0000 (11:43 +0100)]
Upgrade system first

Change-Id: I0120e6a368b033f2fb47257ff9dcc3fd8a58d243
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAllow parameterizing K8s versions 45/71845/1
Cédric Ollivier [Thu, 4 Feb 2021 11:57:09 +0000 (12:57 +0100)]
Allow parameterizing K8s versions

ONAP integration team asks to support all K8s versions.
A couple of OPNFV releases will allow testing 2 K8s versions.

Change-Id: Idb43cff0cc03cc9c17b290f7f1867e2c380c6319
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoRename sig_network_feature -> sig_network_features 00/71800/2
Cédric Ollivier [Tue, 26 Jan 2021 08:29:17 +0000 (09:29 +0100)]
Rename sig_network_feature -> sig_network_features

It also takes into account the last results (SCTP seems falky):
https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-smoke-latest-sig_network-run/1/console
https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-smoke-latest-sig_network_feature-run/3/console
https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-smoke-latest-sig_storage-run/1/console

Change-Id: I7d4b11462da33d20fd5ed00d870f1099b70f437b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoExport GINKGO_PARALLEL=y 97/71797/2
Cédric Ollivier [Mon, 25 Jan 2021 17:42:13 +0000 (18:42 +0100)]
Export GINKGO_PARALLEL=y

It would speedup the testing.

Change-Id: I084bcf0d44a060f65eb9549eab8dcbbf5a4cc9d5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoRun rally first 96/71796/1
Cédric Ollivier [Mon, 25 Jan 2021 17:00:10 +0000 (18:00 +0100)]
Run rally first

After all tests are based on e2e tests.

Change-Id: I727f40255ccc165f9a7da7fa7bdff1a629614d21
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd sig-storage 95/71795/1
Cédric Ollivier [Mon, 25 Jan 2021 16:32:36 +0000 (17:32 +0100)]
Add sig-storage

It runs the remaining sig-storage testing excluding the next labels:
Conformance (part of k8s_conformance), all features, all drivers and
Slow.

Change-Id: I486d8ecdfc46287f4774ba8acaa64d47fb1da287
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd sig_network 94/71794/1
Cédric Ollivier [Mon, 25 Jan 2021 11:20:22 +0000 (12:20 +0100)]
Add sig_network

It runs the remaining sig-network testing excluding the next labels:
Conformance (part of k8s_conformance), all features and load.balancer.

Change-Id: I708ff4690205196e5f69382890a39ea4fd5b6942
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd sig_network_feature 93/71793/1
Cédric Ollivier [Mon, 25 Jan 2021 09:13:44 +0000 (10:13 +0100)]
Add sig_network_feature

It verifies a couple of features by running a subset of e2e tests:
Ingress, Networking-IPv4, Networking-Performance, PerformanceDNS, SCTP
and NoSNAT. It excludes by default NetworkPolicy, Networking-IPv6,
IPv6DualStackAlphaFeature and Example. A couple of features may be
automatically skipped like NEG and kubemci.

Change-Id: I6efac39bb99c1deb8efe8e82d976d69d6540a9d1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoUpdate to alpine:3.13 90/71790/1
Cédric Ollivier [Thu, 21 Jan 2021 15:49:53 +0000 (16:49 +0100)]
Update to alpine:3.13

Change-Id: I6087facf8ac62de3460861fe69e8f5270cf5d922
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoUpdate cnf-conformance to v0.9.19 72/71772/1
Cédric Ollivier [Sun, 10 Jan 2021 14:03:44 +0000 (15:03 +0100)]
Update cnf-conformance to v0.9.19

It also adds configs needed by resilience.

https://github.com/cncf/cnf-conformance/releases/tag/v0.9.19

Change-Id: I94b1efc47c5ceef96bc8879a6c71f92db1f63bd2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoSwitch to latest (v1.21.0-alpha.0) 70/71770/1
Cédric Ollivier [Sat, 9 Jan 2021 21:53:22 +0000 (22:53 +0100)]
Switch to latest (v1.21.0-alpha.0)

Change-Id: I30d7e4c8861811bf405ae79eb6d6c7bf82226dd6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoUpdate to latest Kubernetes release 44/71744/1
Cédric Ollivier [Fri, 11 Dec 2020 16:16:18 +0000 (17:16 +0100)]
Update to latest Kubernetes release

Change-Id: Id2c05f8b425eeba1924bc2bc2688233beeb7457b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoUse pip==20.2.4 in tox venv 36/71736/1
Cédric Ollivier [Thu, 10 Dec 2020 18:11:46 +0000 (19:11 +0100)]
Use pip==20.2.4 in tox venv

pip 20.3 is disruptive and would lead to big changes in stable
branches.

Change-Id: Ic3770f4098c52b0d26bc62291c9e79e8ee81d107
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoSync with xrally_kubernetes 30/71530/1
Cédric Ollivier [Fri, 27 Nov 2020 08:06:16 +0000 (09:06 +0100)]
Sync with xrally_kubernetes

As upstream is fixed [1][2], it can partially revert
- Force Kubernetes 11.0 to please xrall_kubernetes
- Allow offline testing via xrally_kubernetes

[1] https://github.com/xrally/xrally-kubernetes/commit/2ffa85af2bff3438b6b23034b6ec6ee1de481090
[2] https://github.com/xrally/xrally-kubernetes/commit/8caf16cd017d475360b2345b3091a9881cd884d0

Change-Id: I43ca1966dcf61e55c45f13adf27ba5b0035d8fda
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAllow offline testing via xrally_kubernetes 54/71454/3
Cédric Ollivier [Sun, 22 Nov 2020 11:09:12 +0000 (12:09 +0100)]
Allow offline testing via xrally_kubernetes

It locally patches xrally_kubernetes before [1] is merged upstream.
It adds docker.io/appropriate/curl:edge in download_images.sh too.

[1] https://github.com/xrally/xrally-kubernetes/pull/51

Co-Authored-By: Tamas Lendvay <tamas.lendvay@nokia.com>
Change-Id: I82ea2c777cd4d8f24c38dbf32d66081846e3e9af
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoReduce cnf-conformance criteria 48/71448/1
Cédric Ollivier [Sun, 22 Nov 2020 00:40:44 +0000 (01:40 +0100)]
Reduce cnf-conformance criteria

It's considered as passed vs 95 out of 105 [1].

[1] http://artifacts.opnfv.org/functest-kubernetes/ACI2B7JDLFHI/functest-kubernetes-opnfv-functest-kubernetes-cnf-kali-cnf_conformance-run-16/functest-kubernetes.log

Change-Id: Ib16927cf269784daba1085a3e97fb611e869928f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoUpdate cnf_conformance to v0.9.4 41/71441/2
Cédric Ollivier [Sat, 21 Nov 2020 12:06:25 +0000 (13:06 +0100)]
Update cnf_conformance to v0.9.4

It removes all hacks bypassing a few former bugs (e.g. [1]) and adapts
to the new cnf-conformance result output logic.

It runs all workload tests as it's now proposed (k8s conformance
is already part of smoke) and select the latest coredns
cnf-conformance.yml taking latest helm repo changes into account.

It sets criteria 95 as all steps are considered as passed and a
overall result 100/105.

[1] https://github.com/cncf/cnf-conformance/issues/388

Change-Id: I95b7889b21b86961e7a1d0c84b13e0ae367cae44
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoSkip cnf_conformance till helm repos are fixed 33/71433/1
Cédric Ollivier [Fri, 20 Nov 2020 11:19:32 +0000 (12:19 +0100)]
Skip cnf_conformance till helm repos are fixed

Change-Id: Ie5b9aff6f56ca5cfd8501f142969f8a6246c4151
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoForce Kubernetes 11.0 to please xrall_kubernetes 32/71432/1
Cédric Ollivier [Fri, 20 Nov 2020 11:13:45 +0000 (12:13 +0100)]
Force Kubernetes 11.0 to please xrall_kubernetes

It will be reverted once xrally_kubernetes is ready.

Change-Id: If0ad5cd018ec4edeb8c150d789df051b3f55baed
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd timeout as needed by Gitlab CI/CD 80/71380/3
Cédric Ollivier [Thu, 12 Nov 2020 16:26:25 +0000 (17:26 +0100)]
Add timeout as needed by Gitlab CI/CD

Gitlab CI/CD sets 1h as default timeout.
The timeout is valid for both test cases even if only k8s_conformance
reaches 1h (XtestingCI design).

Change-Id: Ieaef1cefb3dfc7f9ca47b1ce8ec082409fa52604
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit f38caec124b925f8c633f9d8b4474bd1085638a2)

3 years agoSplit Gates in a dedicated site.yml 48/71348/2
Cédric Ollivier [Mon, 9 Nov 2020 15:28:49 +0000 (16:28 +0100)]
Split Gates in a dedicated site.yml

Change-Id: Idd4458cc003b1baef717bb87846081b9afe3976f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoSplit kube_bench_master and kube_bench_node in site.cntt.yml 72/71172/1
Cédric Ollivier [Wed, 23 Sep 2020 07:12:48 +0000 (09:12 +0200)]
Split kube_bench_master and kube_bench_node in site.cntt.yml

Change-Id: Ifb9a5ac2fac7286d5f3f5e677fc2a7ecda6ade25
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoStop hardcoding ims- as generate_name 71/71171/1
Cédric Ollivier [Tue, 22 Sep 2020 14:47:04 +0000 (16:47 +0200)]
Stop hardcoding ims- as generate_name

Change-Id: I3ea22a4050ff1eb609cffb61edc41c49fab44366
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoRedirect helm false warnings to logs 60/71160/1
Cédric Ollivier [Sun, 20 Sep 2020 16:28:36 +0000 (18:28 +0200)]
Redirect helm false warnings to logs

Helm fails when detecting arch if qemu.
time="2020-09-17T16:25:15Z" level=error msg="failure getting variant" error="getCPUInfo for pattern: Cpu architecture: not found"

https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-cnf-arm64-latest-helm_vims-run/1/console

Change-Id: Ida37062a780f9e2acf60035bf2d41fb8fbb61173
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd helm_vims in site.cntt.yml 44/71144/1
Cédric Ollivier [Wed, 16 Sep 2020 09:34:51 +0000 (11:34 +0200)]
Add helm_vims in site.cntt.yml

https://github.com/cntt-n/CNTT/pull/2022

Change-Id: Icb4bdfa0c1ecca9d0c5b4d5beef7ff4c5edb289e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoPublish helm_vims also based on clearwater-docker 31/71131/1
Cédric Ollivier [Tue, 15 Sep 2020 21:18:16 +0000 (23:18 +0200)]
Publish helm_vims also based on clearwater-docker

It leverages helm rather than kubectl as proposed by k8s_vims.
A new abstract class Vims is added to factorize code between both
testcases.

Change-Id: Ie5de8d62e25e74f73f8e32167228a08e82989abd
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoIncrease timeout in vIMS 30/71130/1
Cédric Ollivier [Tue, 15 Sep 2020 08:03:30 +0000 (10:03 +0200)]
Increase timeout in vIMS

It depends on bandwidth.
30 minutes should be enough in all scenarios

Change-Id: Ieaad053c8f8a270e5da08275de217b15fdf17f44
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoDon't run disruptive hunter checks 21/71121/1
Cédric Ollivier [Mon, 14 Sep 2020 19:47:11 +0000 (21:47 +0200)]
Don't run disruptive hunter checks

Change-Id: I52cb8303950269946774546cf8e413166c70a33c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoSplit kube-bench master and node 07/71107/3
Cédric Ollivier [Sun, 13 Sep 2020 12:53:26 +0000 (14:53 +0200)]
Split kube-bench master and node

The former deployment asked for all-in-one.

Change-Id: I12e470cec9e82b82c6f3ea5ff2431087f5deb9be
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoself.details must be a dict 02/71102/1
Cédric Ollivier [Sun, 13 Sep 2020 08:44:38 +0000 (10:44 +0200)]
self.details must be a dict

Change-Id: I4f65a9eeb7eda471371668db9abfa49e2875c5b0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoImprove kube_bench output 97/71097/1
Cédric Ollivier [Sat, 12 Sep 2020 14:12:50 +0000 (16:12 +0200)]
Improve kube_bench output

It also fills self.details.

Change-Id: Ie73215ebcbd34de9d457fd364de4ab9cbdf64319
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoEnhance kube-hunter result postprocessing 88/71088/1
Cédric Ollivier [Sat, 12 Sep 2020 11:52:47 +0000 (13:52 +0200)]
Enhance kube-hunter result postprocessing

It fills self.details and checks if the test case passes according
to criteria (severity = high by default)

Change-Id: Ib20779b4b5dca078c65b546c8703bc99856c6f41
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAvoid running VNF testing if deployment failed 87/71087/1
Cédric Ollivier [Sat, 12 Sep 2020 09:31:37 +0000 (11:31 +0200)]
Avoid running VNF testing if deployment failed

Change-Id: Id7642e47ec2cc438c5fe3a0ec9447f72b358adab
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd clusterIP: None in ims svc.yaml 82/71082/1
Cédric Ollivier [Fri, 11 Sep 2020 22:42:07 +0000 (00:42 +0200)]
Add clusterIP: None in ims svc.yaml

Change-Id: I0709e83f32261af232c20f94c1edef7423e05527
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>