-
Notifications
You must be signed in to change notification settings - Fork 26
Added a double validation for multipath device WWN discovered via multipath -ll #164
Conversation
Review status: 0 of 3 files reviewed at latest revision, 1 unresolved discussion. remote/mounter/block_device_utils/mpath.go, line 87 at r1 (raw file):
I know it's not in this code change but can we do better with this error message? Stat failed for volume [%s] ? Comments from Reviewable |
Review status: 0 of 3 files reviewed at latest revision, 1 unresolved discussion. Comments from Reviewable |
Review status: 0 of 3 files reviewed at latest revision, 6 unresolved discussions. remote/mounter/block_device_utils/errors.go, line 47 at r1 (raw file):
rename to wrongDeviceFoundError remote/mounter/block_device_utils/errors.go, line 49 at r1 (raw file):
Add also the dev path as argument remote/mounter/block_device_utils/errors.go, line 52 at r1 (raw file):
fix it to remote/mounter/block_device_utils/mpath.go, line 79 at r1 (raw file):
remote/mounter/block_device_utils/mpath.go, line 84 at r1 (raw file):
please add here also dev as argument to see the whole picture not only the WWN Comments from Reviewable |
Review status: 0 of 3 files reviewed at latest revision, 6 unresolved discussions. remote/mounter/block_device_utils/errors.go, line 47 at r1 (raw file): Previously, shay-berman wrote…
Done. remote/mounter/block_device_utils/errors.go, line 49 at r1 (raw file): Previously, shay-berman wrote…
Done. remote/mounter/block_device_utils/errors.go, line 52 at r1 (raw file): Previously, shay-berman wrote…
Done. remote/mounter/block_device_utils/mpath.go, line 79 at r1 (raw file): Previously, shay-berman wrote…
Done. remote/mounter/block_device_utils/mpath.go, line 84 at r1 (raw file): Previously, shay-berman wrote…
Done. Comments from Reviewable |
Review status: 0 of 3 files reviewed at latest revision, 5 unresolved discussions. remote/mounter/block_device_utils/block_device_utils_test.go, line 177 at r2 (raw file):
very good UT remote/mounter/block_device_utils/block_device_utils_test.go, line 199 at r2 (raw file):
not must, but its better to use the "/dev/mapper/" + result remote/mounter/block_device_utils/errors.go, line 52 at r1 (raw file): Previously, tzurE wrote…
Do you think we should tell Dima to add this string to the troubleshooting section in the userguide? remote/mounter/block_device_utils/mpath.go, line 87 at r1 (raw file): Previously, ranhrl (Ran Harel) wrote…
the err it should will be find not found. so i think we are ok here. But yes we can add here "Stat fileX failed". Comments from Reviewable |
Review status: 0 of 3 files reviewed at latest revision, 5 unresolved discussions. remote/mounter/block_device_utils/block_device_utils_test.go, line 199 at r2 (raw file): Previously, shay-berman wrote…
Done. remote/mounter/block_device_utils/errors.go, line 52 at r1 (raw file): Previously, shay-berman wrote…
yes Comments from Reviewable |
In order to provide more confident that the mpath device we discover in multipath -ll, we added double validation that the WWN behind the discovered mpath device is really the WWN that we expect it to be. This way we sure(by getting the WWN directly from the device) that we going to mount the expected device.
This PR provide another layer of validation that we are using the right device.
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)