Comment 1 for bug 1949599

Revision history for this message
Oleksandr Kozachenko (okozachenko) wrote :

So I think the main error is the following;
```
2021-10-29 19:29:17.524 9 ERROR oslo_messaging.rpc.server TypeError: expected str, bytes or os.PathLike object, not RBDVolumeIOWrapper
```
https://opendev.org/openstack/os-brick/src/branch/stable/wallaby/os_brick/initiator/connectors/rbd.py#L230-L245

All `os_brick.initiator.connectors` have `connect_volume` and `disconnect_volume` methods which returns `device_path`. While retyping, the `device_path` is used to attach the volume. But as you can see the above link, `connect_volume` of rbd connector returns `linuxrbd.RBDVolumeIOWrapper` and returns str when only `do_local_attach` is set true.
But do_local_attach is set false.