Reported On:    2022-09-12 14:23 PDT 


Issue description:

 When trying to upload the 21.2.3 image to a branch in preparation for the upgrade from Director UI. we get the below error message 


Error uploading upgrade package: Unable to determine appliance os type


Workaround: 


We were able to fix this by tweaking the remote_connect.py script

Login to the Director shell and edit the file  /opt/versa/vnms/scripts/remote_connect.py  


modify the DEFAULT_SHELL_PATTERN change $ to ~  (or)   include both $ and ~


Before Applying Workaround:


SHELL_PROMPT_PATTERNS = {

        'DEFAULT_SHELL_PATTERN':'.*@.*\\$',

        'CLI_PATTERN':'.*@.*>',

        'CLI_SHELL_PATTERN':'.*@.*\\#',

        'PASSWORD_PROMPT_PATTERN':'.* password:',

        'NO_LOGIN_PATTERN':'This account is currently not available.'

}


After Applying the Workaround:


SHELL_PROMPT_PATTERNS = {

        'DEFAULT_SHELL_PATTERN':'.*@.*\\~|\\$',

        'CLI_PATTERN':'.*@.*>',

        'CLI_SHELL_PATTERN':'.*@.*\\#',

        'PASSWORD_PROMPT_PATTERN':'.* password:',

        'NO_LOGIN_PATTERN':'This account is currently not available.'

}



BUG ID: 86077- OS-Type not getting fetched due to string change in remote_connect.py

Target fix release: 21.2.3 April 13th hot-fix image (versa-director-20230413-100510-6830ddb-21.2.3)