Closed matsuda73 closed 4 years ago
Hi, I just tested loadConfigFile.py to load bgp_ngpf_9.00.ixncfg.
I'm using Linux API server on ESXi: Version 9.00.100.213 (Update 3) and ixnetwork-restpy 1.0.53.
Basically try to mimic your environment. And I'm able to load the config file.
Can you check if you can load the bgp_ngpf_9.00.ixncfg manually on the Linux API server webUI?
There's 'Browse to upload file' button at the left/bottom of the webUI.
Does your VM have enough mem and cpu resource?
Hi,
I have been able to load bgp_ngpf_9.00.ixncfg manually via WebUI.
Strangely, I found that the file sizes of ixncfg files which I had not been able to load were 1KB before I uploaded the ixncfg file via WebUI.
Note: I created bgp-sample.ixncfg which can be loaded by loadConfigFile.py on this WebUI.
So, I imagine that uploading ixncfg file always fails.
And, I tried Windows API server and saw the similar upload issues.
Linux API server Resources: 8vCPUs/16GB RAM/128GB HDD (default values) is assigned to the VM. Host CPU is 16 CPUs x Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz.
Thanks, Matsuda
Hi,
Config load issue has been resolved after I assigned the full path of the file to configFile variable. It seemed that the local ixncfg file had not been found due to my misconfiguration.
Doesn't loadConfig() method throw any specific exception when there isn't local file?
Thanks, Matsuda
Looks like it's trying to load the file on the API Server, but eventually fails with following error: 2020-07-06 18:13:02 [ixnetwork_restpy.connection] [DEBUG] 200 OK b'{"executionTimeMs":21290.0,"id":"1","state":"ERROR","progress":100,"message":null,"url":"/api/v1/sessions/54/ixnetwork/operations/loadconfig/1","resultUrl":"","result":"Failed to load \'/root/.local/share/Ixia/sdmStreamManager/common/bgp_ngpf_9.00_test.ixncfg\'
If you catch exception on the python script, you will get ixnetwork_restpy.errors.BadRequestError: Failed to load '/root/.local/share/Ixia/sdmStreamManager/common/bgp_ngpf_9.00_test.ixncfg'
Hi,
loadConfigFile.py always fails to load bgp_ngpf_9.00.ixncfg. I confirmed that IxNetwork GUI can load the ixncfg file and run test without any issues. How can I troubleshoot?
I use Linux API server on ESXi: Version 9.00.100.213 (Update 3) and ixnetwork-restpy 1.0.53. (restpy.log snippet)
On the other hand, bgp-sample.ixncfg which I created myself can be loaded with the same environment. (restpy.log snippet)
bgp-sample.ixncfg is smaller than bgp_ngpf_9.00.ixncfg.
Similarly, loadQuicTest.py with ngpfQuickTest2ports_8.50.ixncfg doesn't work at my environment.
Thanks, Matsuda