A change in openshift-ansible has broken our CI (and deployments): https://travis-ci.org/openshift/openshift-ansible-contrib/jobs/301329799 ``` TASK [template_service_broker : Reconcile with RBAC file] ********************** Monday 13 November 2017 11:16:35 +0000 (0:00:00.818) 0:15:06.296 ******* fatal: [master-0.openshift-1829.example.com]: FAILED! => {"changed": true, "cmd": "oc process -f \"/tmp/tsb-ansible-C1kuTw/rbac-template.yaml\" | oc auth reconcile -f -", "delta": "0:00:00.355587", "end": "2017-11-13 11:16:36.444135", "failed": true, "rc": 1, "start": "2017-11-13 11:16:36.088548", "stderr": "Error: unknown shorthand flag: 'f' in -f\n\n\nUsage:\n oc auth [options]\n\nAvailable Commands:\n can-i Check whether an action is allowed\n\nUse \"oc <command> --help\" for more information about a given command.\nUse \"oc options\" for a list of global command-line options (applies to all commands).", "stderr_lines": ["Error: unknown shorthand flag: 'f' in -f", "", "", "Usage:", " oc auth [options]", "", "Available Commands:", " can-i Check whether an action is allowed", "", "Use \"oc <command> --help\" for more information about a given command.", "Use \"oc options\" for a list of global command-line options (applies to all commands)."], "stdout": "", "stdout_lines": []} ``` The openshift-ansible issue tracking this: https://github.com/openshift/openshift-ansible/issues/6086 The issue appears to be caused by the ad977b701124f5e134e8c2a0cbc6e907ce177366 commit. And it's not present in the previous commit, i.e.: 56b529e493a5f55ecfc75bc20a807a3d73e03507 Fix examples image streams tag: openshift-ansible-3.7.2-1-8-g56b529e So we switch the CI to use that until the upstream issue is resolved.
OpenShift and Atomic Platform Ansible Contrib
This repository contains unsupported code that can be used in conjunction with the openshift-ansible repository, namely:
- additional roles for OpenShift deployment
- code for provisioning various cloud providers (GCP, AWS, VMware, Azure, OpenStack and Red Hat Virtualization (RHV) / oVirt)
- supporting scripts and playbooks for the various reference architectures Red Hat has published
Contributing
If you're submitting a pull request or doing a code review, please take a look at our contributing guide.
Running tests locally
We use tox to manage virtualenvs and run tests. Alternatively, tests can be run using detox which allows for running tests in parallel
pip install tox detox
List the test environments available:
tox -l
Run all of the tests with:
tox
Run all of the tests in parallel with detox:
detox
Running a particular test environment (python 2.7 flake8 tests in this case):
tox -e py27-ansible22-flake8
Running a particular test environment in a clean virtualenv (python 3.5 yamllint tests in this case):
tox -r -e py35-ansible22-yamllint
If you want to enter the virtualenv created by tox to do additional testing/debugging (py27-flake8 env in this case):
source .tox/py27-ansible22-flake8/bin/activate