SUSE / ha-sap-terraform-deployments

Automated SAP/HA Deployments in Public/Private Clouds
GNU General Public License v3.0
122 stars 88 forks source link

make sure cloud_provider grain is set on SLES 15 SP4 (salt-3004) #853

Closed yeoldegrove closed 2 years ago

yeoldegrove commented 2 years ago

The SLES 15 SP4 QA is failing at the moment because the cloud_provider grains is not set.

2022-05-24 07:54:37,589 [salt.state       :318 ][ERROR   ][8024] Unable to manage file: Jinja variable 'dict object' has no attribute 'cloud_provider'

It does not always fail and not on every cloud provider (only azure so far), so I suspect a race condition as mentioned in here https://github.com/saltstack/salt/issues/54331 with salt >= 3003.

To workaround this condition, we can simply make sure that the cloud_provider grain is already set in the salt-deployment run.