ViPR Controller : Unity export fails with "The specified Host LUN ID conflicted with existing LUNs for this host. (Error Code:0x6000100)

           

   Article Number:     533841                                   Article Version: 2     Article Type:    Break Fix 
   

 


Product:

 

ViPR Controller,ViPR Controller Controller 3.6 SP2

 

Issue:

 

 

An ActionableEvent to add a new ESX host to a VMware cluster when Approved, fails with the error :   
   
    Message: An error occurred while executing the job createExportMask The POST /api/instances/host/Host_XX/action/modifyHostLUNs failed with the status code: 422 and the message: {"error":{"errorCode":100663552,"httpStatusCode":422,"messages":[{"en-US":     
      "The specified Host LUN ID conflicted with existing LUNs for this host. (Error Code:0x6000100)"
                                                           

 

 

Cause:

 

 

ViPR Controller attempts to export a volume to the new cluster host using a HLU value that is already in-use by the host.   
   
    In this scenario, the ViPR Controller ExportGroup (EG) contained non-unique HLU values for the cluster volumes (i.e. the EG contained two volumes with a HLU value of 3)   
   
   
    The export of the first LUN (sv_11) using HLU = 3 is successful as the Host (Host_55) has no existing LUNs exported to it    
   
    [80874|doExportGroupCreate] INFO VNXeExportOperations.java (line 133) hlu 3     
      [80874|doExportGroupCreate] INFO VNXeApiClient.java (line 1497) Exporting lun: sv_11     
      [80874|doExportGroupCreate] INFO KHRequests.java (line 405) getting data: /api/instances/lun/sv_11      
      [80874|doExportGroupCreate] INFO HostLunRequests.java (line 32) Finding hostLun for lunId: sv_11, hostId: Host_55     
      [80874|doExportGroupCreate] INFO KHRequests.java (line 152) getting data: /api/types/hostLUN/instances     
      vipr3 vipr3 controllersvc 2019-05-09 11:02:48,937 [80874|doExportGroupCreate|8fa5c148-2152-42c4-8545-751ba43541017d7f300a-9397-4eff-92e4-92e4685535a1] INFO KHRequests.java (line 614) Setting fields:host,type,hlu,lun,snap,isReadOnly     
      vipr3 vipr3 controllersvc 2019-05-09 11:02:49,183 [80874|doExportGroupCreate|8fa5c148-2152-42c4-8545-751ba43541017d7f300a-9397-4eff-92e4-92e4685535a1] INFO KHRequests.java (line 412) 200:Client response status: 200     
      vipr3 vipr3 controllersvc 2019-05-09 11:02:49,183 [80874|doExportGroupCreate|8fa5c148-2152-42c4-8545-751ba43541017d7f300a-9397-4eff-92e4-92e4685535a1] INFO KHRequests.java (line 161) got data:     
      {"@base":"https://XX.XX.XX.XX/api/types/hostLUN/instances?filter=lun.id eq \"sv_11\"&fields=host,type,hlu,lun,snap,isReadOnly&per_page=2000","updated":"2019-05-09T11:02:49.172Z","links":[{"rel":"self","href":"&page=1"}],"entries":[     
      {"@base":"https://XX.XX.XX.XX/api/instances/hostLUN","updated":"2019-05-09T11:02:49.172Z","links":[{"rel":"self","href":"/Host_22_sv_11_prod"}],"content":{"id":"Host_22_sv_11_prod","type":1,"hlu":3,"isReadOnly":false,"host":{"id":"Host_22"},"lun":{"id":"sv_11"}}},     
      {"@base":"https://XX.XX.XX.XX/api/instances/hostLUN","updated":"2019-05-09T11:02:49.172Z","links":[{"rel":"self","href":"/Host_23_sv_11_prod"}],"content":{"id":"Host_23_sv_11_prod","type":1,"hlu":3,"isReadOnly":false,"host":{"id":"Host_23"},"lun":{"id":"sv_11"}}},     
      {"@base":"https://XX.XX.XX.XX/api/instances/hostLUN","updated":"2019-05-09T11:02:49.172Z","links":[{"rel":"self","href":"/Host_27_sv_11_prod"}],"content":{"id":"Host_27_sv_11_prod","type":1,"hlu":2,"isReadOnly":false,"host":{"id":"Host_27"},"lun":{"id":"sv_11"}}},     
      {"@base":"https://XX.XX.XX.XX/api/instances/hostLUN","updated":"2019-05-09T11:02:49.172Z","links":[{"rel":"self","href":"/Host_55_sv_11_prod"}],"content":{"id":"Host_55_sv_11_prod","type":1,"hlu":3,"isReadOnly":false,"host":{"id":"Host_55"},"lun":{"id":"sv_11"}}}]}     
      [80874|doExportGroupCreate] INFO HostLunRequests.java (line 50) Found hostLun Host_55_sv_11_prod     
      [80874|doExportGroupCreate] INFO VNXeApiClient.java (line 1565) Modify hlu     
      [80874|doExportGroupCreate] INFO VNXeApiClient.java (line 1574) Done exporting lun: sv_11
   
   
    The export of the second LUN (sv_12) using HLU = 3 fails as the first lun (sv_11) is now exported to the host (Host_55) with a HLU value of 3.   
   
    [80874|doExportGroupCreate] INFO VNXeExportOperations.java (line 133) hlu 3     
      [80874|doExportGroupCreate] INFO VNXeApiClient.java (line 1497) Exporting lun: sv_12     
      [80874|doExportGroupCreate] INFO KHRequests.java (line 405) getting data: /api/instances/lun/sv_12      
      [80874|doExportGroupCreate] INFO KHRequests.java (line 614) Setting fields:name,wwn,pool,storageResource,health,sizeTotal,sizeAllocated,isThinEnabled,snapWwn,snapsSize,hostAccess,snapCount,type     
      [80874|doExportGroupCreate] INFO KHRequests.java (line 412) 200:Client response status: 200     
      [80874|doExportGroupCreate] INFO HostLunRequests.java (line 32) Finding hostLun for lunId: sv_12, hostId: Host_55     
      [80874|doExportGroupCreate] INFO KHRequests.java (line 152) getting data: /api/types/hostLUN/instances     
      [80874|doExportGroupCreate] INFO KHRequests.java (line 614) Setting fields:host,type,hlu,lun,snap,isReadOnly     
      [80874|doExportGroupCreate] INFO KHRequests.java (line 412) 200:Client response status: 200     
      [80874|doExportGroupCreate] INFO KHRequests.java (line 161) got data:      
      {"@base":"https://XX.XX.XX.XX/api/types/hostLUN/instances?filter=lun.id eq \"sv_12\"&fields=host,type,hlu,lun,snap,isReadOnly&per_page=2000","updated":"2019-05-09T11:02:59.940Z","links":[{"rel":"self","href":"&page=1"}],"entries":[     
      {"@base":"https://XX.XX.XX.XX/api/instances/hostLUN","updated":"2019-05-09T11:02:59.940Z","links":[{"rel":"self","href":"/Host_22_sv_12_prod"}],"content":{"id":"Host_22_sv_12_prod","type":1,"hlu":4,"isReadOnly":false,"host":{"id":"Host_22"},"lun":{"id":"sv_12"}}},     
      {"@base":"https://XX.XX.XX.XX/api/instances/hostLUN","updated":"2019-05-09T11:02:59.940Z","links":[{"rel":"self","href":"/Host_23_sv_12_prod"}],"content":{"id":"Host_23_sv_12_prod","type":1,"hlu":4,"isReadOnly":false,"host":{"id":"Host_23"},"lun":{"id":"sv_12"}}},     
      {"@base":"https://XX.XX.XX.XX/api/instances/hostLUN","updated":"2019-05-09T11:02:59.940Z","links":[{"rel":"self","href":"/Host_27_sv_12_prod"}],"content":{"id":"Host_27_sv_12_prod","type":1,"hlu":3,"isReadOnly":false,"host":{"id":"Host_27"},"lun":{"id":"sv_12"}}},     
      {"@base":"https://XX.XX.XX.XX/api/instances/hostLUN","updated":"2019-05-09T11:02:59.940Z","links":[{"rel":"self","href":"/Host_55_sv_12_prod"}],"content":{"id":"Host_55_sv_12_prod","type":1,"hlu":0,"isReadOnly":false,"host":{"id":"Host_55"},"lun":{"id":"sv_12"}}}]}     
      [80874|doExportGroupCreate] INFO HostLunRequests.java (line 50) Found hostLun Host_55_sv_12_prod     
      [80874|doExportGroupCreate] INFO VNXeApiClient.java (line 1565) Modify hlu     
      [80874|doExportGroupCreate] ERROR KHRequests.java (line 663) POST request to:/api/instances/host/Host_55/action/modifyHostLUNs failed with status code: 422 message: {"error":{"errorCode":100663552,"httpStatusCode":422,"messages":[{"en-US":"The specified Host LUN ID conflicted with existing LUNs for this host. (Error Code:0x6000100)"}],"created":"2019-05-09T11:03:03.881Z"}}     
      [80874|doExportGroupCreate] ERROR VNXeExportOperations.java (line 177) Unexpected error: createExportMask failed.     
      com.emc.storageos.vnxe.VNXeException: The POST /api/instances/host/Host_55/action/modifyHostLUNs failed with the status code: 422 and the message: {"error":{"errorCode":100663552,"httpStatusCode":422,"messages":[{"en-US":"The specified Host LUN ID conflicted with existing LUNs for this host. (Error Code:0x6000100)"}],"created":"2019-05-09T11:03:03.881Z"}} 
   
   
    Note: The second volume when exported to the host, gets a default HLU value of 0, and then we attempt to modify the HLU value to match the ExportGroup value via the  REST API command below:    
    "POST /api/instances/host/<id>/action/modifyHostLUNs"
                                                           

 

 

Resolution:

 

 

   

      A solution exists for this issue, but intervention from EMC technical support personnel is required.       
       
        Contact the EMC Customer Support Center or your service representative for technical assistance and quote this article ID.
     
      Include the ViPR Controller Order History text as well as logs covering the time frame when you contact EMC for technical assistance.