You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run_tests -t netperf
While other functional test cases are applicable to run on air-gapped environment this one is not, because no tag defined for the image and the imagepullpolicy set to always.
One of the below option is true:
a) imagePullPolicy set to always
b) if you omit the imagePullPolicy field, and you don't specify the tag for the container image, imagePullPolicy is automatically set to Always
So either way the pull policy set to always.
However my air-gapped environment is configured to imagePullPolicy=IfNotPresent and the images downloaded locally, it's not used because the imagePullPolicy is overriden to always.
It shouldn't be a problem, in case I can set the mirror proxy instead. While I configured the mirror for docker it seems there is no effect, it still try to reach the docker.io and not the configured mirror repo.
Use on air gap environments (no access to Internet)
To test a Kubernetes without access to Internet, repository mirrors needs to be provided.
Currently, all tests supports this feature except cnf conformance.
There's two ways for providing the repository mirrors:
Give an environment variable (MIRROR_REPO) which gives a repository 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)
QUAY_REPO for Quay repository (quay.io)
However I set the docker repository in the env file which appeared in the container's variable still not used.
# the environment file
cat env
DOCKERHUB_REPO=registry1-docker-io.repo.cci.xxx.net
# within the running functest-kubernetes-benchmarking container
bash-5.1# printenv
DOCKERHUB_REPO=registry1-docker-io.repo.cci.xxx.net
# checking the pod
kubectl describe pod -n netperf netperf-orch-2wzvj | tail -n 20
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 36s default-scheduler Successfully assigned netperf/netperf-orch-2wzvj to cbis-sut1-worker-01
Normal AddedInterface 36s multus Add eth0 [192.168.231.161/32] from calico-network
Normal Pulling 36s kubelet Pulling image "sirot/netperf-latest"
Warning Failed 6s kubelet Failed to pull image "sirot/netperf-latest": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/sirot/netperf-latest:latest": failed to resolve reference "docker.io/sirot/netperf-latest:latest": failed to do request: Head "https://registry-1.docker.io/v2/sirot/netperf-latest/manifests/latest": dial tcp 34.205.13.154:443: i/o timeout
Warning Failed 6s kubelet Error: ErrImagePull
Normal BackOff 6s kubelet Back-off pulling image "sirot/netperf-latest"
Warning Failed 6s kubelet Error: ImagePullBackOff
I see 3 options:
this test is not applicable on air-gapped environment
using a version tag with unset imagePullPolicy or configure imagePullPolicy=IfNotPresent
enable to use the configured mirror repo for docker
What you expected to happen:
I expected the test case executed successfully.
How to reproduce it (as minimally and precisely as possible):
See above.
Anything else we need to know?:
Ticket originally opened under different github project, but recommended to open it under opnfv/anuket instead. kubernetes/perf-tests#2241
The opnfv/functest-kubernetes-benchmarking:v1.23 run_tests -t netperf fails on air-gapped environment
Tried to run the below k8s functional test, which failed because it can't download the image, as the environment is air gapped.
run_tests -t netperf
While other functional test cases are applicable to run on air-gapped environment this one is not, because no tag defined for the image and the imagepullpolicy set to always.
kubectl get rc -n netperf netperf-orch -o yaml
One of the below option is true:
a) imagePullPolicy set to always
b) if you omit the imagePullPolicy field, and you don't specify the tag for the container image, imagePullPolicy is automatically set to Always
So either way the pull policy set to always.
However my air-gapped environment is configured to imagePullPolicy=IfNotPresent and the images downloaded locally, it's not used because the imagePullPolicy is overriden to always.
It shouldn't be a problem, in case I can set the mirror proxy instead. While I configured the mirror for docker it seems there is no effect, it still try to reach the docker.io and not the configured mirror repo.
Source: https://github.com/opnfv/functest-kubernetes:
However I set the docker repository in the env file which appeared in the container's variable still not used.
I see 3 options:
this test is not applicable on air-gapped environment
using a version tag with unset imagePullPolicy or configure imagePullPolicy=IfNotPresent
enable to use the configured mirror repo for docker
What you expected to happen:
I expected the test case executed successfully.
How to reproduce it (as minimally and precisely as possible):
See above.
Anything else we need to know?:
Ticket originally opened under different github project, but recommended to open it under opnfv/anuket instead.
kubernetes/perf-tests#2241
Environment:
Cloud provider or hardware configuration:
Openstack
Kernel (e.g. uname -a):
Linux cbis-sut1-control-01 4.18.0-372.9.1.el8.x86_64 https://github.com/kubernetes/perf-tests/pull/1 SMP Tue May 10 14:48:47 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: