11-11-2024 03:48 AM
Hi,
I am trying to use the Apply Config Template workflow) (found on https://github.com/extremenetworks/ExtremeScripting/blob/master/XMC_XIQ-SE/oneview_workflows/xwf/App...) since migrating our XIQ-SE from 24.7 to 24.10 but the workflow fails with the following message on the action output:
Traceback (most recent call last):
File "<string>", line 1031, in <module>
File "<string>", line 918, in main
File "<string>", line 717, in readCsvToDict
UnboundLocalError: local variable 'indexKey' referenced before assignment
Traceback (most recent call last):
File "<string>", line 1031, in <module>
File "<string>", line 918, in main
File "<string>", line 717, in readCsvToDict
UnboundLocalError: local variable 'indexKey' referenced before assignment
This worked fine on the previous version, and I have stripped back the config on the referred ASCII config template to just a 'show run' and getting the same, so I think this is a code/workflow issue following the database migration rather than anything I'm doing myself. Any one else seen the same or know how to fix? Looking at the python script it seems to be when the CSV file is imported, but my programming isn't nearly half up to scratch to know what to do!
Thanks
Russ
Solved! Go to Solution.
11-14-2024 03:47 AM
Sorry Ludo, this was my fault.
I was confusing CFG and CSV files when replying before; my CSV file was purposely blank (as the config only references site variables) but I was 99% sure it worked with a blank CSV before our upgrade. I have now pointed the workflow to use the same CSV file I use for our Onboard Mgmt VLAN workflow and can manipulate that if needed so I don't need to duplicate entries in two files. All working as expected now! Many thanks.
11-13-2024 01:32 PM
Ah yes, good point from Rob above:
If your XIQ-SE was installed without “root” access, place the CSV file here instead:
/usr/local/Extreme_Networks/NetSight/appdata/logs/scripting/NetSight_Server
11-14-2024 03:47 AM
Sorry Ludo, this was my fault.
I was confusing CFG and CSV files when replying before; my CSV file was purposely blank (as the config only references site variables) but I was 99% sure it worked with a blank CSV before our upgrade. I have now pointed the workflow to use the same CSV file I use for our Onboard Mgmt VLAN workflow and can manipulate that if needed so I don't need to duplicate entries in two files. All working as expected now! Many thanks.
11-12-2024 09:04 AM
Hi Russ,
Did you use "root" when you did the migration? There is a user guide for this Workflow which mentions using a specific folder if root was not used to install XIQ-SE (or upgrade it).
Rob
11-12-2024 08:42 AM
Hi Russ
Please provide the CSV file and the full activity log, preferably with Debug enabled.
You can email it to me if you prefer (lstevens -at- extremenetworks.com)
Best regards
Ludovico Stevens