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

Failed to find devworkspace with id: workspace694f8b9811b240be in namespace: null #92

Closed
Tracked by #21254 ...
dkwon17 opened this issue Mar 15, 2022 · 0 comments · Fixed by #97
Closed
Tracked by #21254 ...

Failed to find devworkspace with id: workspace694f8b9811b240be in namespace: null #92

dkwon17 opened this issue Mar 15, 2022 · 0 comments · Fixed by #97

Comments

@dkwon17
Copy link
Contributor

dkwon17 commented Mar 15, 2022

When running a telemetry plugin within a DevWorkspace by running ./mvnw quarkus:dev, sometimes the plugin fails to retrieve the namespace the devworkspace pod is running in:

sh-4.4$ ./mvnw --settings=settings.xml quarkus:dev -Dquarkus.http.port=4167
[INFO] Scanning for projects...
[INFO] 
[INFO] --< org.eclipse.che.incubator:devworkspace-telemetry-example-plugin >---
[INFO] Building devworkspace-telemetry-example-plugin 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- quarkus-maven-plugin:2.7.2.Final:dev (default-cli) @ devworkspace-telemetry-example-plugin ---
[INFO] Invoking org.apache.maven.plugins:maven-resources-plugin:2.6:resources) @ devworkspace-telemetry-example-plugin
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Invoking io.quarkus.platform:quarkus-maven-plugin:2.7.2.Final:generate-code) @ devworkspace-telemetry-example-plugin
[INFO] Invoking org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile) @ devworkspace-telemetry-example-plugin
[INFO] Nothing to compile - all classes are up to date
[INFO] Invoking org.apache.maven.plugins:maven-resources-plugin:2.6:testResources) @ devworkspace-telemetry-example-plugin
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /projects/devworkspace-telemetry-example-plugin/src/test/resources
[INFO] Invoking io.quarkus.platform:quarkus-maven-plugin:2.7.2.Final:generate-code-tests) @ devworkspace-telemetry-example-plugin
[INFO] Invoking org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile) @ devworkspace-telemetry-example-plugin
[INFO] No sources to compile
Listening for transport dt_socket at address: 5005
2022-03-09 17:05:46,530 INFO  [io.qua.sma.openapi] (build-59) OpenAPI JSON saved: /projects/devworkspace-telemetry-example-plugin/target/openapi.json
2022-03-09 17:05:46,558 INFO  [io.qua.sma.openapi] (build-59) OpenAPI YAML saved: /projects/devworkspace-telemetry-example-plugin/target/openapi.yaml
__  ____  __  _____   ___  __ ____  ______ 
 --/ __ \/ / / / _ | / _ \/ //_/ / / / __/ 
 -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \   
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/   
2022-03-09 17:05:47,866 WARN  [io.fab.kub.cli.int.VersionUsageUtils] (Quarkus Main Thread) The client is using resource type 'devworkspaces' with unstable version 'v1alpha2'

2022-03-09 17:05:48,222 WARN  [org.ecl.che.inc.wor.tel.fin.DevWorkspaceFinderImpl] (Quarkus Main Thread) Failed to find devworkspace with id: workspace694f8b9811b240be in namespace: null: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://172.30.0.1/apis/workspace.devfile.io/v1alpha2/devworkspaces. Message: Forbidden! User developer doesn't have permission. devworkspaces.workspace.devfile.io is forbidden: User "dkwon17" cannot list resource "devworkspaces" in API group "workspace.devfile.io" at the cluster scope.

Maybe we must further configure the Kubernetes client here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant