Currently it is possible to choose as a template a previously created cluster from the wizard to use for a new cluster the user wants to create.
ParallelCluster doesn't allow cluster creation with configuration versions different from the PC version in use. So using a configuration from a previously created cluster (with a cluster config version from a different PC version) would raise an error on the PC side.
This PR aims to solve this issue, by filtering out clusters in the 'From Cluster' dropdown in case they do not match the exact version of PC.
How Has This Been Tested?
Exported locally API_VERSION env variable
Verified that clusters with the same version are displayed in the dropdown
Verified that clusters with a different version are not displayed in the dropdown
References
PR Quality Checklist
[ ] I added tests to new or existing code
[x] I removed hardcoded strings and used our i18n solution instead (see here)
[ ] I checked that infrastructure/update_infrastructure.sh runs without any error
[ ] I checked that npm run build builds without any error
[x] I checked that clusters are listed correctly
[x] I checked that a new cluster can be created (config is produced and dry run passes)
[ ] I checked that login and logout work as expected
Description
Currently it is possible to choose as a template a previously created cluster from the wizard to use for a new cluster the user wants to create.
ParallelCluster doesn't allow cluster creation with configuration versions different from the PC version in use. So using a configuration from a previously created cluster (with a cluster config version from a different PC version) would raise an error on the PC side.
This PR aims to solve this issue, by filtering out clusters in the 'From Cluster' dropdown in case they do not match the exact version of PC.
How Has This Been Tested?
API_VERSION
env variableReferences
PR Quality Checklist
i18n
solution instead (see here)npm run build
builds without any errorIn order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.