ScaleIO: Unable to register ScaleIO with ESRS

           

   Article Number:     497684                                   Article Version: 4     Article Type:    Break Fix 
   

 


Product:

 

ScaleIO 2.0,ScaleIO 2.0.0,ScaleIO 2.0.0.1,ScaleIO 2.0.0.2,ScaleIO 2.0.0.3,ScaleIO 2.0.1,ScaleIO 2.0.1.1,ScaleIO 2.0.1.2

 

Issue:

 

 

   

      Issue Description   

   

      Unable to register ScaleIO with ESRS   

   

      Scenario   

   

      Trying to register a 2.x ScaleIO cluster with ESRS results in failure to register   

   

      Symptoms   

   

      - Trying to register a 2.x ScaleIO cluster gives us this error message:     
        Operation failed: Error Code: ESRS_CREDENTIALS_INVALID Error message: response code: 500    

   

      - Customer is using the correct parameters to register the cluster   

   

      - Checking the Gateway logs shows this (/opt/emc/scaleio/gateway/logs/scaleio.log):   

   
2017-01-23 05:13:18,742 [http-nio-443-exec-9] INFO  c.e.scaleio.esrsmanager.EsrsManager - In ESRSManager.registerESRSGateway2017-01-23 05:13:18,743 [http-nio-443-exec-9] ERROR c.e.s.scaleio.lockbox.LockBoxService - Can't attach to LockBox due to The Lockbox file was not found. : File : /opt/emc/scaleio/gateway/conf/lck_xml/csp.clb2017-01-23 05:13:18,743 [http-nio-443-exec-9] ERROR c.e.s.scaleio.lockbox.LockBoxService - Trying to use LockBox, but it doesn't exist yet.2017-01-23 05:13:18,743 [http-nio-443-exec-9] ERROR c.e.s.s.services.GeneralServiceImp - Can't read MDM password from the LockBox. LockBox error code - LOCKBOX_DOES_NOT_EXIST2017-01-23 05:13:18,744 [http-nio-443-exec-9] ERROR c.e.s.scaleio.lockbox.LockBoxService - Can't attach to LockBox due to The Lockbox file was not found. : File : /opt/emc/scaleio/gateway/conf/lck_xml/csp.clb2017-01-23 05:13:18,744 [http-nio-443-exec-9] ERROR c.e.s.scaleio.lockbox.LockBoxService - Trying to use LockBox, but it doesn't exist yet.2017-01-23 05:13:18,744 [http-nio-443-exec-9] ERROR c.e.s.s.services.GeneralServiceImp - Can't read MDM user name from the LockBox. LockBox error code - LOCKBOX_DOES_NOT_EXIST2017-01-23 05:13:18,774 [http-nio-443-exec-9] WARN  o.s.web.client.RestTemplate - POST request for "https://10.1.1.153:9443/esrs/v1/devices/ScaleIO/" resulted in 401 (Unauthorized); invoking error handler2017-01-23 05:13:18,776 [http-nio-443-exec-9] ERROR c.e.s.esrsmanager.ESRSConnector - Couldn't send message on preferred\forced  preferred: 10.1.1.153:9443 Forced IP: 10.1.1.153:9443 Return status: 401org.springframework.web.client.HttpClientErrorException: 401 Unauthorized    
   

      Impact   

   

      Cannot register the cluster with ESRS and thus no auto dial-home SRs can be created   

                                                             

 

 

Cause:

 

 

The lockbox file was never created or was created and is now no longer available                                                           

 

 

Resolution:

 

 

   

      Workaround   

   

      Create/Recreate the lockbox file:   

   

      Step 1: Create the lockbox file     
      <SioGWTool_PATH> --change_lb_passphrase --new_passphrase <NEW_PASSPHRASE>   

   

      Step 2: Add MDM credentials to the lockbox     
      <SioGWTool_PATH> --set_mdm_credentials --mdm_user <MDM_USERNAME> --mdm_password <MDM_PASSWORD>   

   

      Step 3: Restart the Gateway service   

   

      Note*:     
      Linux SioGWTool path: /opt/emc/scaleio/gateway/bin/SioGWTool.sh       
        Windows SioGWTool path: C:\Program Files\EMC\ScaleIO\Gateway\bin\SioGWTool.bat
   

   

          

   

      Impacted versions   

   

      ScaleIO 2.x and above   

   

      Fixed in version   

   

      Not a bug. Working as designed