Skip to content

mgr/dashboard: filesystem pool size should use stored stat#40874

Merged
tchaikov merged 1 commit intoceph:masterfrom
rhcs-dashboard:fix-cephfs-pool-size-stat
Apr 19, 2021
Merged

mgr/dashboard: filesystem pool size should use stored stat#40874
tchaikov merged 1 commit intoceph:masterfrom
rhcs-dashboard:fix-cephfs-pool-size-stat

Conversation

@avanthakkar
Copy link
Copy Markdown
Contributor

@avanthakkar avanthakkar commented Apr 15, 2021

Replaces 'bytes_used' with 'stored' stat to see the correct results of CephFS pool stats.

Fixes: https://tracker.ceph.com/issues/50195
Signed-off-by: Avan Thakkar athakkar@redhat.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@avanthakkar avanthakkar requested review from a team, aaSharma14, alfonsomthd and callithea and removed request for a team April 15, 2021 13:32
Fixes: https://tracker.ceph.com/issues/50195
Signed-off-by: Avan Thakkar <athakkar@redhat.com>

Replaces 'bytes_used' with 'stored' stat to see the correct results
of CephFS pool stats.
@avanthakkar avanthakkar force-pushed the fix-cephfs-pool-size-stat branch from fb377a4 to 7110fd4 Compare April 15, 2021 13:54
@avanthakkar avanthakkar requested review from nizamial09 and removed request for callithea April 16, 2021 07:01
@avanthakkar
Copy link
Copy Markdown
Contributor Author

avanthakkar commented Apr 19, 2021

@alfonsomthd I think no additional unit-test will be required here, as this line already checks for the change

self.assertEqual(pool['size'], pool['used'] + pool['avail'])
(here pool_used = stats['stored']) and tests are passing so isn't that enough? Or were you referring to something else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants