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

Operator Pod crash loopback on Openshift/OKD #39

Open
rossbrigoli opened this issue Aug 13, 2021 · 1 comment
Open

Operator Pod crash loopback on Openshift/OKD #39

rossbrigoli opened this issue Aug 13, 2021 · 1 comment

Comments

@rossbrigoli
Copy link

Tried installing operator from operator hub in OKD. The operator pod is in crash loop back with this errors in the pod logs:

{"level":"error","ts":1628825532.6156554,"logger":"controller-runtime.source","msg":"if kind is a CRD, it should be installed before calling Start","kind":"Odoo.apps.odoo-community.org","error":"no matches for kind \"Odoo\" in version \"apps.odoo-community.org/v1alpha1\"","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\nsigs.k8s.io/controller-runtime/pkg/log.(*DelegatingLogger).Error\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/deleg.go:144\nsigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/source/source.go:117\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:166\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:222\nsigs.k8s....

{"level":"error","ts":1628825532.6172757,"logger":"cmd","msg":"Proxy or operator exited with error.","Namespace":"interprit-odoo","error":"no matches for kind \"Odoo\" in version \"apps.odoo-community.org/v1alpha1\"","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\ngithub.com/operator-framework/operator-sdk/internal/cmd/ansible-operator/run.run\n\t/workspace/internal/cmd/ansible-operator/run/cmd.go:225\ngithub.com/operator-framework/operator-sdk/internal/cmd/ansible-operator/run.NewCmd.func1\n\t/workspace/internal/cmd/ansible-operator/run/cmd.go:71\ngithub.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:854\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:958\ngithub.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:895\nmain.main\n\t/workspace/cmd/ansible-operator/main.go:40\nruntime.main\n\t/usr/local/go/s...

Looks like it can't find the CRD. When I do a get CRD, i get this:

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  creationTimestamp: "2021-08-13T03:37:42Z"
  generation: 1
  labels:
    operators.coreos.com/odoo-operator.interprit-odoo: ""
  managedFields:
  - apiVersion: apiextensions.k8s.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:spec:
        f:conversion:
          .: {}
          f:strategy: {}
        f:group: {}
        f:names:
          f:kind: {}
          f:listKind: {}
          f:plural: {}
          f:singular: {}
        f:scope: {}
        f:versions: {}
      f:status:
        f:acceptedNames:
          f:kind: {}
          f:plural: {}
        f:conditions: {}
        f:storedVersions: {}
    manager: catalog
    operation: Update
    time: "2021-08-13T03:37:43Z"
  - apiVersion: apiextensions.k8s.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:labels:
          .: {}
          f:operators.coreos.com/odoo-operator.interprit-odoo: {}
    manager: olm
    operation: Update
    time: "2021-08-13T03:37:45Z"
  name: odoos.odoo-community.org
  resourceVersion: "97832648"
  selfLink: /apis/apiextensions.k8s.io/v1/customresourcedefinitions/odoos.odoo-community.org
  uid: be8aa4b4-65da-46be-84e2-8e403cdd4e82
spec:
  conversion:
    strategy: None
  group: odoo-community.org
  names:
    kind: Odoo
    listKind: OdooList
    plural: odoos
    singular: odoo
  scope: Namespaced
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        type: object
        x-kubernetes-preserve-unknown-fields: true
    served: true
    storage: true
    subresources:
      status: {}
status:
  acceptedNames:
    kind: Odoo
    listKind: OdooList
    plural: odoos
    singular: odoo
  conditions:
  - lastTransitionTime: "2021-08-13T03:37:42Z"
    message: no conflicts found
    reason: NoConflicts
    status: "True"
    type: NamesAccepted
  - lastTransitionTime: "2021-08-13T03:37:42Z"
    message: the initial names have been accepted
    reason: InitialNamesAccepted
    status: "True"
    type: Established
  storedVersions:
  - v1alpha1
@VGerris
Copy link

VGerris commented Jun 17, 2023

Same issue here when installed on OKD in crc.

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

No branches or pull requests

2 participants