]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: don't use image tag in orch upgrade ls 55974/head
authorAdam King <adking@redhat.com>
Fri, 1 Sep 2023 13:05:04 +0000 (09:05 -0400)
committerAdam King <adking@redhat.com>
Tue, 5 Mar 2024 17:20:15 +0000 (12:20 -0500)
Using the tag seems to screw up the auth URL generated
and is unnecessary since we're trying to get a list
of tags for the image anyway.

Fixes: https://tracker.ceph.com/issues/62679
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 0f4426d3a085fc2f5137593029469c3b20ace77e)

src/pybind/mgr/cephadm/upgrade.py

index 25bdf9be4f6087d57eb03d6a81a00d284bf464db..c6947b8ebfaa6cd4d35c5de4fd779a7dbfcdac9a 100644 (file)
@@ -263,6 +263,9 @@ class CephadmUpgrade:
         if not image:
             image = self.mgr.container_image_base
         reg_name, bare_image = image.split('/', 1)
+        if ':' in bare_image:
+            # for our purposes, we don't want to use the tag here
+            bare_image = bare_image.split(':')[0]
         reg = Registry(reg_name)
         (current_major, current_minor, _) = self._get_current_version()
         versions = []