sassoftware / viya4-deployment

This project contains Ansible code that creates a baseline in an existing Kubernetes environment for use with the SAS Viya Platform, generates the manifest for an order, and then can also deploy that order into the Kubernetes environment specified.
Apache License 2.0
70 stars 64 forks source link

fix: (IAC-975) undefined variable error occurs in set facts for cds-postgres role task #453

Closed dhoucgitter closed 1 year ago

dhoucgitter commented 1 year ago

Changes

Tests

See internal ticket for additional details. Scenario Task method Provider k8s version Cadence tasks Deploy method Remarks
1 OOTB, internal(default) Ansible Azure 1.25.6 fast:2020 baseline,viya,install deploy command Deployment command completed successfully and all pods stabilized.
2 After scenario # 1 without uninstalling, internal(default,cds-postgres) Ansible Azure 1.25.6 fast:2020 viya,install deploy command Deployment command completed successfully and all pods stabilized including default and cds-postgres internal instance pods. IAC-975 was opened on this scenario.
3 OOTB, internal(default,cds-postgres) Ansible Azure 1.25.6 fast:2020 baseline,viya,install deploy command All pods up and stabilzed including default and cds-postgres internal instance pods
4 Re-install after scenario # 3, internal(default,cds-postgres) Ansible Azure 1.25.6 fast:2020 viya,install deploy command deployment completed successfully with all pods stabilized. Expected Ansible output message: TASK [vdm : pg_config - Use previous postgres storage map values] "The previously found values for the postgres server storage class and access mode will be used.", "The values you have in your ansible vars will be ignored because the storage class is already present in your cluster."
5 Re-install after scenario # 3, internal(default,cds-postgres), config updated with a new cds-postgres storage class Ansible Azure 1.25.6 fast:2020 viya,install deploy command deployment completed successfully with all pods stabilized and all Postgres PVCs bound with initially configured pg-storage storage class. New cds-postgres storage class value was ignored as expected. Expected Ansible output message: "The previously found values for the postgres server storage class and access mode will be used.", "The values you have in your ansible vars will be ignored because the storage class is already present in your cluster."
6 OOTB, external postgres(default) Ansible Azure 1.25.6 fast:2020 baseline,viya,install deploy command Deployment command completed successfully with all pods stabilized.