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.
So I think the main error is the following; rpc.server TypeError: expected str, bytes or os.PathLike object, not RBDVolumeIOWrapper /opendev. org/openstack/ os-brick/ src/branch/ stable/ wallaby/ os_brick/ initiator/ connectors/ rbd.py# L230-L245
```
2021-10-29 19:29:17.524 9 ERROR oslo_messaging.
```
https:/
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. RBDVolumeIOWrap per` and returns str when only `do_local_attach` is set true.
But do_local_attach is set false.