Uploaded image for project: 'OpenShift Hive'
  1. OpenShift Hive
  2. HIVE-1539

The machinepool autoscaling minReplicas=0 doesn't work well on OpenStack platform

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • Undefined

      Description of problem:
      I install a 4.8 ocp on OpenStack using hive, when I create a machinepool and set autoscaling minReplicas=0, admission hook allows this operation, but the remote machineset can't be created.

      the machinepool has this status:

      spec:
        autoscaling:
          maxReplicas: 12
          minReplicas: 0
        clusterDeploymentRef:
          name: lwanhiveosp
        name: infra
        platform:
          openstack:
            flavor: m1.xlarge
      status:
        conditions:
        - lastProbeTime: "2021-05-13T07:41:29Z"
          lastTransitionTime: "2021-05-13T07:41:29Z"
          message: When auto-scaling, the MachinePool must have at least one replica for
            each MachineSet. The minReplicas must be at least 1
          reason: MinReplicasTooSmall
          status: "True"
          type: NotEnoughReplicas
      

      I checked labels in CLusterDeployment .metadata field, the version is 4.8, greater than 4.7.0

      $ oc get cd lwanhiveosp -o json | jq -r ".metadata.labels"
      {
        "hive.openshift.io/cluster-platform": "openstack",
        "hive.openshift.io/cluster-region": "unknown",
        "hive.openshift.io/hiveutil-created": "true",
        "hive.openshift.io/version-major": "4",
        "hive.openshift.io/version-major-minor": "4.8",
        "hive.openshift.io/version-major-minor-patch": "4.8.0"
      }
      

      In this part https://github.com/openshift/hive/blob/master/pkg/controller/remotemachineset/remotemachineset_controller.go#L977-L1003 , we don't have much helpful log messages, only reture true or false. so we can't know which part doesn't work.

              jdiaz@redhat.com Joel Diaz (Inactive)
              lwan-wanglin Lin Wang
              None
              None
              None
              Lin Wang Lin Wang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: