Giter Club home page Giter Club logo

Comments (5)

karmab avatar karmab commented on June 24, 2024

issue with vgmanager pod is

I0420 19:13:21.737554 2360300 request.go:665] Waited for 1.026197652s due to client-side throttling, not priority and fairness, request: GET:https://172.30.0.1:443/apis/snapshot.kubevirt.io/v1alpha1?timeout=32s
{"level":"info","ts":1650482004.4948282,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":":8080"}
{"level":"info","ts":1650482004.4951057,"logger":"setup","msg":"starting manager"}
{"level":"info","ts":1650482004.4952693,"msg":"starting metrics server","path":"/metrics"}
{"level":"info","ts":1650482004.4954143,"logger":"controller.lvmvolumegroup","msg":"Starting EventSource","reconciler group":"lvm.topolvm.io","reconciler kind":"LVMVolumeGroup","source":"kind source: /, Kind="}
{"level":"info","ts":1650482004.4955132,"logger":"controller.lvmvolumegroup","msg":"Starting Controller","reconciler group":"lvm.topolvm.io","reconciler kind":"LVMVolumeGroup"}
E0420 19:13:24.498715 2360300 reflector.go:138] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:250: Failed to watch *v1alpha1.LVMVolumeGroup: failed to list *v1alpha1.LVMVolumeGroup: lvmvolumegroups.lvm.topolvm.io is forbidden: User "system:serviceaccount:odf-lvm:vg-manager" cannot list resource "lvmvolumegroups" in API group "lvm.topolvm.io" in the namespace "odf-lvm"
E0420 19:13:25.647058 2360300 reflector.go:138] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:250: Failed to watch *v1alpha1.LVMVolumeGroup: failed to list *v1alpha1.LVMVolumeGroup: lvmvolumegroups.lvm.topolvm.io is forbidden: User "system:serviceaccount:odf-lvm:vg-manager" cannot list resource "lvmvolumegroups" in API group "lvm.topolvm.io" in the namespace "odf-lvm"
E0420 19:13:28.740610 2360300 reflector.go:138] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:250: Failed to watch *v1alpha1.LVMVolumeGroup: failed to list *v1alpha1.LVMVolumeGroup: lvmvolumegroups.lvm.topolvm.io is forbidden: User "system:serviceaccount:odf-lvm:vg-manager" cannot list resource "lvmvolumegroups" in API group "lvm.topolvm.io" in the namespace "odf-lvm"
E0420 19:13:33.447567 2360300 reflector.go:138] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:250: Failed to watch *v1alpha1.LVMVolumeGroup: failed to list *v1alpha1.LVMVolumeGroup: lvmvolumegroups.lvm.topolvm.io is forbidden: User "system:serviceaccount:odf-lvm:vg-manager" cannot list resource "lvmvolumegroups" in API group "lvm.topolvm.io" in the namespace "odf-lvm"
E0420 19:13:43.227955 2360300 reflector.go:138] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:250: Failed to watch *v1alpha1.LVMVolumeGroup: failed to list *v1alpha1.LVMVolumeGroup: lvmvolumegroups.lvm.topolvm.io is forbidden: User "system:serviceaccount:odf-lvm:vg-manager" cannot list resource "lvmvolumegroups" in API group "lvm.topolvm.io" in the namespace "odf-lvm"
E0420 19:14:03.151838 2360300 reflector.go:138] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:250: Failed to watch *v1alpha1.LVMVolumeGroup: failed to list *v1alpha1.LVMVolumeGroup: lvmvolumegroups.lvm.topolvm.io is forbidden: User "system:serviceaccount:odf-lvm:vg-manager" cannot list resource "lvmvolumegroups" in API group "lvm.topolvm.io" in the namespace "odf-lvm"
E0420 19:14:42.636428 2360300 reflector.go:138] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:250: Failed to watch *v1alpha1.LVMVolumeGroup: failed to list *v1alpha1.LVMVolumeGroup: lvmvolumegroups.lvm.topolvm.io is forbidden: User "system:serviceaccount:odf-lvm:vg-manager" cannot list resource "lvmvolumegroups" in API group "lvm.topolvm.io" in the namespace "odf-lvm"
E0420 19:15:21.048957 2360300 reflector.go:138] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:250: Failed to watch *v1alpha1.LVMVolumeGroup: failed to list *v1alpha1.LVMVolumeGroup: lvmvolumegroups.lvm.topolvm.io is forbidden: User "system:serviceaccount:odf-lvm:vg-manager" cannot list resource "lvmvolumegroups" in API group "lvm.topolvm.io" in the namespace "odf-lvm"
{"level":"error","ts":1650482124.502881,"logger":"controller.lvmvolumegroup","msg":"Could not wait for Cache to sync","reconciler group":"lvm.topolvm.io","reconciler kind":"LVMVolumeGroup","error":"failed to wait for lvmvolumegroup caches to sync: timed out waiting for cache to be synced","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start\n\t/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:234\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1\n\t/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/manager/internal.go:696"}
{"level":"error","ts":1650482124.5031688,"logger":"setup","msg":"problem running manager","error":"failed to wait for lvmvolumegroup caches to sync: timed out waiting for cache to be synced"}

from lvm-operator.

karmab avatar karmab commented on June 24, 2024

the following did the trick

oc adm policy add-cluster-role-to-user cluster-admin -z vg-manager -n odf-lvm
oc adm policy add-cluster-role-to-user cluster-admin -z topolvm-controller -n odf-lvm
oc adm policy add-cluster-role-to-user cluster-admin -z topolvm-node -n odf-lvm

from lvm-operator.

sp98 avatar sp98 commented on June 24, 2024

@karmab our rbacs are restricted to openshift-storage only as of now. Please try with openshift-storage namespace instead of odf-lvm namespace for now and let us know if that fixes that issue for you.

We will work on making the operator deploy-able with other namespaces.

from lvm-operator.

karmab avatar karmab commented on June 24, 2024

ok, could you please populate operatorframework.io/suggested-namespace in the csv of your olm metadata to reflect that.
That's what i use to target a given namespace

from lvm-operator.

nbalacha avatar nbalacha commented on June 24, 2024

Fixed in #171

from lvm-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.