Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-14877

Detect that number of configured hosts exceeds the replicas

XMLWordPrintable

    • Moderate
    • No
    • Sprint 238, Sprint 239
    • 2
    • False
    • Hide

      None

      Show
      None
    • Hide
      Previously, if the control plane nodes or worker nodes specified in either the `agent-config.yaml` or the `nmstateconfig.yaml` configuration file exceeded the replicas specified in the `install-config.yaml` file, you would receive a warning message. Now, if you configure files in this way, you would receive an error message, which is more indicative that control plane nodes or worker nodes cannot exceed the number of replicas. (link:https://issues.redhat.com/browse/OCPBUGS-14877[*OCPBUGS-14877*])
      Show
      Previously, if the control plane nodes or worker nodes specified in either the `agent-config.yaml` or the `nmstateconfig.yaml` configuration file exceeded the replicas specified in the `install-config.yaml` file, you would receive a warning message. Now, if you configure files in this way, you would receive an error message, which is more indicative that control plane nodes or worker nodes cannot exceed the number of replicas. (link: https://issues.redhat.com/browse/OCPBUGS-14877 [* OCPBUGS-14877 *])
    • Bug Fix
    • Done

      Description of problem:

      https://issues.redhat.com//browse/OCPBUGS-10342 tracked the issue when the number of replicas exceeded the number of hosts. However, it does not detect the case when the number of hosts exceeds the number of replicas as it was not counting the hosts correctly. Fix to detect this case correctly.

      Version-Release number of selected component (if applicable):

       

      How reproducible:

       

      Steps to Reproduce:

      1. Set compute replicas in install-config.yaml
      2. Add hosts in agent-config.yaml - 3 with role of master and more than 2 with role of worker.
      3. The installation will fail and following error could be seen in the journal 
      Jun 12 01:10:57 master-0 start-cluster-installation.sh[3879]: Hosts known and ready for cluster installation (5/3) 

      Actual results:

      No warning regarding the number of configured hosts

      Expected results:

      A warning about the number of configured hosts not matching the replicas.

      Additional info:

       

              bfournie@redhat.com Robert Fournier
              bfournie@redhat.com Robert Fournier
              zhenying niu zhenying niu
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: