-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error with join role and Python 3 #5
Comments
Hi, I have not been able to reproduce your first issue. Could you assist me with my investigation? Please rerun the playbook and redirect the output to a file: I have a guess about your second issue. The join is done on the managed nodes. However reports are generated on the controller node. You have /usr/bin/python2.7 on your managed node (moustache) but you do not have /usr/bin/python2.7 on your controller node (where you are running ansible-playbook). Laszlo |
Hi Laszlo, For the second issue you were right. I added python2.7 on the controller node and the report is now generated. For the first issue please find attached to output of the command : Regards, Arthur |
Hi Arthur! Thanks for your help! Unfortunately join_result.txt has not revealed any significant differences between your system and mine. On my test system the join role works with both python 3 and 2. However I tried to understand what the problem could be based on the error message and I have a guess again. Could you assist me again? Laszlo |
Hi Laszlo, I replaced the pmjoin.py with the new one:
But there is always the error, I attach the output, Regards, Arthur |
Hi Arthur, |
Hi,
Safeguard for Sudo : 6.1.1.0
Ansible: ansible [core 2.12.2]
When trying to join an host to the policy server with the privilege_manager.join role I got an error :
ansible-playbook -i hosts.ini run_join.yml --limit "moustache" -vvv -e 'ansible_python_interpreter=/usr/bin/python3.9'
TASK [oneidentity.privilege_manager.join : fail] ********************************************************************************************************************************************************************************************
task path: /root/.ansible/collections/ansible_collections/oneidentity/privilege_manager/roles/join/tasks/pmjoin.yml:17
fatal: [moustache]: FAILED! => {
"changed": false,
"msg": "Traceback (most recent call last):\n File "/tmp/ansible_pmjoin_payload_9qokr0xu/ansible_pmjoin_payload.zip/ansible_collections/oneidentity/privilege_manager/plugins/modules/pmjoin.py", line 257, in run_normal\n File "/tmp/ansible_pmjoin_payload_9qokr0xu/ansible_pmjoin_payload.zip/ansible_collections/oneidentity/privilege_manager/plugins/modules/pmjoin.py", line 311, in run_pmjoin\n File "/tmp/ansible_pmjoin_payload_9qokr0xu/ansible_pmjoin_payload.zip/ansible_collections/oneidentity/privilege_manager/plugins/modules/pmjoin.py", line 368, in run_pmjoin_join\n File "/usr/lib64/python3.9/subprocess.py", line 1134, in communicate\n stdout, stderr = self._communicate(input, endtime, timeout)\n File "/usr/lib64/python3.9/subprocess.py", line 1959, in _communicate\n input_view = memoryview(self._input)\nTypeError: memoryview: a bytes-like object is required, not 'str'\n"
}
Whereas with an interpreter python 2.7 the join is done. There is a just an error for generating the report :
ansible-playbook -i hosts.ini run_join.yml --limit "moustache" -vvv -e 'ansible_python_interpreter=/usr/bin/python2.7'
TASK [oneidentity.privilege_manager.join : generate reports] ********************************************************************************************************************************************************************************
task path: /root/.ansible/collections/ansible_collections/oneidentity/privilege_manager/roles/join/tasks/generate_reports.yml:4
fatal: [moustache -> {{ join_reports_host }}]: FAILED! => {
"msg": "Failed to get information on remote file (join_report.csv): /bin/sh: 1: /usr/bin/python2.7: not found\n"
}
PLAY RECAP **********************************************************************************************************************************************************************************************************************************
moustache : ok=8 changed=1 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0
Arthur
The text was updated successfully, but these errors were encountered: