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 create or get service for metrics #205

Closed
faust64 opened this issue Nov 21, 2019 · 7 comments
Closed

failed to create or get service for metrics #205

faust64 opened this issue Nov 21, 2019 · 7 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@faust64
Copy link

faust64 commented Nov 21, 2019

Starting the ElasticSearch operator on OpenShift, we would find the following warning:

# oc logs -f elasticsearch-operator-5d4b85bcf8-65cb9
...
{"level":"info","ts":1574348719.3720665,"logger":"kubebuilder.controller","msg":"Starting EventSource","controller":"elasticsearch-controller","source":"kind source: /, Kind="}
{"level":"info","ts":1574348719.5793352,"logger":"cmd","msg":"failed to create or get service for metrics: services \"elasticsearch-operator\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>"}
...

Looks like a warning, though could be worth fixing. Couldn't figure out what's wrong: I don't have an elasticsearch-operator service yet. Tried to create it, with then without an ownerReference to my operator deployment.

Source image for the ElasticSearch operator pod: registry.redhat.io/openshift4/ose-elasticsearch-operator@sha256:69968bc98d29773b89ba9b3c3c5b1fc44d8df5226934683e3029ae14f4829fab

@jcantrill jcantrill added the kind/bug Categorizes issue or PR as related to a bug. label Jan 2, 2020
@matancarmeli7
Copy link

matancarmeli7 commented Jan 9, 2020

Hi, i get it too, there is a way that i can handle this problem for now?
I deployed it with the csv yaml in the manifest directory

@jcantrill
Copy link
Contributor

Starting the ElasticSearch operator on OpenShift, we would find the following warning:

# oc logs -f elasticsearch-operator-5d4b85bcf8-65cb9
...
{"level":"info","ts":1574348719.3720665,"logger":"kubebuilder.controller","msg":"Starting EventSource","controller":"elasticsearch-controller","source":"kind source: /, Kind="}
{"level":"info","ts":1574348719.5793352,"logger":"cmd","msg":"failed to create or get service for metrics: services \"elasticsearch-operator\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>"}
...

Looks like a warning, though could be worth fixing. Couldn't figure out what's wrong: I don't have an elasticsearch-operator service yet. Tried to create it, with then without an ownerReference to my operator deployment.

Source image for the ElasticSearch operator pod: registry.redhat.io/openshift4/ose-elasticsearch-operator@sha256:69968bc98d29773b89ba9b3c3c5b1fc44d8df5226934683e3029ae14f4829fab

How did you deploy the operator?

@faust64
Copy link
Author

faust64 commented Jan 9, 2020

Using OCP (4.2) OperatorHub, following instructions deploying OCP logging stack -- https://docs.openshift.com/container-platform/4.2/logging/cluster-logging-deploying.html, clicking the console, ... I'm not sure what's going on under the hood: if you want me to dump objects, let me know what you're looking for.

@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 25, 2020
@openshift-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 26, 2020
@openshift-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci-robot
Copy link

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

5 participants