Bug #49366
closed'cephadm version' will show a trace back if image comes from a authenticated registry and login has not been done yet
0%
Description
[root@magna081 sbin]# sudo cephadm version
Non-zero exit code 125 from /bin/podman run --rm --ipc=host --net=host --entrypoint ceph -e CONTAINER_IMAGE=registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:latest -e NODE_NAME=magna081 registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:latest --version
ceph: stderr Trying to pull registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:latest...
ceph: stderr unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication
ceph: stderr Error: unable to pull registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:latest: Error initializing source docker://registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:latest: unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication
Traceback (most recent call last):
File "/sbin/cephadm", line 6931, in <module>
r = args.func()
File "/sbin/cephadm", line 1392, in _infer_image
return func()
File "/sbin/cephadm", line 2716, in command_version
out = CephContainer(args.image, 'ceph', ['--version']).run()
File "/sbin/cephadm", line 2707, in run
self.run_cmd(), desc=self.entrypoint, timeout=timeout)
File "/sbin/cephadm", line 1071, in call_throws
raise RuntimeError('Failed command: %s' % ' '.join(command))
RuntimeError: Failed command: /bin/podman run --rm --ipc=host --net=host --entrypoint ceph -e CONTAINER_IMAGE=registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:latest -e NODE_NAME=magna081 registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:latest --version
trace back should be hidden
Updated by Daniel Pivonka about 3 years ago
- Status changed from New to In Progress
Updated by Ken Dreyer about 3 years ago
- Status changed from In Progress to Pending Backport
- Backport set to pacific
Updated by Ken Dreyer about 3 years ago
- Status changed from Pending Backport to Resolved
Backported to pacific in https://github.com/ceph/ceph/pull/39807