Details
-
Bug
-
Resolution: Done
-
Major
-
3.3.0.GA
-
False
-
None
-
False
-
Release Notes
-
-
Bug Fix
-
Done
Description
Synced from Eclipse Che issue
https://github.com/eclipse/che/issues/21589
Describe the bug
In Dashboard user preference it's possible to add a container registry:
<img width="1105" alt="image" src="https://user-images.githubusercontent.com/606959/181199230-44973cc9-4839-4ebe-b429-a5577bcaf014.png">
But then:
Starting a workspace that use a private image fails:
<img width="869" alt="image" src="https://user-images.githubusercontent.com/606959/181200928-07461d0c-6c3c-4126-9916-cfb1fa8bcc3c.png">
The message on the dashboard doesn't provide the right information:
<img width="952" alt="image" src="https://user-images.githubusercontent.com/606959/181201549-5f0cba77-4eb0-41cc-802c-634e0ab645fd.png">
Running podman pull of private image fails:
<img width="1070" alt="image" src="https://user-images.githubusercontent.com/606959/181201845-f05dc9b6-9eb5-4265-891e-e51b1e145fba.png">
Che version
next (development version)
Steps to reproduce
- Add your container registry credentials from the dashboard
- Try to start a workspace using a devfile that points to a private image
- Start a workspace where podman works in rootless mode and try to run podman pull on private registry
Expected behavior
If the user has provided added the container registry credentials in his profile:
- [ ] starting a workspace that uses a private container from that registry should work
- [ ] running podman pull <private image> from within a workspace should work
If the user has NOT added the container registryin his profile:
- [ ] When the workspace start and fails with authorization failure we should report it in the error message and suggest the user to add the container registry credentials in his user profile
Runtime
OpenShift
Installation method
OperatorHub
Environment
Dogfooding instance
Release Notes Text
If a user added a container registry credential in Eclipse Che User Dashboard, that credential was not used to pull images from the registry resulting in workspaces failing to start.