You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ansible 2.6.20
config file = /home/mark/ansible.cfg
configured module search path = [u'/home/mark/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/mark/ansible-2.6/lib/python2.7/site-packages/ansible
executable location = /home/mark/ansible-2.6/bin/ansible
python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
Using /home/mark/ansible.cfg as config file
setting up inventory plugins
Parsed /etc/ansible/hosts inventory source with ini plugin
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
Loading callback plugin minimal of type stdout, v2.0 from /home/mark/ansible-2.6/lib/python2.7/site-packages/ansible/plugins/callback/minimal.pyc
ERROR! Unexpected Exception, this is probably a bug: invalid syntax (fake_filesystem.py, line 1195)
the full traceback was:
Traceback (most recent call last):
File "/home/mark/ansible-2.6/bin/ansible", line 118, in <module>
exit_code = cli.run()
File "/home/mark/ansible-2.6/lib/python2.7/site-packages/ansible/cli/adhoc.py", line 181, in run
result = self._tqm.run(play)
File "/home/mark/ansible-2.6/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py", line 231, in run
self.load_callbacks()
File "/home/mark/ansible-2.6/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py", line 193, in load_callbacks
for callback_plugin in callback_loader.all(class_only=True):
File "/home/mark/ansible-2.6/lib/python2.7/site-packages/ansible/plugins/loader.py", line 489, in all
module = self._load_module_source(name, path)
File "/home/mark/ansible-2.6/lib/python2.7/site-packages/ansible/plugins/loader.py", line 357, in _load_module_source
module = imp.load_source(full_name, path, module_file)
File "/home/mark/ansible-2.6/lib/python2.7/site-packages/ara/plugins/callbacks/log_ara.py", line 29, in <module>
from ara.webapp import create_app
File "/home/mark/ansible-2.6/lib/python2.7/site-packages/ara/webapp.py", line 39, in <module>
from ara.utils import fast_count
File "/home/mark/ansible-2.6/lib/python2.7/site-packages/ara/utils.py", line 24, in <module>
import pyfakefs.fake_filesystem as fake_filesystem
File "/home/mark/ansible-2.6/lib/python2.7/site-packages/pyfakefs/fake_filesystem.py", line 1195
def utime(self, path, times=None, *, ns=None, follow_symlinks=True):
^
SyntaxError: invalid syntax
What should be happening ?
Ansible gathers facts.
Analysis
pyfakefs 4.0.0 and 4.0.1 were released yesterday, apparently without python2 support. Looks like we need to pin.
pip install 'pyfakefs<4'
Now it works.
The text was updated successfully, but these errors were encountered:
Thanks @markgoddard for the issue. I'm back and have time to look into this.
The patch you sent ( https://review.opendev.org/#/c/711240/ ) looks fine to me but I'll need to untangle the CI a bit. I'll get a dot release out for 0.x once I manage to land the patch.
pyfakefs 4.0.0 dropped support for Python 2. This change fixes the issue
by pinning pyfakefs to <4.
Fixes: #118
Change-Id: I3ee0d0b17d3ff3938c92f6ad87e6fa2e0865b5d3
What component is this about ?
Callback plugin.
What is your ARA installation like ?
This is affecting Kolla Ansible CI on stable branches that use Python 2: https://bugs.launchpad.net/kolla-ansible/+bug/1866079.
Reproducing on a CentOS 7.7 box:
Now gather facts:
./ansible-2.6/bin/ansible localhost -m setup -e ansible_python_interpreter=$(which python) -vvvv
What is happening ?
Ansible fails:
What should be happening ?
Ansible gathers facts.
Analysis
pyfakefs 4.0.0 and 4.0.1 were released yesterday, apparently without python2 support. Looks like we need to pin.
pip install 'pyfakefs<4'
Now it works.
The text was updated successfully, but these errors were encountered: