Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-1507

Unable to install Grafana through OpenShift GitOps Operator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 1.3.1
    • Operator
    • 5
    • False
    • False
    • GITOPS Sprint 210

      GitOps Operator version : 1.3.1

      By using the parameter `grafana.enabled` in the ArgoCD CRD, It is expected a Grafana-deployment to be created along with the ArgoCD-instance. However, when using OpenShift GitOps 1.3.1, nothing happens and ArgoCD is stuck in Pending state.

      ArgoCD yaml:

      apiVersion: argoproj.io/v1alpha1
      kind: ArgoCD
      metadata:
      creationTimestamp: '2021-11-01T09:33:24Z'
      finalizers:
      • argoproj.io/finalizer
        generation: 2
        managedFields:
      • apiVersion: argoproj.io/v1alpha1
        fieldsType: FieldsV1
        fieldsV1:
        'f:spec':
        'f:dex':
        .: {}
        'f:openShiftOAuth': {}
        'f:resources':
        .: {}
        'f:limits':
        .: {}
        'f:cpu': {}
        'f:memory': {}
        'f:requests':
        .: {}
        'f:cpu': {}
        'f:memory': {}
        'f:rbac':
        .: {}
        'f:defaultPolicy': {}
        'f:policy': {}
        'f:scopes': {}
        'f:repo':
        .: {}
        'f:resources':
        .: {}
        'f:limits': {}
        'f:requests':
        .: {}
        'f:cpu': {}
        'f:memory': {}
        'f:redis':
        .: {}
        'f:resources':
        .: {}
        'f:limits':
        .: {}
        'f:cpu': {}
        'f:memory': {}
        'f:requests':
        .: {}
        'f:cpu': {}
        'f:memory': {}
        'f:ha':
        .: {}
        'f:enabled': {}
        'f:resources':
        .: {}
        'f:limits':
        .: {}
        'f:cpu': {}
        'f:memory': {}
        'f:requests':
        .: {}
        'f:cpu': {}
        'f:memory': {}
        .: {}
        'f:grafana':
        .: {}
        'f:enabled': {}
        'f:ingress':
        .: {}
        'f:enabled': {}
        'f:controller':
        .: {}
        'f:resources':
        .: {}
        'f:limits': {}
        'f:requests':
        .: {}
        'f:cpu': {}
        'f:server':
        .: {}
        'f:resources':
        .: {}
        'f:limits':
        .: {}
        'f:cpu': {}
        'f:memory': {}
        'f:requests':
        .: {}
        'f:cpu': {}
        'f:memory': {}
        'f:route':
        .: {}
        'f:enabled': {}
        manager: Mozilla
        operation: Update
        time: '2021-11-01T09:33:24Z'
      • apiVersion: argoproj.io/v1alpha1
        fieldsType: FieldsV1
        fieldsV1:
        'f:metadata':
        'f:finalizers':
        .: {}
        'v:"argoproj.io/finalizer"': {}
        'f:spec':
        'f:controller':
        'f:processors': {}
        'f:resources':
        'f:limits':
        'f:cpu': {}
        'f:memory': {}
        'f:requests':
        'f:memory': {}
        'f:sharding': {}
        'f:grafana':
        'f:route':
        .: {}
        'f:enabled': {}
        'f:initialSSHKnownHosts': {}
        'f:prometheus':
        .: {}
        'f:enabled': {}
        'f:ingress':
        .: {}
        'f:enabled': {}
        'f:route':
        .: {}
        'f:enabled': {}
        'f:repo':
        'f:resources':
        'f:limits':
        'f:cpu': {}
        'f:memory': {}
        'f:server':
        'f:autoscale':
        .: {}
        'f:enabled': {}
        'f:grpc':
        .: {}
        'f:ingress':
        .: {}
        'f:enabled': {}
        'f:ingress':
        .: {}
        'f:enabled': {}
        'f:service':
        .: {}
        'f:type': {}
        'f:tls':
        .: {}
        'f:ca': {}
        'f:status':
        .: {}
        'f:applicationController': {}
        'f:dex': {}
        'f:phase': {}
        'f:redis': {}
        'f:repo': {}
        'f:server': {}
        'f:ssoConfig': {}
        manager: manager
        operation: Update
        time: '2021-11-01T09:33:24Z'
        name: argocd
        namespace: openshift-operators
        resourceVersion: '1231238'
        uid: 26ae2eae-12e8-4ea1-bbf9-b64faed21764
        spec:
        server:
        autoscale:
        enabled: false
        grpc:
        ingress:
        enabled: false
        ingress:
        enabled: false
        resources:
        limits:
        cpu: 500m
        memory: 256Mi
        requests:
        cpu: 125m
        memory: 128Mi
        route:
        enabled: true
        service:
        type: ''
        grafana:
        enabled: true
        ingress:
        enabled: true
        route:
        enabled: false
        prometheus:
        enabled: false
        ingress:
        enabled: false
        route:
        enabled: false
        initialSSHKnownHosts: {}
        rbac:
        defaultPolicy: ''
        policy: g, system:cluster-admins, role:admin
        scopes: '[groups]'
        repo:
        resources:
        limits:
        cpu: '1'
        memory: 1Gi
        requests:
        cpu: 250m
        memory: 256Mi
        dex:
        openShiftOAuth: true
        resources:
        limits:
        cpu: 500m
        memory: 256Mi
        requests:
        cpu: 250m
        memory: 128Mi
        ha:
        enabled: false
        resources:
        limits:
        cpu: 500m
        memory: 256Mi
        requests:
        cpu: 250m
        memory: 128Mi
        tls:
        ca: {}
        redis:
        resources:
        limits:
        cpu: 500m
        memory: 256Mi
        requests:
        cpu: 250m
        memory: 128Mi
        controller:
        processors: {}
        resources:
        limits:
        cpu: '2'
        memory: 2Gi
        requests:
        cpu: 250m
        memory: 1Gi
        sharding: {}
        status:
        applicationController: Unknown
        dex: Unknown
        phase: Pending
        redis: Unknown
        repo: Unknown
        server: Unknown
        ssoConfig: Success

      Error:
      2021-11-01T09:34:50.705Z ERROR controller-runtime.manager.controller.argocd Reconciler error

      {"reconciler group": "argoproj.io", "reconciler kind": "ArgoCD", "name": "argocd", "namespace": "openshift-operators", "error": "open /var/lib/grafana/templates: no such file or directory"}

      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
      /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.5/pkg/internal/controller/controller.go:253
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
      /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.5/pkg/internal/controller/controller.go:214

        1. ConfigMap.yaml
          116 kB
        2. ConfigMap-1.yaml
          116 kB

              jrao@redhat.com Jaideep Rao
              rhn-support-naygupta Nayantara Gupta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: