Bug 1830123

Summary: Azure: Installer is using resource_group_name in its templates which is now depricated
Product: OpenShift Container Platform Reporter: Mike Gahagan <mgahagan>
Component: InstallerAssignee: Abhinav Dahiya <adahiya>
Installer sub component: openshift-installer QA Contact: Mike Gahagan <mgahagan>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: esimard
Version: 4.5   
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: All   
OS: Linux   
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:34:07 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 Mike Gahagan 2020-04-30 20:49:39 UTC
Description of problem:
On Azure, openshift-installer is emitting the following warning during installation:

INFO Creating infrastructure resources...         
ERROR                                              
ERROR Warning: "resource_group_name": [DEPRECATED] This field has been deprecated and is no longer used - will be removed in 2.0 of the Azure Provider 
ERROR                                              
ERROR   on ../../../../tmp/openshift-install-375307578/main.tf line 162, in resource "azurerm_storage_container" "vhd": 
ERROR  162: resource "azurerm_storage_container" "vhd" { 
ERROR                                              
ERROR (and 3 more similar warnings elsewhere)      
ERROR

The install still appears to work as this appears to be a warning so far. 


Version-Release number of the following components:
openshift-install-linux-4.5.0-0.nightly-2020-04-30-112808

How reproducible:
always

Steps to Reproduce:
1. Start IPI installation on Azure.
2. Input all needed credentials
3. Wait for warning to appear during infrastructure provisioning.

Actual results:

INFO Creating infrastructure resources...         
ERROR                                              
ERROR Warning: "resource_group_name": [DEPRECATED] This field has been deprecated and is no longer used - will be removed in 2.0 of the Azure Provider 
ERROR                                              
ERROR   on ../../../../tmp/openshift-install-375307578/main.tf line 162, in resource "azurerm_storage_container" "vhd": 
ERROR  162: resource "azurerm_storage_container" "vhd" { 
ERROR                                              
ERROR (and 3 more similar warnings elsewhere)      
ERROR                                              
INFO Waiting up to 20m0s for the Kubernetes API at https://api.mgahagan-143004.qe.azure.devcluster.openshift.com:6443... 
INFO API v1.18.0-rc.1 up                          
INFO Waiting up to 40m0s for bootstrapping to complete...

Expected results:

Installation proceeds without warning. 

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 1 Mike Gahagan 2020-05-12 20:14:58 UTC
DEBUG module.master.azurerm_virtual_machine.master[1]: Creation complete after 5m42s [id=/subscriptions/53b8f551-f0fc-4bea-8cba-6d1fefd54c8a/resourceGroups/mgahagan-161205-tv9zl-rg/providers/Microsoft.Compute/virtualMachines/mgahagan-161205-tv9zl-master-1] 
DEBUG                                              
DEBUG Warning: "resource_group_name": [DEPRECATED] This field has been deprecated and is no longer used - will be removed in 2.0 of the Azure Provider 
DEBUG                                              
DEBUG   on ../../../../tmp/openshift-install-946924625/main.tf line 162, in resource "azurerm_storage_container" "vhd": 
DEBUG  162: resource "azurerm_storage_container" "vhd" { 
DEBUG                                              
DEBUG (and 3 more similar warnings elsewhere)      
DEBUG                                              
DEBUG                                              
DEBUG Apply complete! Resources: 52 added, 0 changed, 0 destroyed. 
DEBUG OpenShift Installer 4.5.0-0.nightly-2020-05-11-193026 
DEBUG Built from commit e476c483ed99c9cf2982529178e668dbcaf3ed5e 
INFO Waiting up to 20m0s for the Kubernetes API at https://api.mgahagan-161205.qe.azure.devcluster.openshift.com:6443... 
INFO API v1.18.2 up

confirm deprication warnings are now at debug level on 4.5.0-0.nightly-2020-05-11-193026

Comment 3 errata-xmlrpc 2020-07-13 17:34:07 UTC
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