]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: report mgr fsid 39852/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:20:13 +0000 (19:50 +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)

 Conflicts:
src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/configuration.e2e-spec.ts
     - Adopting the master branch changes.

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

index 810adf333448434e3ed7e2fec08daa7846ce49b8..7fe62b49cf1e41d91faf61cd25c03455fced801e 100644 (file)
@@ -20,6 +20,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 dad4701da25743a1478a3406b7e45cebb6876d71..7caf321885be1b7e025688b08ada4b744163e6c8 100644 (file)
@@ -52,7 +52,7 @@ describe('Configuration page', () => {
 
     it('should show only modified configurations', () => {
       configuration.filterTable('Modified', 'yes');
-      configuration.getTableFoundCount().should('eq', 1);
+      configuration.getTableFoundCount().should('eq', 2);
     });
 
     it('should hide all modified configurations', () => {