Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-1156

Openshift 4.1 - role binding step fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.2.2
    • 1.2.2
    • documentation, testing
    • None

    Description

      11:44:57 time="2019-11-06T11:44:57-08:00" level=info msg="Deleting orphaned pods"
      11:44:58 time="2019-11-06T11:44:58-08:00" level=info msg="Deleting secrets"
      11:44:58 time="2019-11-06T11:44:58-08:00" level=info msg="Recreating CRD"
      11:44:58 time="2019-11-06T11:44:58-08:00" level=info msg="Recreating docker auth secret"
      11:44:58 time="2019-11-06T11:44:58-08:00" level=info msg="Recreating role"
      11:44:58 time="2019-11-06T11:44:58-08:00" level=info msg="Recreating service account"
      11:45:00 time="2019-11-06T11:45:00-08:00" level=info msg="Recreating role binding"
      11:45:00
      — FAIL: TestOperator (8.17s)
      11:45:00 suite_test.go:305: Failed to setup framework: rolebindings.rbac.authorization.k8s.io "couchbase-operator" is forbidden: the server could not find the requested resource (get rolebindingrestrictions.authorization.openshift.io)
      11:45:00 FAIL
      11:45:00 time="2019-11-06T11:45:00-08:00" level=info msg="Cleaning up namespace: default"
      11:45:00 time="2019-11-06T11:45:00-08:00" level=info msg="Deleting jobs"
      11:45:00 time="2019-11-06T11:45:00-08:00" level=info msg="Deleting Couchbase clusters"
      11:45:00 time="2019-11-06T11:45:00-0

      Able to manually reproduce it - follow steps here in documentation https://docs.couchbase.com/operator/current/install-openshift.html

      To assign the role to the service account:

      HQ-Arun0477:couchbase-autonomous-operator-openshift_1.2.2-macos-x86_64 arunkumarsenthilnathan$ oc create rolebinding couchbase-operator-rolebinding --role couchbase-operator --serviceaccount default:couchbase-operator --namespace default
      Error from server (Forbidden): rolebindings.rbac.authorization.k8s.io "couchbase-operator-rolebinding" is forbidden: the server could not find the requested resource (get rolebindingrestrictions.authorization.openshift.io)

      Same error as seen in tests

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            arunkumar Arunkumar Senthilnathan (Inactive)
            arunkumar Arunkumar Senthilnathan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty