-
Notifications
You must be signed in to change notification settings - Fork 3
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
Anible Error while trying to Reattach OpenBach Agents #2
Comments
Hi, Are you able to edit the If so, does it fix your issue? |
It seems to work fine. At least, the agents are now present in the data base, even though I still need to add them manually to the project topology. I will run my scenarios to see if everything still works as expected. What wonders me is that, even though reattaching procedure itself seems to be successful, there is a text generated on the CLI saying that the ansible playbook execution failed. Here it is: [ERROR] |
Yes, that's odd, there is clearly an error, as indicated by the 422 return code. However, the culprit here is |
I'm aware of this problem with APT on my machines. The reason is that I'm working in a very restricted environment. Many APT mirrors are blocked by the company. But the few APT mirrors that are allowed are sufficient for my daily work. And up to now, I could install every jobs that I have needed on the agents. |
I got an ansible error(see below) when trying to reattach agents after detaching them using the auditorium scripts. Detaching works fine, but reattaching them again always fails.
[My OpenBach Topology]:
- Entity name: controller, associated agent: Controller, IP address: 192.168.1.210
- Entity name: TrafficGenerator1, associated agent: test_central, IP address: 192.168.1.211 (the one I'm trying to reattach below)
- Entity name: TrafficGenerator2, associated agent: test_remote, IP address: 192.168.1.212
[CLI Command]:
python3 /usr/local/lib/python3.8/dist-packages/auditorium_scripts/install_agent.py 192.168.1.211 192.168.1.210 TrafficGenerator1 --username <MY_LOGIN_TO_OPENBACH> --password <MY_PASSWORD_TO_OPENBACH> --controller 192.168.1.210 --reattach
[ERROR]:
{'response': {'192.168.1.211': [{'_ansible_no_log': False,
'msg': "The conditional check '{{ item.remove }}' failed. The error was: error while evaluating conditional ({{ item.remove }}): 'dict object' has no attribute "
"'remove'\n"
'\n'
"The error appears to be in '/opt/openbach/controller/ansible/push_files.yml': line 26, column 7, but may\n"
'be elsewhere in the file depending on the exact syntax problem.\n'
'\n'
'The offending line appears to be:\n'
'\n'
'msg': "The conditional check '{{ item.remove }}' failed. The error was: error while evaluating conditional ({{ item.remove }}): 'dict object' has no attribute "
"'remove'\n"
'\n'
"The error appears to be in '/opt/openbach/controller/ansible/push_files.yml': line 26, column 7, but may\n"
'be elsewhere in the file depending on the exact syntax problem.\n'
'\n'
'The offending line appears to be:\n'
'\n'
'\n'
' - name: Remove file on source\n'
' ^ here\n'}],
'error': 'Ansible playbook execution failed'},
'returncode': 422}
{'response': {'192.168.1.211': [{'msg': "The conditional check '{{ item.remove }}' failed. The error was: error while evaluating conditional ({{ item.remove }}): 'dict object' has no attribute 'remove'\n\nThe error appears to be in '/opt/openbach/controller/ansible/push_files.yml': line 26, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Remove file on source\n ^ here\n", '_ansible_no_log': False}], 'error': 'Ansible playbook execution failed'}, 'returncode': 422}
The text was updated successfully, but these errors were encountered: