Exception: Ansible did not run on rbweb successfully



2 years ago
2 years ago


(Reporter: davidwalsh, Assigned: gps)




(1 attachment)



2 years ago
With 454aa6aedeb3 checked out, I'm unable to run `./create-test-environment` successfully.  I'm on docker version 1.12.0, python version 2.7.12.  Stack trace is:

hgweb> PLAY RECAP ********************************************************************
hgweb> localhost                  : ok=117  changed=93   unreachable=0    failed=0
Error running mach:


The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.

You should consider filing a bug for this issue.

If filing a bug, please include the full output of mach, including this error

The details of the failure are as follows:

Exception: Ansible did not run on rbweb successfully

  File "/Users/dwalsh/Projects/version-control-tools/testing/vcttesting/docker_mach_commands.py", line 96, in build_all
    self.d.build_all_images(verbose=True, max_workers=forks)
  File "/Users/dwalsh/Projects/version-control-tools/testing/vcttesting/docker.py", line 1439, in build_all_images
  File "/Users/dwalsh/Projects/version-control-tools/testing/vcttesting/docker.py", line 662, in ensure_images_built
    name, image = f.result()
  File "/Users/dwalsh/Projects/version-control-tools/venv/lib/python2.7/site-packages/concurrent/futures/_base.py", line 398, in result
    return self.__get_result()
  File "/Users/dwalsh/Projects/version-control-tools/venv/lib/python2.7/site-packages/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/Users/dwalsh/Projects/version-control-tools/testing/vcttesting/docker.py", line 621, in build_ansible
  File "/Users/dwalsh/Projects/version-control-tools/testing/vcttesting/docker.py", line 748, in run_ansible
You will not be able to run tests that require Docker.
Please see https://docs.docker.com/installation/ for how to install Docker.
When Docker is installed, re-run this script
You should have some "rbweb" messages in your log further up.  Can you post them?
Also note that Python 2.7.12 has some SSL/TLS-related bugs.  I strongly suggest upgrading to 2.7.13.

Comment 3

2 years ago
Digging further I see:

rbweb> TASK: [mozreview-virtualenv | install dependency packages] ******************** 
rbweb> changed: [localhost] => (item=httpd-devel,libjpeg-turbo-devel,mysql-devel,nodejs,python-devel,openldap-devel,python27,tar,zlib-devel)
rbweb> TASK: [mozreview-virtualenv | install Node packages] ************************** 
rbweb> failed: [localhost] => {"cmd": "/usr/bin/npm install -g less uglify-js", "failed": true, "rc": 2}
rbweb> msg: [Errno 2] No such file or directory
rbweb> FATAL: all hosts have already failed -- aborting
Not sure if that means there's a JS problem with a file (why that would stop uglify installation I have no idea...) or if there's another issue.  Still looking.
I rebuilt my rbweb and am seeing this too.  This is probably what zalun is also seeing.

CI is also busted but seemingly for another reason.
Comment hidden (mozreview-request)

Comment 7

2 years ago
Comment on attachment 8823488 [details]
ansible/rbweb: install npm package (bug 1328353);


Works for me!
Attachment #8823488 - Flags: review?(dwalsh) → review+

Comment 8

2 years ago
Pushed by mcote@mozilla.com:
ansible/rbweb: install npm package ; r=davidwalsh
Last Resolved: 2 years ago
Resolution: --- → FIXED
Assignee: nobody → gps
You need to log in before you can comment on or make changes to this bug.