Bug 1837564
| Summary: | Generic error when installer fails to create resources using terraform | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Abhinav Dahiya <adahiya> |
| Component: | Installer | Assignee: | Abhinav Dahiya <adahiya> |
| Installer sub component: | openshift-installer | QA Contact: | Mike Gahagan <mgahagan> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | ||
| Version: | 4.5 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.5.0 | ||
| 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: | 2020-07-13 17:40:02 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Abhinav Dahiya
2020-05-19 16:32:08 UTC
Looks like error messages are better now. Here is a failure caused by referencing a vnet that is in a different region than the region that was specified for the cluster:
INFO Credentials loaded from file "/home/m/.azure/osServicePrincipal.json"
INFO Consuming Install Config from target directory
INFO Creating infrastructure resources...
ERROR
ERROR Error: network.InterfacesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidResourceReference" Message="Resource /subscriptions/REDACTED/resourceGroups/aro-v4-eastus/providers/Microsoft.Network/virtualNetworks/aro-vnet/subnets/master-subnet referenced by resource /subscriptions/REDACTED/resourceGroups/mgahagan-100206-hjj7f-rg/providers/Microsoft.Network/networkInterfaces/mgahagan-100206-hjj7f-bootstrap-nic was not found. Please make sure that the referenced resource exists, and that both resources are in the same region." Details=[]
ERROR
ERROR on ../../../../tmp/openshift-install-280793528/bootstrap/main.tf line 100, in resource "azurerm_network_interface" "bootstrap":
ERROR 100: resource "azurerm_network_interface" "bootstrap" {
ERROR
ERROR
ERROR
ERROR Error: network.InterfacesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidResourceReference" Message="Resource /subscriptions/REDACTED/resourceGroups/aro-v4-eastus/providers/Microsoft.Network/virtualNetworks/aro-vnet/subnets/master-subnet referenced by resource /subscriptions/REDACTED/resourceGroups/mgahagan-100206-hjj7f-rg/providers/Microsoft.Network/networkInterfaces/mgahagan-100206-hjj7f-master1-nic was not found. Please make sure that the referenced resource exists, and that both resources are in the same region." Details=[]
ERROR
ERROR on ../../../../tmp/openshift-install-280793528/master/master.tf line 9, in resource "azurerm_network_interface" "master":
ERROR 9: resource "azurerm_network_interface" "master" {
ERROR
ERROR
ERROR
ERROR Error: network.InterfacesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidResourceReference" Message="Resource /subscriptions/REDACTED/resourceGroups/aro-v4-eastus/providers/Microsoft.Network/virtualNetworks/aro-vnet/subnets/master-subnet referenced by resource /subscriptions/REDACTED/resourceGroups/mgahagan-100206-hjj7f-rg/providers/Microsoft.Network/networkInterfaces/mgahagan-100206-hjj7f-master0-nic was not found. Please make sure that the referenced resource exists, and that both resources are in the same region." Details=[]
ERROR
ERROR on ../../../../tmp/openshift-install-280793528/master/master.tf line 9, in resource "azurerm_network_interface" "master":
ERROR 9: resource "azurerm_network_interface" "master" {
ERROR
ERROR
ERROR
ERROR Error: network.InterfacesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidResourceReference" Message="Resource /subscriptions/REDACTED/resourceGroups/aro-v4-eastus/providers/Microsoft.Network/virtualNetworks/aro-vnet/subnets/master-subnet referenced by resource /subscriptions/REDACTED/resourceGroups/mgahagan-100206-hjj7f-rg/providers/Microsoft.Network/networkInterfaces/mgahagan-100206-hjj7f-master2-nic was not found. Please make sure that the referenced resource exists, and that both resources are in the same region." Details=[]
ERROR
ERROR on ../../../../tmp/openshift-install-280793528/master/master.tf line 9, in resource "azurerm_network_interface" "master":
ERROR 9: resource "azurerm_network_interface" "master" {
ERROR
ERROR
ERROR
ERROR Error: Error Creating/Updating Load Balancer "mgahagan-100206-hjj7f-internal" (Resource Group "mgahagan-100206-hjj7f-rg"): network.LoadBalancersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidResourceReference" Message="Resource /subscriptions/REDACTED/resourceGroups/ARO-V4-EASTUS/providers/Microsoft.Network/virtualNetworks/ARO-VNET referenced by resource /subscriptions/REDACTED/resourceGroups/mgahagan-100206-hjj7f-rg/providers/Microsoft.Network/loadBalancers/mgahagan-100206-hjj7f-internal was not found. Please make sure that the referenced resource exists, and that both resources are in the same region." Details=[{"code":"NotFound","message":"Resource /subscriptions/REDACTED/resourceGroups/ARO-V4-EASTUS/providers/Microsoft.Network/virtualNetworks/ARO-VNET not found."}]
ERROR
ERROR on ../../../../tmp/openshift-install-280793528/vnet/internal-lb.tf line 6, in resource "azurerm_lb" "internal":
ERROR 6: resource "azurerm_lb" "internal" {
ERROR
ERROR
FATAL failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply Terraform: failed to complete the change
The "Please make sure that the referenced resource exists, and that both resources are in the same region." comes directly from Azure.
Verified with 4.5.0-0.nightly-2020-06-01-165039
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409 |