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

Che on OpenShift is not able to label namespace due to lack of permissions #19401

Closed
4 of 23 tasks
skabashnyuk opened this issue Mar 25, 2021 · 2 comments
Closed
4 of 23 tasks
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@skabashnyuk
Copy link
Contributor

Describe the bug

The default installation of Che on OpenShift is not able to label namespace due to lack of permissions.

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  1. Setup che on OpenShift RHPDS with chectl chectl server:deploy --installer=operator --platform=openshift
  2. Start workspace
  3. New namespace created without lables.

Expected behavior

Namespace labeled successfully.

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Знімок екрана 2021-03-25 о 15 59 29

Installation method

  • chectl
    • provide a full command that was used to deploy Eclipse Che (including the output)
    • provide an output of chectl version command
  • OperatorHub
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • Dev Sandbox (workspaces.openshift.com)
  • other: please specify

Eclipse Che Logs

2021-03-25 13:58:49,667[nio-8080-exec-1]  [WARN ] [.c.w.i.k.n.KubernetesNamespace 193]  - Can't label the namespace due to lack of permissions. Grant cluster-wide permissions to `get` and `update` the `namespaces` to the `che` service account (Che operator might have already prepared a cluster role called `che-na │
│ mespace-editor` for this, depending on its configuration). Alternatively, consider disabling the feature by setting `che.infra.kubernetes.namepsace.label` to `false`.                                                                                                                                                     │
│ 2021-03-25 13:58:49,995[nio-8080-exec-1]  [INFO ] [o.e.c.a.w.s.WorkspaceRuntimes 480]   - Starting workspace 'opentlc-mgr/java-gradle-2yfc4' with id 'workspace6hkm2tzopkyj9lh9' by user 'opentlc-mgr'                                                                                                                     │
│ 2021-03-25 13:58:50,378[aceSharedPool-0]  [WARN ] [.c.w.i.k.n.KubernetesNamespace 193]  - Can't label the namespace due to lack of permissions. Grant cluster-wide permissions to `get` and `update` the `namespaces` to the `che` service account (Che operator might have already prepared a cluster role called `che-na │
│ mespace-editor` for this, depending on its configuration). Alternatively, consider disabling the feature by setting `che.infra.kubernetes.namepsace.label` to `false`.                                                                                                                                                     │
│ 2021-03-25 13:58:50,759[aceSharedPool-0]  [WARN ] [.c.w.i.k.n.KubernetesNamespace 193]  - Can't label the namespace due to lack of permissions. Grant cluster-wide permissions to `get` and `update` the `namespaces` to the `che` service account (Che operator might have already prepared a cluster role called `che-na │
│ mespace-editor` for this, depending on its configuration). Alternatively, consider disabling the feature by setting `che.infra.kubernetes.namepsace.label` to `false`.                                                                                                                                                     │
│ 2021-03-25 13:59:27,987[aceSharedPool-0]  [WARN ] [.c.w.i.k.n.KubernetesNamespace 193]  - Can't label the namespace due to lack of permissions. Grant cluster-wide permissions to `get` and `update` the `namespaces` to the `che` service account (Che operator might have already prepared a cluster role called `che-na │
│ mespace-editor` for this, depending on its configuration). Alternatively, consider disabling the feature by setting `che.infra.kubernetes.namepsace.label` to `false`.                                                                                                                                                     │
│ 2021-03-25 14:01:39,868[aceSharedPool-0]  [INFO ] [o.e.c.a.w.s.WorkspaceRuntimes 974]   - Workspace 'opentlc-mgr:java-gradle-2yfc4' with id 'workspace6hkm2tzopkyj9lh9' started by user 'opentlc-mgr'                                                                                                                      │
  <n

Additional context

@skabashnyuk skabashnyuk added the kind/bug Outline of a bug - must adhere to the bug report template. label Mar 25, 2021
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Mar 25, 2021
@skabashnyuk skabashnyuk added area/che-server area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator severity/P2 Has a minor but important impact to the usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Mar 25, 2021
@skabashnyuk
Copy link
Contributor Author

Cluster role names are now what expected from log's message
Знімок екрана 2021-03-25 о 16 07 13

@tolusha tolusha added severity/P1 Has a major impact to usage or development of the system. and removed severity/P2 Has a minor but important impact to the usage or development of the system. labels Mar 25, 2021
@tolusha tolusha added this to the 7.30 milestone Apr 12, 2021
@tolusha tolusha closed this as completed Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

3 participants