Comment 5 for bug 2017575

Revision history for this message
Rajat Dhasmana (whoami-rajat) wrote : Re: wrong hostname passed to os_brick

Looking at the error trace, this seems specific to the huawei driver since it creates a hostgroup from the "host" property in connector. Other drivers doing similarly can face it as well but I'm not aware of them.

2023-02-04 05:33:29.958 933946 ERROR oslo_messaging.rpc.server cinder.exception.VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Initiator iqn.1993-08.org.debian:01:26abafb22f4 has been added to another host 7f7afc77863a34e8e2803135be19e31.

here the host property is used
https://github.com/openstack/cinder/blob/40147e2489c1f4f9940dc3df2cfa0fa81b5070df/cinder/volume/drivers/huawei/huawei_driver.py#L101-L102

here we error out
https://github.com/openstack/cinder/blob/40147e2489c1f4f9940dc3df2cfa0fa81b5070df/cinder/volume/drivers/huawei/rest_client.py#L785-L787