07-24-2024 06:11 AM
I am using the following Workflow https://github.com/extremenetworks/ExtremeScripting/blob/master/XMC_XIQ-SE/oneview_workflows/xwf/Onb... as part of my ZTP+ process which automatically runs during onboarding. I also have it kick off a follow up workflow "Provisioning/Onboard VSP" after it completes.
I am encountering a peculiar issue, the initial workflow (Onboard Mgmt VLAN) kicks off during onboarding but fails saying:
getWorkflowId() worflowCategory = Provisioning / worflowName = Onboard VSP
nbiQuery response = {workflows: {allWorkflows=[]}}
workflowsList = []
getWorkflowId() unable to extract workflowList; query:
{'json': '\n {\n workflows {\n allWorkflows {\n name\n category\n path\n id\n }\n }\n }\n ', 'key': 'allWorkflows'}
Returned None
RuntimeError: SBYYYYYG-XXXXX: Unable to locate workflow id for 'Provisioning/Onboard VSP'
But if I run it manually it works perfectly and kicks off the follow up workflow without issue. It almost sounds like a permissions issue as during onboarding it uses the "Netsight Server" user vs when I run it it uses my USERID. Any thoughts on fixing this ?
Solved! Go to Solution.
07-25-2024 07:35 AM
07-25-2024 07:35 AM
Try adding the NetSightUser to the XIQ-SE Administrator group:
07-25-2024 09:49 AM
Thanks this did it - initially I just hardcoded the workflowId variable to equal the one I was trying to kick off, but this solved the issue as well.
07-25-2024 12:58 AM
ConfigTerminal
Is the workflow with the correct category and the correct name?
See here:
Mig