User cannot launch pods on subcloud using image from registry.central
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Jerry Sun |
Bug Description
Brief Description
-----------------
User cannot launch pods on subcloud using image from registry.central. The kubelet fails to pull the image with the following error:
Failed to pull image "registry.
Severity
--------
Major: This functionality is completely broken.
Steps to Reproduce
------------------
1. Push an image to registry.central on the system controller.
2. Create a secret on a subcloud with the credentials for the registry.central.
3. Attempt to create a pod on a subcloud using the image from registry.central and the secret.
Expected Behavior
------------------
The pod launches successfully.
Actual Behavior
----------------
The pod gets stuck in ImagePullBackOff because it cannot pull the image.
Reproducibility
---------------
Reproducible
System Configuration
-------
Distribute Cloud
Branch/Pull Time/Commit
-------
Designer load built from starlingx master on July 10, 2020.
Last Pass
---------
Unknown - not sure if anyone has ever tested this before.
Timestamp/Logs
--------------
See above.
Test Activity
-------------
Developer Testing
Workaround
----------
Use the local registry instead of the central registry.
tags: | added: stx.containers stx.distcloud |
Changed in starlingx: | |
assignee: | nobody → Jerry Sun (jerry-sun-u) |
Changed in starlingx: | |
status: | Triaged → In Progress |
Here is the yaml file I used:
# cat busybox- central. yaml ineSeconds: 600 central: 9001/busybox: latest
imagePullPolic y: Always licy: Always Secrets: central- registry- secret
apiVersion: apps/v1
kind: Deployment
metadata:
name: busybox-central
namespace: default
spec:
progressDeadl
replicas: 1
selector:
matchLabels:
run: busybox-central
template:
metadata:
labels:
run: busybox-central
spec:
containers:
- args:
- sh
image: registry.
name: busybox-central
stdin: true
tty: true
restartPo
imagePull
- name: testuser-
Here is the command I used to create the secret:
# kubectl create secret docker-registry testuser- central- registry- secret \ server= registry. central: 9001 --docker- username= admin \ password= <PASSWORD> --<email address hidden>
--docker-
--docker-