cancel
Showing results for 
Search instead for 
Did you mean: 

Insight VM workflow to update

Insight VM workflow to update

Yoann_Jonard
New Contributor III

Hello @Ludovico_Steven ,

A small improvement to your "Deploy Insight VM" workflow.

By default, with Fabric Engine 9.0.4.0, XIQ-SE 25.5.10.64, the script fails at "terminal more disable".

Error: cli session was closed
Aborting script due to error on previous command
Aborting because this command failed: terminal more disable
Traceback (most recent call last):

 Looking at others workflow, it looks like the command sendCLI_showCommand() for the very first command, needs to be sent with a retry (my guess is that the script is faster than the time it takes for the session to open).

So 

sendCLI_showCommand(CLI_Dict[Family]['disable_more_paging'])

should be replaced with

sendCLI_showCommand(CLI_Dict[Family]['disable_more_paging'], retries=cliRetries, retryDelay=cliRetryDelay)

with either cliRetries and cliRetryDelay set in the script, or defined in the workflow and referenced as variables.

try:
        cliRetries           = int( emc_vars['const_CLI_RETRIES'] )
    except:
        cliRetries           = 6
    try:
        cliRetryDelay        = int( emc_vars['const_CLI_RETRY_DELAY'] )
    except:
        cliRetryDelay        = 10

 With this short correction the workflow works fine.

Also if I can suggest a small improvement, it would be to rollback the installation if the workflow does not complete. I ran the workflow and it failed at the VM deployment (due to a misconfiguration), if I want to rerun the workflow it fails since the VM tpvm already exists. This is out of my coding skills to implement this improvement though, but for information.

Best regards,


Yoann Jonard
SIER SARL
Switzerland
1 REPLY 1

Ludovico_Steven
Extreme Employee

Hi Yoann

Thanks for reporting the issue! I have made the changes and re-posted version 103 of the workflow to Github.

About reverting the switch back to initial state (trashing the partially created VM..) please use this XIQ-SE script for that :
https://github.com/extremenetworks/ExtremeScripting/blob/master/XMC_XIQ-SE/oneview_CLI_scripts/xml/D... 

Best regards

Ludovico

GTM-P2G8KFN