Bug 2013207

Summary: Dual-stack KubeAPI multi-node cluster with single Machine Network does not fail validation
Product: Red Hat Advanced Cluster Management for Kubernetes Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Infrastructure OperatorAssignee: Mat Kowalski <mko>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact: Derek <dcadzow>
Priority: unspecified    
Version: rhacm-2.4CC: asegurap, cchun, ccrum, fpercoco, mfilanov, mko, trwest, vlaad, yfirst
Target Milestone: ---Keywords: Triaged
Target Release: rhacm-2.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-10-03 20:19:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2005440    
Bug Blocks: 2009760    

Comment 1 Mat Kowalski 2021-10-12 11:32:28 UTC
*** Bug 2009760 has been marked as a duplicate of this bug. ***

Comment 2 Crystal Chun 2021-10-18 16:15:15 UTC
Please verify and close this bug.

Comment 3 nshidlin 2021-11-07 12:58:38 UTC
Verified on: ACM version 2.4.0-DOWNSTREAM-2021-11-02-15-58-38

After creating agentclusterinstall with dual stack service-network, dual stack cluster-network, and single stack machine network entries; the spec cannot be applied:
status:                                                                                                                                                             
  conditions:                                                                                                                                                                
  - lastProbeTime: "2021-11-07T12:44:20Z"                                                                                                                                    
    lastTransitionTime: "2021-11-07T12:44:20Z"                                                                                                                               
    message: 'The Spec could not be synced due to an input error: Expected 2 machine                                                                                       
      networks, found 1'                                                                                                                                                     
    reason: InputError                                                                                                                                                       
    status: "False"                                                                                                                                                          
    type: SpecSynced

Patching in the second machine network allows the spec to be synced:
status:                                                                                                                                                                      
  conditions:                                                                                                                                                                
  - lastProbeTime: "2021-11-07T12:52:09Z"                                                                                                                                    
    lastTransitionTime: "2021-11-07T12:52:09Z"                                                                                                                               
    message: SyncOK                                                                                                                                                          
    reason: SyncOK                                                                                                                                                           
    status: "True"                                                                                                                                                           
    type: SpecSynced                                             

Removing the second machine network brings the agentclusterinstall into the same spec sync error:
status:                                                                                                                                                             [38/1808]
  conditions:                                                                                                                                                                
  - lastProbeTime: "2021-11-07T12:53:26Z"                                                                                                                                    
    lastTransitionTime: "2021-11-07T12:53:26Z"                                                                                                                               
    message: 'The Spec could not be synced due to an input error: Expected 2 machine                                                                                         
      networks, found 1'                                                                                                                                                     
    reason: InputError                                                                                                                                                       
    status: "False"                                                                                                                                                          
    type: SpecSynced