When an entity's MON cap contains no FS name in it, the entity has the
access to all the FSs on cluster and not just to the default FS of the
cluster.
Fixes: https://tracker.ceph.com/issues/55558
Signed-off-by: Rishabh Dave <ridave@redhat.com>
fsls = self.run_cluster_cmd(f'fs ls --id {self.client_id} -k '
f'{keyring_path}')
- # we need to check only for default FS when fsname clause is absent
- # in MON/MDS caps
- if 'fsname' not in moncap:
- self.assertIn(self.fs.name, fsls)
+ if 'fsname=' not in moncap:
+ fsls_admin = self.run_cluster_cmd('fs ls')
+ self.assertEqual(fsls, fsls_admin)
return
fss = (self.fs1.name, self.fs2.name) if hasattr(self, 'fs1') else \