]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/orchestrator: remove IMAGE ID from 'orch ls'
authorSage Weil <sage@newdream.net>
Fri, 9 Apr 2021 19:35:17 +0000 (15:35 -0400)
committerSage Weil <sage@newdream.net>
Tue, 13 Apr 2021 20:56:43 +0000 (15:56 -0500)
This is not very useful at this level:
 - we see it from 'orch ps'
 - it can be a mix of ids during upgrade
 - some services may have multiple images at steady state (e.g., ingress)

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 2b63ae25c9af576b8cbab80b17af013b2868f7a2)

src/pybind/mgr/orchestrator/module.py

index fa3acb850d5fce049c00b5dfc9762f4f116c039e..42d964ab9754c0ecb86d7cab9c79c9dbe7f42933 100644 (file)
@@ -557,14 +557,13 @@ class OrchestratorCli(OrchestratorClientMixin, MgrModule,
             now = datetime_now()
             table = PrettyTable(
                 ['NAME', 'RUNNING', 'REFRESHED', 'AGE',
-                 'PLACEMENT', 'IMAGE ID'
+                 'PLACEMENT',
                  ],
                 border=False)
             table.align['NAME'] = 'l'
             table.align['RUNNING'] = 'r'
             table.align['REFRESHED'] = 'l'
             table.align['AGE'] = 'l'
-            table.align['IMAGE ID'] = 'l'
             table.align['PLACEMENT'] = 'l'
             table.left_padding_width = 0
             table.right_padding_width = 2
@@ -586,7 +585,6 @@ class OrchestratorCli(OrchestratorClientMixin, MgrModule,
                     refreshed,
                     nice_delta(now, s.created),
                     pl,
-                    ukn(s.container_image_id)[0:12],
                 ))
 
             return HandleCommandResult(stdout=table.get_string())