The volume manager is responsible for setting the initiator access
mode in initialize_connection based on volume metadata. The NetApp
FC drivers currently hardcode the access mode to 'rw'. So the fix
is to stop setting the access_mode value in the connection info that
is returned from the NetApp drivers.
Partial-Bug:
1526152
Change-Id: I587bba62ebfc067bb362ce95b324b4a74c0e02d0
FC_TARGET_INFO = {'driver_volume_type': 'fibre_channel',
'data': {'target_lun': 1,
'initiator_target_map': FC_I_T_MAP,
- 'access_mode': 'rw',
'target_wwn': FC_TARGET_WWPNS,
'target_discovered': True}}
'target_discovered': True,
'target_lun': 0,
'target_wwn': [eseries_fake.WWPN_2],
- 'access_mode': 'rw',
'initiator_target_map': {
eseries_fake.WWPN: [eseries_fake.WWPN_2]
},
'target_discovered': True,
'target_lun': 1,
'target_wwn': '500a098280feeba5',
- 'access_mode': 'rw',
'initiator_target_map': {
'21000024ff406cc3': ['500a098280feeba5'],
'21000024ff406cc2': ['500a098280feeba5']
'target_lun': 1,
'target_wwn': ['500a098280feeba5', '500a098290feeba5',
'500a098190feeba5', '500a098180feeba5'],
- 'access_mode': 'rw',
'initiator_target_map': {
'21000024ff406cc3': ['500a098280feeba5',
'500a098290feeba5'],
'data': {'target_discovered': True,
'target_lun': int(lun_id),
'target_wwn': target_wwpns,
- 'access_mode': 'rw',
'initiator_target_map': initiator_target_map}}
return target_info
'target_discovered': True,
'target_lun': 1,
'target_wwn': '500a098280feeba5',
- 'access_mode': 'rw',
'initiator_target_map': {
'21000024ff406cc3': ['500a098280feeba5'],
'21000024ff406cc2': ['500a098280feeba5']
'target_lun': 1,
'target_wwn': ['500a098280feeba5', '500a098290feeba5',
'500a098190feeba5', '500a098180feeba5'],
- 'access_mode': 'rw',
'initiator_target_map': {
'21000024ff406cc3': ['500a098280feeba5',
'500a098290feeba5'],
'data': {'target_discovered': True,
'target_lun': int(lun_id),
'target_wwn': target_wwpns,
- 'access_mode': 'rw',
'initiator_target_map': initiator_target_map}}
return target_info