Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconcile with RBAC file step fails with error unknown shorthand flag: 'f' in -f" #17692

Closed
php-coder opened this issue Dec 8, 2017 · 11 comments
Assignees
Labels
component/auth component/cli component/install kind/test-flake Categorizes issue or PR as related to test flakes. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/P1

Comments

@php-coder
Copy link
Contributor

TASK [template_service_broker : Reconcile with RBAC file] **********************
task path: /usr/share/ansible/openshift-ansible/roles/template_service_broker/tasks/install.yml:51
fatal: [localhost]: FAILED! => {
    "changed": true, 
    "cmd": "oc process -f \"/tmp/tsb-ansible-JOHLFz/rbac-template.yaml\" | oc auth reconcile -f -", 
    "delta": "0:00:00.282855", 
    "end": "2017-12-08 16:23:19.100164", 
    "failed": true, 
    "generated_timestamp": "2017-12-08 16:23:19.117477", 
    "msg": "non-zero return code", 
    "rc": 1, 
    "start": "2017-12-08 16:23:18.817309", 
    "stderr": [
        "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": []
}

Seen there: https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/17687/test_pull_request_origin_extended_conformance_install/3790/

@php-coder
Copy link
Contributor Author

CC @stevekuznetsov

@enj
Copy link
Contributor

enj commented Dec 8, 2017

Uh from the error output it also looks like the entire reconcile command is missing from under oc auth?

cc @simo5 @deads2k @juanvallejo

@enj
Copy link
Contributor

enj commented Dec 8, 2017

Also do pipes / stdout / stderr work correctly when a command is run like this?

@simo5
Copy link
Contributor

simo5 commented Dec 8, 2017

Uhmm why are there escaped quotes around the file name ? is that right ?

@juanvallejo
Copy link
Contributor

@enj

Uh from the error output it also looks like the entire reconcile command is missing from under oc auth?

Yeah, will try to look into this

Also do pipes / stdout / stderr work correctly when a command is run like this?

Usually the resource builder "FilenameParam" takes care of reading from stdin if - is passed

@simo5

Uhmm why are there escaped quotes around the file name ? is that right ?

Yeah, I believe this should not impact the filepath parsed by process

@juanvallejo
Copy link
Contributor

If I'm reading the linked logs correctly, it looks like the tests are using oc ~v3.6?
If so, only can-i was available under oc auth back then https://github.com/openshift/origin/blob/release-3.6/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/auth/auth.go

@simo5
Copy link
Contributor

simo5 commented Dec 8, 2017

then that's the bug, oc v3.7 is needed here

@stevekuznetsov
Copy link
Contributor

That was a PR against release-3.6. Newer OC is not appropriate. Looks like the wrong version of the installer was used

@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 12, 2018
@openshift-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 13, 2018
@openshift-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/auth component/cli component/install kind/test-flake Categorizes issue or PR as related to test flakes. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/P1
Projects
None yet
Development

No branches or pull requests

7 participants