New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mgr/dashboard: do not recommend throughput for ssd's only cluster #46889
Conversation
6e6745a
to
7ea8ac6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nizamial09 on the quick fix, LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick and efficient as always, @nizamial09 ! If it works, it works... but I have a few concerns.
| nvme_model = None | ||
| ssd_model = None | ||
| for inventory_host in orch.inventory.list(hosts=None, refresh=True): | ||
| for device in inventory_host.devices.devices: | ||
| if device.available and device.human_readable_type == 'ssd': | ||
| if '/dev/nvme' in device.path: | ||
| nvme_model = device.sys_api['model'] | ||
| else: | ||
| ssd_model = device.sys_api['model'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still a hack... What it more than 1 model is used for SSDs or NVMes? Can't we pass a path pattern to match NMVe/SSD devs?
@adk3798 do you know if we can pass globs to the path of a device?
7ea8ac6
to
63d936c
Compare
This is just a bug fix where we recommend the throughput option even if there are only ssd's are present in the cluster. Fixes: https://tracker.ceph.com/issues/56413 Signed-off-by: Nizamudeen A <nia@redhat.com>
63d936c
to
0f6f79f
Compare
|
@epuertat @pereman2 @sunilangadi2 I changed the approach to only fix the bug which is happening here and added the tests for it. please re-review this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @nizamial09 ! Thank you!
| elif '/dev/nvme' in device.path: | ||
| nvmes += 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like it!
This is just a bug fix where we recommend the throughput option even if
there are only ssd's are present in the cluster.
Fixes: https://tracker.ceph.com/issues/56413
Signed-off-by: Nizamudeen A nia@redhat.com
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows