first iscsi device attach on host fails with multipath enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-brick |
New
|
Undecided
|
Unassigned |
Bug Description
On the first iscsi attachment on a host (e.g. newly deployed vm) the multipath device only gets attached with one path[1]. All following attachments work fine, it even works if I delete the first vm with that iscsi device and recreate it.
It looks like there is a race condition in the _connect_
I currently do not understand why this behaviour is only for the first time, but I was able to solve that problem by adding a random millisecond delay in front of that line[5]. It looks like on the first "iscsiadm -m node -T <target> -p <ip>:<port> --interface default --op new" call there shouldn't be a second call on the same time.
And as this thread never finishes it is stuck in the waiting loop forver: https:/
[1]
[root@node01:~] 1 # multipath -ll
3624a9370d6c5f9
size=20G features='0' hwhandler='0' wp=rw
`-+- policy=
`- 1:0:0:1 sdc 8:32 active ready running
we have an ubuntu 18.04 environment using ubuntu cloud archive repository for stein running everything under python 3. the exact versions we have are:
os-brick: 2.8.1-0ubuntu1~ cloud0 0ubuntu1~ cloud0
cinder: 1:4.1.0-
we even tried using the os-brick package version 2.10.x and open-iscsi package from Ubuntu eaon repository. unfortunately without any luck.
we are having a purestorage for our iscsi devices.