-
Notifications
You must be signed in to change notification settings - Fork 3
Description
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}