VPLEX: Upgrading the management server fails with "cannot generate RSA key error"


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




VPLEX Local,VPLEX Metro,VPLEX for All Flash,VPLEX Series,VPLEX VS2,VPLEX VS6,VPLEX GeoSynchrony 5.4 Service Pack 1,VPLEX GeoSynchrony 5.4 Service Pack 1 Patch 1,VPLEX GeoSynchrony 5.4 Service Pack 1 Patch 3






  •         Management server upgrade fails with "Failed to generate the RSA keys"      
    As seen in the /var/log/install.log   

      2019-02-17 04:46:33,693 DEBUG    Call returned 0       
        2019-02-17 04:46:33,693 DEBUG    Installed version: upgrading -> D50.40.2.4       
        2019-02-17 04:46:33,699 INFO     Generating RSA SSH Keys.       
        2019-02-17 04:46:33,699 DEBUG    Calling command: ['ssh-keygen', '-t', 'rsa', '-N', '', '-f', '/home/service/.ssh/id_rsa', '-q']       
        2019-02-17 04:46:34,081 DEBUG    run: /home/service/.ssh/id_rsa already exists.       
        2019-02-17 05:49:09,185 DEBUG    run: Overwrite (y/n)?       
        2019-02-17 05:49:09,185 DEBUG    Call returned 1       
        2019-02-17 05:49:09,185 ERROR    Failed to generate the rsa keys /home/service/.ssh/id_rsa.







The RSA public key (/home/service/.ssh/id_rsa.pub) was missing/deleted on the management server which caused the management server upgrade script to fail due to invalid user input while generating RSA keys.    







  1.         From the management server shell, Generate RSA keys by executing the below command:      
      service@ManagementServer:~> ssh-keygen -t rsa -N '' -f /home/service/.ssh/id_rsa     
       If the user is prompted for overwrite prompt like below then press 'y' and then 'ENTER':    

                  Overwrite (y/n)? y     
                   Note: In above user prompt, if 'y' input is provided then RSA SSH key generation will be     
              2. Re-try the upgrade.     
      Permanent fix:      
      Dell EMC VPLEX Engineering is currently investigating this problem. Once a fix is available this article will be updated.    







Below RSA SSH keys used by VPLEX should remain untouched on Management Servers:   
    If RSA SSH public key (/home/service/.ssh/id_rsa.pub) is deleted and user provides wrong input while generating RSA SSH keys then key generation will fail.