Skip to content
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

Merged
merged 1 commit into from Jul 19, 2022

Conversation

nizamial09
Copy link
Member

@nizamial09 nizamial09 commented Jun 29, 2022

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

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
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 dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

Copy link

@sunilangadi2 sunilangadi2 left a 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.

Dashboard automation moved this from In progress to Reviewer approved Jun 29, 2022
Copy link
Member

@epuertat epuertat left a 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.

Comment on lines 370 to 378
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']
Copy link
Member

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?

src/pybind/mgr/dashboard/controllers/osd.py Outdated Show resolved Hide resolved
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>
@nizamial09 nizamial09 changed the title mgr/dashboard: follow-up for osd creation mgr/dashboard: do not recommend throughput for ssd's only cluster Jul 18, 2022
@nizamial09
Copy link
Member Author

@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.

@nizamial09 nizamial09 assigned epuertat and unassigned pereman2 Jul 18, 2022
Copy link
Member

@epuertat epuertat left a 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!

Comment on lines +514 to +515
elif '/dev/nvme' in device.path:
nvmes += 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like it!

@nizamial09 nizamial09 merged commit baa04f7 into ceph:main Jul 19, 2022
17 of 19 checks passed
Dashboard automation moved this from Reviewer approved to Done Jul 19, 2022
@nizamial09 nizamial09 deleted the osd-followup-iops branch July 19, 2022 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Dashboard
  
Done
4 participants