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

luminous ceph-volume add device_id to inventory listing #25350

Merged
merged 2 commits into from
Dec 4, 2018
Merged

luminous ceph-volume add device_id to inventory listing #25350

merged 2 commits into from
Dec 4, 2018

Conversation

alfredodeza
Copy link
Contributor

This PR changes the device_id implementation from using ID_SERIAL to ID_MODEL + _ + ID_SERIAL_SHORT (1) and adds an equivalent python implementation to ceph-volume (2).

  1. The reasoning is that the new implementation seem more reliable. ID_SERIAL often contains the model and serial, but sometimes only the serial.

  2. The python implementation is not equivalent yet for the FreeBSD case. In C++ this uses sysfs and ioctl with a (Free?)BSD specific constant. I'm not sure yet of the same call can be made with python's ioctl implementation. If so this should also be a RFC if we should move this to python/ceph-volume and call it from C++ to avoid the duplicate implementation.

Fixes: https://tracker.ceph.com/issues/37083
Backport of: #25201

Jan Fajerski added 2 commits November 30, 2018 14:03
This intends to mimic the C++ implementation in src/common/blkdev.cc.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 41da5e9)
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 58316e3)
@ceph-jenkins ceph-jenkins added this to the luminous milestone Nov 30, 2018
@alfredodeza alfredodeza merged commit 5e2a4bf into ceph:luminous Dec 4, 2018
@alfredodeza alfredodeza deleted the luminous-c-v-inventory-add-device_id branch December 4, 2018 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants