Multipath disconnect fails if path just went down
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-brick |
Fix Released
|
Undecided
|
Gorka Eguileor |
Bug Description
If the iSCSI connection to a device goes down right after we flush it, or if one of the paths of a multipath device goes down right before we start disconnecting, the detach will fail even though it should succeed.
An extract of the error we'll see in the logs is:
2018-09-12 10:30:52.013 1 ERROR oslo_messaging.
2018-09-12 10:30:52.013 1 ERROR oslo_messaging.
2018-09-12 10:30:52.013 1 ERROR oslo_messaging.
2018-09-12 10:30:52.013 1 ERROR oslo_messaging.
2018-09-12 10:30:52.013 1 ERROR oslo_messaging.
2018-09-12 10:30:52.013 1 ERROR oslo_messaging.
2018-09-12 10:30:52.013 1 ERROR oslo_messaging.
2018-09-12 10:30:52.013 1 ERROR oslo_messaging.
2018-09-12 10:30:52.013 1 ERROR oslo_messaging.
2018-09-12 10:30:52.013 1 ERROR oslo_messaging.
2018-09-12 10:30:52.013 1 ERROR oslo_messaging.
This happens because, under those circumstances, it may take up to 30 seconds for the SCSI device to be removed from /dev, but expect it to disappear in 6 seconds (first check happens, immediately, then another in 2 seconds, and another in 4 seconds).
If we wait a little bit more, the device will be properly removed.
Changed in os-brick: | |
assignee: | nobody → Gorka Eguileor (gorka) |
Fix proposed to branch: master /review. openstack. org/605802
Review: https:/