SRIOV and Multus images not pulled from local mirror registry
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Mingyuan Qi |
Bug Description
Brief Description
-----------------
nfvpe/multus:v3.2 and nfvpe/sriov-
Severity
--------
Major: All pods that require these two images are not able to start.
Steps to Reproduce
------------------
Follow up the procedure to configure starlingx. Once the systems are unlocked, the pods try to start and fails when they can't pull the image.
Expected Behavior
------------------
PODs should pull the images from mirror registry, as all other docker images required for kube-system, i.e. calico, coredns, etc.
Actual Behavior
----------------
Pod tries to pull image from public registry:
Normal Pulling 4m51s (x41 over 3h10m) kubelet, controller-0 pulling image "nfvpe/multus:v3.2"
Normal BackOff 0s (x840 over 3h10m) kubelet, controller-0 Back-off pulling image "nfvpe/multus:v3.2"
Reproducibility
---------------
100% on configurations with local (mirror) registry.
System Configuration
-------
All 4 configs using local (mirror) registry.
Branch/Pull Time/Commit
-------
Currently present on CENGN Image: 20190515T013000Z
Last Pass
---------
These are new images, checking the logs, the issue is present since Monday, May 13th.
Timestamp/Logs
--------------
With describe pod, we detected that the images are not being pulled from mirror registry:
kubectl -n kube-system describe pod kube-multus-
.
.
.
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning Failed 49m (x617 over 3h10m) kubelet, controller-0 Error: ImagePullBackOff
Normal Pulling 4m51s (x41 over 3h10m) kubelet, controller-0 pulling image "nfvpe/multus:v3.2"
Normal BackOff 0s (x840 over 3h10m) kubelet, controller-0 Back-off pulling image "nfvpe/multus:v3.2"
Test Activity
-------------
Sanity.
description: | updated |
Something that might help. Checking on /etc/kubernetes /multus. yaml and /etc/kubernetes /sriov- cni.yaml, the docker image is defined without the mirror registry ip address, i.e., multus:
image: nfvpe/multus:v3.2
Verifying other pods where the image is properly pulled, the IP of the mirror registry should be there, i.e., calico:
image: 192.168. 100.60/ calico/ cni:v3. 6.1 100.60/ calico/ cni:v3. 6.1
image: 192.168.
192.168.100.60 <- Our mirror registry
As a workaround we tried: /multus. yaml and /etc/kubernetes /sriov- cni.yaml and add the registry ip. /etc/kubernetes /admin. conf replace -f /etc/kubernetes /sriov- cni.yaml /etc/kubernetes /admin. conf replace -f /etc/kubernetes /multus. yaml
1. Manually edit /etc/kubernetes
2. Update the config with:
kubectl --kubeconfig=
kubectl --kubeconfig=
3. Remove old pods to launch new ones
With that, the pods started successfully:
controller-0:~$ kubectl get pods -n kube-system |egrep "multus|sriov" ds-amd64- dd2s6 1/1 Running 0 76m ds-amd64- r99qz 1/1 Running 0 76m ds-amd64- rdgxr 1/1 Running 0 76m ds-amd64- ssfxb 1/1 Running 0 76m cni-ds- amd64-8nrbz 1/1 Running 0 75m cni-ds- amd64-g999n 1/1 Running 0 75m cni-ds- amd64-j9mlh 1/1 Running 0 75m cni-ds- amd64-r4gms 1/1 Running 0 76m
kube-multus-
kube-multus-
kube-multus-
kube-multus-
kube-sriov-
kube-sriov-
kube-sriov-
kube-sriov-
Is something missing from the templates?: https:/ /opendev. org/starlingx/ config/ src/branch/ master/ puppet- manifests/ src/modules/ platform/ templates/ multus. yaml.erb# L134