Unity driver failed to clean the FC zone when the host initiators are not logged in.
Although the host initiators are not logged in, the FC zone on switch is still active. And the targets information should be returned by Unity driver. Then it can be cleaned by the zone manager.
2018-05-21 10:52:16.129 19022 DEBUG storops.connection.client [req-0fde409f-6333-42a3-bba3-8d3cadace3f9 0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9 148f31e7a5124274a4449da149f3c565 - default default] REQ URL: [GET] https://xx.xx.xx.xx:443/api/instances/host/Host_68?compact=True&fields=autoManageType,datastores,description,fcHostInitiators,fcHostInitiators.initiatorId,fcHostInitiators.paths.fcPort.wwn,fcHostInitiators.paths.initiator.type,fcHostInitiators.paths.isLoggedIn,health,hostContainer,hostIPPorts,hostIPPorts.address,hostLUNs,hostLUNs.hlu,hostLUNs.lun.id,hostLUNs.lun.name,hostLUNs.snap.id,hostPolledUUID,hostPushedUUID,hostUUID,hostVVolDatastore,id,instanceId,isInitializationComplete,isNfsv4Supported,iscsiHostInitiators,iscsiHostInitiators.initiatorId,lastPollTime,name,nfsShareAccesses,nfsUsername,operationalStatus,osType,registrationType,storageResources,tenant,type,vms, TIME: 0.350433111191, RESP CODE: 200 log_response /usr/lib/python2.7/site-packages/storops/connection/client.py:185
2018-05-21 10:52:16.130 19022 DEBUG storops.connection.client [req-0fde409f-6333-42a3-bba3-8d3cadace3f9 0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9 148f31e7a5124274a4449da149f3c565 - default default] RESP BODY:
{
"content": {
"fcHostInitiators": [
{
"id": "HostInitiator_394",
"initiatorId": "C0:50:76:0A:01:B6:01:80:C0:50:76:0A:01:B6:01:80"
},
{
"id": "HostInitiator_395",
"initiatorId": "C0:50:76:0A:01:B6:01:81:C0:50:76:0A:01:B6:01:81"
},
{
"id": "HostInitiator_396",
"initiatorId": "C0:50:76:0A:01:B6:01:84:C0:50:76:0A:01:B6:01:84"
},
{
"id": "HostInitiator_390",
"initiatorId": "C0:50:76:0A:01:B6:01:7E:C0:50:76:0A:01:B6:01:7E"
},
{
"id": "HostInitiator_397",
"initiatorId": "C0:50:76:0A:01:B6:01:85:C0:50:76:0A:01:B6:01:85"
},
{
"id": "HostInitiator_391",
"initiatorId": "C0:50:76:0A:01:B6:01:7F:C0:50:76:0A:01:B6:01:7F"
},
{
"id": "HostInitiator_392",
"initiatorId": "C0:50:76:0A:01:B6:01:82:C0:50:76:0A:01:B6:01:82"
},
{
"id": "HostInitiator_393",
"initiatorId": "C0:50:76:0A:01:B6:01:83:C0:50:76:0A:01:B6:01:83"
}
],
"name": "cindertest3",
"instanceId": "root/emc:EMC_UEM_HostLeaf%InstanceID=Host_68",
"operationalStatus": [
32769
],
"health": {
"resolutionIds": [
"host_connect_initiators"
],
"descriptionIds": [
"ALRT_HOST_NO_LOGGED_IN_INITIATORS"
],
"descriptions": [
"The host does not have any initiators logged into the storage system. Register one or more initiators on the host to the storage system. This may also require zoning changes on the switches."
],
"value": 10
},
"osType": "",
"type": 1,
"id": "Host_68",
"autoManageType": 0,
"description": ""
}
} _debug_print_json /usr/lib/python2.7/site-packages/storops/connection/client.py:178
Fix proposed to branch: master /review. openstack. org/570519
Review: https:/