Merge lp://qastaging/~bladernr/checkbox/checkbox-merge-ocp-block_device_resource into lp://qastaging/checkbox
Proposed by
Jeff Lane
Status: | Merged |
---|---|
Approved by: | Daniel Manrique |
Approved revision: | 3956 |
Merged at revision: | 3955 |
Proposed branch: | lp://qastaging/~bladernr/checkbox/checkbox-merge-ocp-block_device_resource |
Merge into: | lp://qastaging/checkbox |
Diff against target: |
70 lines (+23/-5) 1 file modified
providers/plainbox-provider-resource-generic/bin/block_device_resource (+23/-5) |
To merge this branch: | bzr merge lp://qastaging/~bladernr/checkbox/checkbox-merge-ocp-block_device_resource |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Manrique (community) | Approve | ||
Review via email:
|
Description of the change
Adds an addition to block_device_
/sys/block/
which should report 1 if the device is rotational (HDD) or 0 if the device is non-rotational (SSD)
Here is sample output from a desktop machine with a platter drive:
sda_state: internal
sda_usb2: unsupported
sda_usb3: unsupported
sda_rotation: yes
sr0_state: removable
sr0_usb2: unsupported
sr0_usb3: unsupported
sr0_rotation: yes
and here is one from a NUC with an mSATA SSD:
sda_state: internal
sda_usb2: unsupported
sda_usb3: unsupported
sda_rotation: no
This is helpful for server as we plan on adding a test to check for a kernel TRIM bug on SSDs for 16.04.
To post a comment you must log in.
Note, this is picked from a modified version of block_device_ resource that OCP created so this also brings OCP back in line with checkbox proper.