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

[azure] Fail to create cluster on existing vnet on MAG and ASH

XMLWordPrintable

    • Critical
    • No
    • Proposed
    • False
    • Hide

      None

      Show
      None

      When creating cluster on existing vnet on MAG and ASH, installer failed and threw out the error:

      11-27 13:42:03.944  level=info msg=Creating infrastructure resources...
      11-27 13:42:04.502  level=fatal msg=failed to fetch Cluster: failed to generate asset "Cluster": failed to get the virtual network "jima27maga-vnet": GET https://management.azure.com/subscriptions/8fe0c1b4-8b05-4ef7-8129-7cf5680f27e7/resourceGroups/jima27maga-rg/providers/Microsoft.Network/virtualNetworks/jima27maga-vnet
      11-27 13:42:04.503  level=fatal msg=--------------------------------------------------------------------------------
      11-27 13:42:04.503  level=fatal msg=RESPONSE 404: 404 Not Found
      11-27 13:42:04.503  level=fatal msg=ERROR CODE: SubscriptionNotFound
      11-27 13:42:04.503  level=fatal msg=--------------------------------------------------------------------------------
      11-27 13:42:04.503  level=fatal msg={
      11-27 13:42:04.503  level=fatal msg=  "error": {
      11-27 13:42:04.503  level=fatal msg=    "code": "SubscriptionNotFound",
      11-27 13:42:04.503  level=fatal msg=    "message": "The subscription '8fe0c1b4-8b05-4ef7-8129-7cf5680f27e7' could not be found."
      11-27 13:42:04.504  level=fatal msg=  }
      11-27 13:42:04.504  level=fatal msg=}
      11-27 13:42:04.504  level=fatal msg=--------------------------------------------------------------------------------
      11-27 13:42:04.504  level=fatal

      During destroying cluster, got below error when removing shared tags.

       

      $ ./openshift-install destroy cluster --dir ipi --log-level debug
      DEBUG OpenShift Installer 4.15.0-0.nightly-2023-11-25-110147 
      DEBUG Built from commit 1ea1a54a197501cdbda71196c7fac744f835217f 
      INFO Credentials loaded from file "/home/fedora/.azure/osServicePrincipal_gov.json" 
      DEBUG deleting public records                      
      WARNING no DNS records found: either they were already deleted or the service principal lacks permissions to list them 
      DEBUG deleting resource group                      
      INFO deleted                                       resource group=jima761122c-264bb-rg
      DEBUG deleting application registrations           
      DEBUG failed to query resources with shared tag: POST https://management.azure.com/providers/Microsoft.ResourceGraph/resources 
      DEBUG -------------------------------------------------------------------------------- 
      DEBUG RESPONSE 400: 400 Bad Request                
      DEBUG ERROR CODE: BadRequest                       
      DEBUG -------------------------------------------------------------------------------- 
      DEBUG {                                            
      DEBUG   "error": {                                 
      DEBUG     "code": "BadRequest",                    
      DEBUG     "message": "Please provide below info when asking for support: timestamp = 2023-11-27T06:25:26.3355852Z, correlationId = b4dfd555-86b0-4e68-aec7-f75cd7307c69.", 
      DEBUG     "details": [                             
      DEBUG       {                                      
      DEBUG         "code": "NoValidSubscriptionsInQueryRequest", 
      DEBUG         "message": "There must be at least one subscription that is eligible to contain resources. Given: '8fe0c1b4-8b05-4ef7-8129-7cf5680f27e7'." 
      DEBUG       }                                      
      DEBUG     ]                                        
      DEBUG   }                                          
      DEBUG }                                            
      DEBUG -------------------------------------------------------------------------------- 
      DEBUG                                              
      FATAL Failed to destroy cluster: failed to remove shared tags: failed to query resources with shared tag: POST https://management.azure.com/providers/Microsoft.ResourceGraph/resources 
      FATAL -------------------------------------------------------------------------------- 
      FATAL RESPONSE 400: 400 Bad Request                
      FATAL ERROR CODE: BadRequest                       
      FATAL -------------------------------------------------------------------------------- 
      FATAL {                                            
      FATAL   "error": {                                 
      FATAL     "code": "BadRequest",                    
      FATAL     "message": "Please provide below info when asking for support: timestamp = 2023-11-27T06:25:26.3355852Z, correlationId = b4dfd555-86b0-4e68-aec7-f75cd7307c69.", 
      FATAL     "details": [                             
      FATAL       {                                      
      FATAL         "code": "NoValidSubscriptionsInQueryRequest", 
      FATAL         "message": "There must be at least one subscription that is eligible to contain resources. Given: '8fe0c1b4-8b05-4ef7-8129-7cf5680f27e7'." 
      FATAL       }                                      
      FATAL     ]                                        
      FATAL   }                                          
      FATAL }                                            
      FATAL -------------------------------------------------------------------------------- 
      FATAL                                              
      

      Issue should be introduced by https://github.com/openshift/installer/pull/7611/,  since all accepted nightly builds on 4.15 contains PR#7611, it is unable to verify on previous payloads, but checked Prow CI jobs, installation succeeded with 4.15.0-0.nightly-2023-11-20-045323.

       

       

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

      4.15.0-0.nightly-2023-11-25-110147

       

      How reproducible:

      always

       

      Steps to Reproduce:

      1. Install cluster on existing vnet on MAG and ASH

       

      Actual results:

      Installation failed.

       

      Expected results:

      Installation succeeded.

            fmissi Flavian Missi
            jinyunma Jinyun Ma
            Jinyun Ma Jinyun Ma
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: