]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: don't use image tag in orch upgrade ls 53865/head
authorAdam King <adking@redhat.com>
Fri, 1 Sep 2023 13:05:04 +0000 (09:05 -0400)
committerAdam King <adking@redhat.com>
Fri, 6 Oct 2023 19:05:17 +0000 (15:05 -0400)
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 552964c845871475221ad9c55a179f07f5a1c0f9..1bbfcef85a21cf1c24d5af1cc9cae18fbaf9e754 100644 (file)
@@ -267,6 +267,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 = []