#397 set ansible_python_interpreter to avoid module_stderr
Closed by jskladan. Opened by lnie.
taskotron/ lnie/libtaskotron set-python-interpreter  into  feature/ansiblize

Download 397.patch

you will see the following failure without this pr when you runtask using testcloud:
"changed": false, "failed": true, "module_stderr": "Shared connection to 192.168.122.201 closed.\r\n", "module_stdout": "/bin/sh: /usr/bin/python: No such file or directory\r\n", "msg": "MODULE FAILURE", "rc": 0}
The runtask will run successfully if you pre-install python in the testcloud vm,
or we can change the default interpreter like this pr dose.
testplan:
runtask -d -i gzip-1.8-1.fc25 -t koji_build --libvirt -a x86_64 task-rpmlint/run_tests.yml

Yes, this would solve the issue, as in "this particular error would not be shown", but Ansible is not fully Python3 compatible. Even if it were, our code (aka our ansible modules, which are, or will be created to replace the current libtaskoton's directives) is not.
Good catch on the error, but this can not be merged.

Pull-Request has been closed by jskladan

Got it,should I send another pull request to fix this by pre-install python,or just leave it alone?

@lnie - please create a ticket describing the problem. If something is missing in the images we create for taskotron, it should be fixed directly in https://pagure.io/taskotron/base_images thanks!

I created the ticket here:
https://pagure.io/taskotron/base_images/issue/5

Metadata