Bug #63150
closedReef: mgr/cephadm: container image name contains tag but should not
100%
Description
While responding to a ceph-users mailing list thread I investigated the issue and figured that the default value for mgr/cephadm/container_image_base
has been changed from quay.io/ceph/ceph
to quay.io/ceph/ceph:v18
between Quincy and Reef.
This results in errors for upgrade checks/starts:
$ ceph orch upgrade check --ceph-version 18.2.0 Error EINVAL: host nautilus `cephadm pull` failed: cephadm exited with an error code: 1, stderr: Pulling container image quay.io/ceph/ceph:v18:v18.2.0... Non-zero exit code 125 from /usr/bin/podman pull quay.io/ceph/ceph:v18:v18.2.0 --authfile=/etc/ceph/podman-auth.json /usr/bin/podman: stderr Error: invalid reference format ERROR: Failed command: /usr/bin/podman pull quay.io/ceph/ceph:v18:v18.2.0 --authfile=/etc/ceph/podman-auth.json
A quick workaround would be to set it to the previous default:
ceph config set mgr mgr/cephadm/container_image_base quay.io/ceph/ceph
Apparently, this is the responsible change:
# Quincy grep "DEFAULT_IMAGE\ =" /usr/share/ceph/mgr/cephadm/module.py DEFAULT_IMAGE = 'quay.io/ceph/ceph' # Reef grep "DEFAULT_IMAGE\ =" /usr/share/ceph/mgr/cephadm/module.py DEFAULT_IMAGE = 'quay.io/ceph/ceph:v18'
Although the description clearly states:
Option( 'container_image_base', default=DEFAULT_IMAGE, desc='Container image name, without the tag',
Updated by Venky Shankar 7 months ago
- Project changed from CephFS to Orchestrator
This isn't cephfs - moving to orch.
Updated by Eugen Block 7 months ago
Oops, I hit the submit button too early, I didn't realize it was assigned to the CephFS project (is that the default when creating a new issue?). Also I forgot to add a proper subject, could you please edit the subject because I'm not allowed to do that. Something like "Reef: container default image contains tag" would make sense.
Updated by John Mulligan 7 months ago
- Subject changed from Reef: to Reef: mgr/cephadm: container image name contains tag but should not
Here's the commit that added the tag 198ca7bc679e38e77bfb2c5b257f34bf42112af0.
I think the issue arose because cephadm should contain a tag but the mgr module value should not. But that's inconsistent and most likely created some confusion about what to change on the reef branch.
Updated by Yuri Weinstein 7 months ago
Updated by Konstantin Shalygin 5 months ago
- Assignee set to Adam King
- Target version set to v18.2.1
- % Done changed from 0 to 100
- Source set to Community (user)