Bug 1470630 - Can't get bindings
Summary: Can't get bindings
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Derek Carr
QA Contact: DeShuai Ma
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-13 10:32 UTC by DeShuai Ma
Modified: 2017-07-17 03:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-13 19:42:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description DeShuai Ma 2017-07-13 10:32:48 UTC
Description of problem:
After install service-catalog by openshift-ansible, I can get broker, serviceclass, instances; but when get bindings reture error.

Version-Release number of selected component (if applicable):
openshift v3.6.143
kubernetes v1.6.1+5115d708d7
etcd 3.2.1

How reproducible:
Always

Steps to Reproduce:
1. Get bindings
[root@host-8-174-68 dma]# oc get bindings
Error from server (MethodNotAllowed): the server does not allow this method on the requested resource

Actual results:
1. Failed get bindings

Expected results:
1. Get bingdings success

Additional info:
[root@host-8-174-68 dma]# oadm policy who-can get bindings
Namespace: kube-service-catalog
Verb:      get
Resource:  bindings

Users:  dma
        system:admin
        system:serviceaccount:default:router
        system:serviceaccount:kube-service-catalog:default
        system:serviceaccount:kube-service-catalog:service-catalog-controller
        system:serviceaccount:kube-system:generic-garbage-collector
        system:serviceaccount:kube-system:namespace-controller
        system:serviceaccount:management-infra:management-admin
        system:serviceaccount:openshift-ansible-service-broker:asb
        system:serviceaccount:openshift-infra:template-instance-controller

Groups: system:cluster-admins
        system:cluster-readers
        system:masters

[root@host-8-174-68 dma]# oc whoami
system:admin

Comment 1 Jordan Liggitt 2017-07-13 19:42:13 UTC
you need to fully-qualify bindings.servicecatalog.k8s.io

there is a "bindings" resource in the core kubernetes API that does not support list

Comment 2 DeShuai Ma 2017-07-14 05:32:22 UTC
(In reply to Jordan Liggitt from comment #1)
> you need to fully-qualify bindings.servicecatalog.k8s.io
> 
> there is a "bindings" resource in the core kubernetes API that does not
> support list

Thanks for your info. This two resource is totally different but same name, Nee rename ?
I'll create a upstream issue to talk about that. https://github.com/kubernetes-incubator/service-catalog/issues/1031


Note You need to log in before you can comment on or make changes to this bug.