Failure in writing to multipath device as it's not ready for I/O
Bug #2067949 reported by
Rajat Dhasmana
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-brick |
Fix Released
|
Undecided
|
Rajat Dhasmana |
Bug Description
When we try to create a volume from image, we attach the volume to the host and perform qemu-img convert command to convert the image and write it into the volume.
In a iSCSI environment, the following error is observed when performing the qemu-img operation.
2024-05-02 16:40:38.189 8 ERROR cinder.
This happens because the multipath device is not ready for I/O and we try to write data into it.
We require a check in os-brick to verify the multipath device is ready for read/write before returning the call to cinder/nova/glance for writing data into the volume.
Changed in os-brick: | |
status: | New → In Progress |
Changed in os-brick: | |
assignee: | nobody → Rajat Dhasmana (whoami-rajat) |
description: | updated |
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/c/openstack /os-brick/ +/920516 /opendev. org/openstack/ os-brick/ commit/ 639f953194cdc07 b1e6aff1fc1ca2a 7bc9d28536
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 639f953194cdc07 b1e6aff1fc1ca2a 7bc9d28536
Author: Rajat Dhasmana <email address hidden>
Date: Mon May 27 18:33:54 2024 +0530
Wait for multipath device to be ready for I/O
The "multipath -C <mpath_name>" command waits for the multipath
device map to be ready for I/O. This is useful in preventing race
conditions when we are trying to write to the multipath device
before it is ready for I/O.
We added 2 new config options to make the wait time configurable,
1. wait_mpath_ device_ attempts - defaults to 4 attempts device_ interval - defaults to 1 second
2. wait_mpath_
Closes-Bug: #2067949
Change-Id: Ib075ec62a2bf99 3615c5c802f34ac d7838bfa2af