Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to resolve the problem about "xxx" exec not allowed currently since an operation (xxx) is in progress #81

Open
1201110211 opened this issue May 7, 2024 · 2 comments

Comments

@1201110211
Copy link

Ixnetwork API Server: 9.30.2212.7
ixnetwork-restpy: 1.3.0
ix-os: 9.30.3001.12

i use ixnetwork-restpy to control the ixianetwork api server in windows
since upgrade from ix-os9.10 to ix-os 9.30, sometimes, the server start to response the code 202, state EXCEPTION, and can not recover
I have tried to use TestPlatform().Sessions.find().remove(), but it didn't work, can not resolve this Execution by ixnetwork-restpy

Any method to resolve this problem? i do not want to reload the Ixnetwork API Server

this is the code and traceback:
from ixnetwork_restpy import SessionAssistant
self.session_assistant = SessionAssistant(IpAddress=self.Host_Ip, UserName=self.UserName,
Password=self.Password, LogLevel=SessionAssistant.LOGLEVEL_INFO,
ClearConfig=True)
File "F:\pycharm_project\func_auto_test_box\keywords\Testerlibrary\TesterTrafficStatistics.py", line 444, in cleanup_session
self.session_assistant = SessionAssistant(IpAddress=self.Host_Ip, UserName=self.UserName,
File "C:\python38\lib\site-packages\ixnetwork_restpy\assistants\sessions\sessionassistant.py", line 113, in init
self._ixnetwork.NewConfig()
File "C:\python38\lib\site-packages\ixnetwork_restpy\testplatform\sessions\ixnetwork\ixnetwork.py", line 2116, in NewConfig
return self._execute("newConfig", payload=payload, response_object=None)
File "C:\python38\lib\site-packages\ixnetwork_restpy\base.py", line 452, in _execute
response = self._connection._execute(url, payload)
File "C:\python38\lib\site-packages\ixnetwork_restpy\connection.py", line 289, in _execute
return self._send_recv("POST", url, payload)
File "C:\python38\lib\site-packages\ixnetwork_restpy\connection.py", line 572, in _send_recv
return self._poll()
File "C:\python38\lib\site-packages\ixnetwork_restpy\connection.py", line 640, in _poll
return self._process_response_status_code(
File "C:\python38\lib\site-packages\ixnetwork_restpy\connection.py", line 476, in _process_response_status_code
raise BadRequestError(message, response.status_code)

Before the problem happened, i use these api:
(1) ixnetwork = self.session_assistant.Ixnetwork
capture_config = ixnetwork.Vport.find(AssignedTo=capture_port).Capture
capture_config.HardwareEnabled = True
capture_config.SoftwareEnabled = True
capture_config.Start()
(2) tmp_traffic = ixnetwork.Traffic.TrafficItem.find(Name=tmp_name)
tmp_traffic.StopStatelessTraffic()
step1 and step2 between about 5 second

@arielCO123
Copy link

Have you ever found a solution to this problem? I'm having the same issue

@1201110211
Copy link
Author

Have you ever found a solution to this problem? I'm having the same issue

sadly not, the engineer advise me to check ixia state before using ixianetwork api , however , it doesn't work

process = TestPlatform(ip).Sessions.find().Ixnetwork.Globals.find().ProgressDialog.find()
if process.IsOpen:
    logger.error("there are process remaining")
    time.sleep(10)

xxxxxxxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants