]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: report mgr fsid 39851/head
authorErnesto Puerta <epuertat@redhat.com>
Fri, 12 Feb 2021 18:46:20 +0000 (19:46 +0100)
committerAvan Thakkar <athakkar@redhat.com>
Fri, 5 Mar 2021 14:06:13 +0000 (19:36 +0530)
Add mgr fsid from the ceph mgr API.

Fixes: https://tracker.ceph.com/issues/49283
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit 206f9f2ea180b6b06158d5d74e1ab55c21044502)

src/pybind/mgr/dashboard/controllers/cluster_configuration.py
src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/configuration.e2e-spec.ts

index e57ce48c4f53fb5c300200477b82a53f8e5dcdea..8b0829b8402646fc36a80982ac2f789f192679b8 100644 (file)
@@ -39,6 +39,9 @@ class ClusterConfiguration(RESTController):
         :return: list of config options extended by their current values
         """
         config_dump = CephService.send_command('mon', 'config dump')
+        mgr_config = mgr.get('config')
+        config_dump.append({'name': 'fsid', 'section': 'mgr', 'value': mgr_config['fsid']})
+
         for config_dump_entry in config_dump:
             for i, elem in enumerate(options):
                 if config_dump_entry['name'] == elem['name']:
index 0acbc9100b8b08aa5e1f9a686cfe0b9c721ba593..f9bc8d43f5d453bf0322478ec0a7aa9907023f2b 100644 (file)
@@ -51,7 +51,7 @@ describe('Configuration page', () => {
 
     it('should show only modified configurations', () => {
       configuration.filterTable('Modified', 'yes');
-      configuration.getTableCount('found').should('eq', 1);
+      configuration.getTableCount('found').should('eq', 2);
     });
 
     it('should hide all modified configurations', () => {