[Test] Fix intermittent failure in test_dynamic_file_system_update.#7418
Conversation
…parameter SubnetTwo optional to support the case where we need to deploy EFs mount targets in a single-AZ.
… deploying EFS mount targets in the single AZ used by compute nodes. Before this fix, the test could fail when EFS mount targets were deployed in AZs different from those where the compute nodes were deployed. This fix forces the EFS mount targets to be created in the same AZ where the compute nodes are deployed.
a3e13bb to
e98a66f
Compare
There was a problem hiding this comment.
Looks not good to me to change none test file cloudformation/storage/storage-stack.yaml, just for fixing intermittent test failure.
What do you think?
@hehe7318 that's an interesting point. I would agree with you if the change were not backward compatible. Also, let's think about the alternative approach where we do not make any change to the template. In this case we to deploy the storage stack with multi-AZ fashion forcefully, but using just one AZ, which basically means that we are paying to an EFS mount target that is never used. What do you think? |
Convinced me! Approved! |
Description of changes
Fix intermittent failure in test_dynamic_file_system_update.
The test could fail because the external EFS has chances to deploy mount targets in AZs that are not used by the cluster.
With this fix we deploy the storage in the private subnets used by the compute nodes (one per AZ), so that the external EFS has a mount target in every AZ used by the cluster.
Tests
SUCCEEDED
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.