'host' property is missing for Cinder volume connector when boot from volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Description
===========
Not sure if this is a bug or by design. But in any case, we need to clarify how to the volume connectors are created when boot from volume. According the doc (https:/
cinder-
cinder-
cinder-
Looking at the code where the volume connector is created, seems like the only workaround would be to also create another volume connection of type 'ip'. See
https:/
So we ended up creating two connectors, iqn and ip, in order to make the error go away.
Steps to reproduce
==================
1. Configure Ironic to Boot From Volume according to the doc (https:/
2. Configure a Cinder backend (i.e. 3par_iscsi) which requires the 'host' property.
3. Attempt to BFV and it will fail. Check the Cinder Volume logs for the "KeyError: 'host'" entry.
Expected result
===============
BFV should work.
Actual result
=============
BFV failed with the "KeyError: 'host'" entry in Cinder Volume log.
Environment
===========
1. Install DevStack with Ironic BFV enabled. See https:/
2. Configure Cinder to use VSA or some backend which request a 'host'.
3. Do BFV
Also,
Here is a list of other cinder drivers and libraries that assume that the host entry
is always there for attach and detach.
datacore/ driver. py:357 iscsi.py: 136: vmax/masking. py:1079: vmax/common. py:481: vmax/fc. py:306: xtremio. py:1278: vnx/adapter. py:1299: unity/adapter. py:295: hypermetro. py:184: huawei_ driver. py:1993: kaminario_ common. py:835: kaminario_ fc.py kaminario_ iscsi.py instorage/ instorage_ common. py instorage/ instorage_ iscsi.py instorage/ instorage_ fc.py 3par_iscsi. py lefthand_ iscsi.py storage/ ds8k_helper. py storage/ xiv_proxy. py svc/storwize_ svc_iscsi. py svc/storwize_ svc_fc. py svc/storwize_ svc_common. py _fc.py _iscsi. py _common. py
datacore/
datacore/fc.py:135:
dell_emc/
dell_emc/
dell_emc/
dell_emc/
dell_emc/
dell_emc/
pure.py:1836:
huawei/
huawei/
kaminario/
kaminario/
kaminario/
drbdmanagedrv.py
coprhd/scaleio.py
coprhd/iscsi.py
coprhd/fc.py
inspur/
inspur/
inspur/
hpe/hpe_
hpe/hpe_
hpe/hpe_3par_fc.py
storpool.py
ibm/ibm_
ibm/ibm_
ibm/storwize_
ibm/storwize_
ibm/storwize_
ibm/flashsystem
ibm/flashsystem
ibm/flashsystem