1
0
mirror of https://github.com/openshift/openshift-ansible-contrib.git synced 2026-02-05 09:45:58 +01:00
Tomas Sedovic fbbc88d18a Fix the openshift-ansible CI breakage
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.
2017-11-14 06:57:59 +01:00
2016-05-05 17:10:49 -04:00
2017-10-05 10:26:47 +02:00
2017-11-06 18:06:19 +01:00
2017-10-18 12:53:31 +02:00
2017-01-26 16:51:05 -05:00
2017-08-18 18:02:04 +02:00
2016-03-30 12:26:10 -04:00
2017-01-26 16:51:05 -05:00
2017-01-26 17:12:27 -05:00
2017-01-26 16:51:05 -05:00
2017-01-26 16:51:05 -05:00

OpenShift and Atomic Platform Ansible Contrib

Build
Status

This repository contains unsupported code that can be used in conjunction with the openshift-ansible repository, namely:

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
Description
Additional roles and playbooks for OpenShift installation and management
https://www.openshift.com/
Readme 9.9 MiB
Languages
Python 50.8%
Shell 45.6%
HTML 2.6%
Ruby 1%