Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-4388

Multiple ONOS instances are deployed on the same node even if podAntiAffinity is enabled

    XMLWordPrintable

    Details

    • Story Points:
      2
    • Epic Link:
    • Sprint:
      VOLTHA 2.9 - Sprint 5

      Description

      By default ONOS is deployed with

      podAntiAffinity:
        enabled: true
      

      which should deploy ONOS instances on different nodes in the cluster.
      That doesn't always happen on the VOLTHA scale cluster:

      voltha-infra-onos-classic-0                                     0/1     Terminating   0          35h   10.42.1.232   flex-cc7   <none>           <none>
      voltha-infra-onos-classic-2                                     0/1     Terminating   0          35h   10.42.1.235   flex-cc7   <none>           <none>
      

      The reason for that is a mismatch between the app label and pod antiAffinity declaration in the chart:

      # statefulset.yaml
        labels:
          app: "{{ .Values.app_label }}"
      ...
              podAntiAffinity:
                requiredDuringSchedulingIgnoredDuringExecution:
                - labelSelector:
                    matchExpressions:
                    - key: app
                      operator: In
                      values:
                      - {{ template "fullname" . }}

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            teone Matteo Scandolo
            Reporter:
            teone Matteo Scandolo
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes