Bug 1467860
| Summary: | system:serviceaccount:kube-service-catalog:default does not have enough permission | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Johnny Liu <jialiu> |
| Component: | Installer | Assignee: | ewolinet |
| Status: | CLOSED ERRATA | QA Contact: | Johnny Liu <jialiu> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 3.6.0 | CC: | aos-bugs, jmatthew, jokerman, jpeeler, mmccomas, sdodson, xtian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: |
This is a bug that originated from a new 3.6 feature
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-10 05:29:50 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Johnny Liu
2017-07-05 11:05:37 UTC
Currently the latest puddle QE get is AtomicOpenShift/3.6/2017-07-07.2, but its openshift-ansible version openshift-ansible-3.6.126.14-1.git.0.efd80ab.el7, does not have this PR merged. Verified this bug with openshift-ansible-3.6.138-1.git.0.2c647a9.el7.noarch, and PASS. No permission error log is seen in controller-manager pod. Pls ignore comment 5, it is tested with wrong steps. Re-test this bug with openshift-ansible-3.6.140-1.git.0.4a02427.el7.noarch, and FAIL. # oc get broker ansible-service-broker -o json { "apiVersion": "servicecatalog.k8s.io/v1alpha1", "kind": "Broker", "metadata": { "creationTimestamp": "2017-07-11T10:27:10Z", "finalizers": [ "kubernetes-incubator/service-catalog" ], "name": "ansible-service-broker", "resourceVersion": "3643", "selfLink": "/apis/servicecatalog.k8s.io/v1alpha1/brokersansible-service-broker", "uid": "7fa0a1bd-6623-11e7-8be8-0a580a800007" }, "spec": { "url": "http://asb.openshift-ansible-service-broker.svc:1338" }, "status": { "conditions": [ { "lastTransitionTime": "2017-07-11T10:27:10Z", "message": "Error syncing catalog from Broker. Error reconciling serviceClass \"postgresql-apb\" (broker \"ansible-service-broker\"): User \"system:serviceaccount:kube-service-catalog:service-catalog-controller\" cannot create serviceclasses.servicecatalog.k8s.io at the cluster scope", "reason": "ErrorSyncingCatalog", "status": "False", "type": "Ready" } ] } } Log from service catalog conroller-manager pod: <--snip--> I0711 10:28:33.491522 1 controller_broker.go:196] Successfully fetched 2 catalog entries for Broker ansible-service-broker I0711 10:28:33.491533 1 controller_broker.go:198] Converting catalog response for Broker ansible-service-broker into service-catalog API I0711 10:28:33.491677 1 controller_broker.go:207] Successfully converted catalog payload from Broker ansible-service-broker to service-catalog API I0711 10:28:33.491684 1 controller_broker.go:218] Reconciling serviceClass postgresql-apb (broker ansible-service-broker) E0711 10:28:33.503013 1 controller_broker.go:319] Error creating serviceClass postgresql-apb from Broker ansible-service-broker: User "system:serviceaccount:kube-service-catalog:service-catalog-controller" cannot create serviceclasses.servicecatalog.k8s.io at the cluster scope W0711 10:28:33.503031 1 controller_broker.go:226] Error reconciling serviceClass "postgresql-apb" (broker "ansible-service-broker"): User "system:serviceaccount:kube-service-catalog:service-catalog-controller" cannot create serviceclasses.servicecatalog.k8s.io at the cluster scope I0711 10:28:33.503052 1 controller_broker.go:403] Updating ready condition for Broker ansible-service-broker to False I0711 10:28:33.503495 1 event.go:217] Event(v1.ObjectReference{Kind:"Broker", Namespace:"", Name:"ansible-service-broker", UID:"7fa0a1bd-6623-11e7-8be8-0a580a800007", APIVersion:"servicecatalog.k8s.io", ResourceVersion:"3643", FieldPath:""}): type: 'Warning' reason: 'ErrorSyncingCatalog' Error reconciling serviceClass "postgresql-apb" (broker "ansible-service-broker"): User "system:serviceaccount:kube-service-catalog:service-catalog-controller" cannot create serviceclasses.servicecatalog.k8s.io at the cluster scope I0711 10:28:33.521721 1 controller_broker.go:408] Updated ready condition for Broker ansible-service-broker to False I0711 10:28:33.521751 1 controller.go:195] Error syncing Broker ansible-service-broker: User "system:serviceaccount:kube-service-catalog:service-catalog-controller" cannot create serviceclasses.servicecatalog.k8s.io at the cluster scope I0711 10:28:34.943007 1 leaderelection.go:204] succesfully renewed lease kube-service-catalog/service-catalog-controller-manager I0711 10:28:36.951757 1 leaderelection.go:204] succesfully renewed lease kube-service-catalog/service-catalog-controller-manager I0711 10:28:38.960979 1 leaderelection.go:204] succesfully renewed lease kube-service-catalog/service-catalog-controller-manager I0711 10:28:40.969358 1 leaderelection.go:204] succesfully renewed lease kube-service-catalog/service-catalog-controller-manager <--snip--> Verified this bug with openshift-ansible-3.6.144-1.git.0.50e12bf.el7.noarch, and PASS.
After run "curl -H 'X-Broker-API-Version: 2.9' -X POST http://<asb-svc>:1338/v2/bootstrap".
# oc get broker ansible-service-broker -o json
{
"apiVersion": "servicecatalog.k8s.io/v1alpha1",
"kind": "Broker",
"metadata": {
"creationTimestamp": "2017-07-14T09:00:12Z",
"finalizers": [
"kubernetes-incubator/service-catalog"
],
"name": "ansible-service-broker",
"resourceVersion": "11168",
"selfLink": "/apis/servicecatalog.k8s.io/v1alpha1/brokersansible-service-broker",
"uid": "d8a4314b-6872-11e7-9648-0a580a020002"
},
"spec": {
"url": "http://asb.openshift-ansible-service-broker.svc:1338"
},
"status": {
"conditions": [
{
"lastTransitionTime": "2017-07-14T10:11:52Z",
"message": "Successfully fetched catalog entries from broker.",
"reason": "FetchedCatalog",
"status": "True",
"type": "Ready"
}
]
}
}
No permission error is seen in manager-controller pod.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:1716 |