Uploaded image for project: 'ONAP Operations Manager'
  1. ONAP Operations Manager
  2. OOM-1388

VID PV/PVC not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Medium Medium
    • Casablanca Release
    • Casablanca Release
    • None
    • K8s v1.10 (6 node cluster installed by rancher
      Helm v2.9.1

      2 problems discovered:

      1) persistent storage of the mariadb galera database is "false" by default. I think the default we have been using everywhere else is having this enabled for all databases.
      2) if you turn it on, it doesn't work. Something isn't lining up in terms of label, or names.

      PVC:
      vid-vid-mariadb-galera-data-vid-vid-mariadb-galera-0   Pending                                                                                   5m
      
      vid-vid-mariadb-galera           2Gi        RWO            Retain           Bound     onap/vid-vid-mariadb-galera                                              8m
      
      kubectl  describe pod vid-vid-mariadb-galera-0
      Name:           vid-vid-mariadb-galera-0
      Namespace:      onap
      Node:           <none>
      Labels:         app=vid-vid-mariadb-galera
                      controller-revision-hash=vid-vid-mariadb-galera-798bf9d5c8
                      release=vid
                      statefulset.kubernetes.io/pod-name=vid-vid-mariadb-galera-0
      Annotations:    pod.alpha.kubernetes.io/initialized=true
      Status:         Pending
      IP:
      Controlled By:  StatefulSet/vid-vid-mariadb-galera
      Init Containers:
        mariadb-galera-prepare:
          Image:      nexus3.onap.org:10001/busybox
          Port:       <none>
          Host Port:  <none>
          Command:
            sh
            -c
            chown -R 27:27 /var/lib/mysql
          Environment:  <none>
          Mounts:
            /var/lib/mysql from vid-vid-mariadb-galera-data (rw)
            /var/run/secrets/kubernetes.io/serviceaccount from default-token-tqrj2 (ro)
      Containers:
        vid-vid-mariadb-galera:
          Image:       nexus3.onap.org:10001/adfinissygroup/k8s-mariadb-galera-centos:v002
          Ports:       3306/TCP, 4444/TCP, 4567/TCP, 4568/TCP
          Host Ports:  0/TCP, 0/TCP, 0/TCP, 0/TCP
          Limits:
            cpu:     2
            memory:  4Gi
          Requests:
            cpu:      2
            memory:   4Gi
          Readiness:  exec [/usr/share/container-scripts/mysql/readiness-probe.sh] delay=15s timeout=1s period=10s #success=1 #failure=3
          Environment:
            POD_NAMESPACE:        onap (v1:metadata.namespace)
            MYSQL_USER:           vidadmin
            MYSQL_PASSWORD:       <set to the key 'user-password' in secret 'vid-vid-mariadb-galera'>  Optional: false
            MYSQL_DATABASE:       vid_openecomp_epsdk
            MYSQL_ROOT_PASSWORD:  <set to the key 'db-root-password' in secret 'vid-vid-mariadb-galera'>  Optional: false
          Mounts:
            /etc/config from config (rw)
            /etc/localtime from localtime (ro)
            /var/lib/mysql from vid-vid-mariadb-galera-data (rw)
            /var/run/secrets/kubernetes.io/serviceaccount from default-token-tqrj2 (ro)
      Conditions:
        Type           Status
        PodScheduled   False
      Volumes:
        vid-vid-mariadb-galera-data:
          Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
          ClaimName:  vid-vid-mariadb-galera-data-vid-vid-mariadb-galera-0
          ReadOnly:   false
        config:
          Type:      ConfigMap (a volume populated by a ConfigMap)
          Name:      vid-vid-mariadb-galera-externalconfig
          Optional:  false
        localtime:
          Type:          HostPath (bare host directory volume)
          Path:          /etc/localtime
          HostPathType:
        default-token-tqrj2:
          Type:        Secret (a volume populated by a Secret)
          SecretName:  default-token-tqrj2
          Optional:    false
      QoS Class:       Guaranteed
      Node-Selectors:  <none>
      Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                       node.kubernetes.io/unreachable:NoExecute for 300s
      Events:
        Type     Reason            Age               From               Message
        ----     ------            ----              ----               -------
        Warning  FailedScheduling  2m (x26 over 8m)  default-scheduler  pod has unbound PersistentVolumeClaims (repeated 6 times)
      
      

            melliott melliott
            mkhinda mkhinda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: