sassoftware / viya4-iac-azure

This project contains Terraform configuration files to provision infrastructure components required to deploy SAS Viya platform products on Microsoft Azure Cloud.
Apache License 2.0
73 stars 88 forks source link

fix: (IAC-1090) Fixed jumpvm cloud-init causing Viya deployment failure #327

Closed riragh closed 1 year ago

riragh commented 1 year ago

Changes:

When a new jump server vm is created, it sets file ownership and permissions for the mounted NFS location which allows Viya services to initialize successfully. Importantly, the file system settings should only be applied once and not repeatedly in the event that the jump vm is destroyed and recreated in the same cluster. This change checks if the ${jump_rwx_filestore_path}/pvs folder already exists and skips creating the folder and recursively setting ownerships and permissions if it does. If the jump vm is being created for the first time when the pvs folder is absent, creating the folder and setting permissions and ownership will occur an initial time and not thereafter.

This issue originated from AWS, but is applicable for all cloud providers. See the original fix in AWS PR.

Also, minor update to outputs.tf file: updated a missing condition.

Tests:

Verified the following steps, see details in internal ticket.

Steps: