Skip to content

Testing all CSI modules#6

Merged
mrwesadex-flant merged 25 commits intomainfrom
testing-all-csi
Feb 24, 2026
Merged

Testing all CSI modules#6
mrwesadex-flant merged 25 commits intomainfrom
testing-all-csi

Conversation

@mrwesadex-flant
Copy link
Collaborator

@mrwesadex-flant mrwesadex-flant commented Jan 27, 2026

This branch brings:

  • Test suite for several or all CSI modules with stress-tests
  • A lot of retry logic to bypass different base cluster and ssh-connection problems
  • SSH agent support for establishing SSH connections including support of seguro

…nt variable substitution

- Implemented CreateYAMLFromFileWithEnvvars to read a YAML file, validate environment variables, and create resources.
- Added FindUnsetEnvVars function to identify unset environment variables in the YAML content.
- Updated stress tests to validate environment variables in custom resource files before applying them.
- Adjusted cluster_config.yml to specify Kubernetes version and added new CSI modules with dependencies.
Signed-off-by: Alexey Yakubov <alexey.yakubov@flant.com>
- Replaced the InstallDocker function with WaitForDockerReady to check Docker readiness after cloud-init.
- Added 2 x 60GB disks to master for nfs and minio in csi-all-test
- Added keepalive context and cancellation to manage SSH connections.
- Introduced startKeepalive method to send periodic keepalive requests for both jump and target clients.
- Updated reconnect logic to handle keepalive cancellation and restarting.
- Modified cluster setup to retain base tunnel information for improved resource management.
- Enhanced logging in stress tests for better visibility during disk attachment operations.
…SI initiator names

- Updated the hostname randomization logic to assign unique suffixes to each node, minimizing collision likelihood.
- Renamed the function from appendHostnameSuffix to randomizeHostnames for clarity.
- Adjusted logging to provide detailed information about randomized hostnames.
- Commented out iSCSI configuration in the YAML file to prevent potential conflicts.
- Introduced a new timeout constant for waiting until SSH is reachable on the setup node.
- Updated the CreateTestCluster function to include a step for checking SSH readiness before establishing the connection.
- Adjusted subsequent steps in the cluster setup process to reflect the new SSH readiness check.
- Modified cluster configuration YAML to switch from csi-hpe to csi-huawei and updated related test files accordingly.
@mrwesadex-flant mrwesadex-flant merged commit 658d539 into main Feb 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants