Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSI Node Driver Failure Test Script #121

Merged
merged 8 commits into from
May 20, 2022

Conversation

shaynafinocchiaro
Copy link
Contributor

@shaynafinocchiaro shaynafinocchiaro commented May 17, 2022

Description

  • Adds script to simulate csi driver node pod down for a specific node
  • Removes GoDog Cucumber reports because they are no longer being utilized

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
dell/csm#145

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • Manual verification using monx.sh on protect-driver-pod branch that contains functionality to taint worker node on csi driver pod failure

test/sh/failpods.sh Outdated Show resolved Hide resolved
alikdell
alikdell previously approved these changes May 18, 2022
@shaynafinocchiaro shaynafinocchiaro requested a review from rbo54 May 18, 2022 17:14
sharmilarama
sharmilarama previously approved these changes May 18, 2022
Copy link
Collaborator

@sharmilarama sharmilarama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

rbo54
rbo54 previously approved these changes May 18, 2022
test/sh/failpods.sh Outdated Show resolved Hide resolved
sharmilarama
sharmilarama previously approved these changes May 18, 2022
rbo54
rbo54 previously approved these changes May 19, 2022
Copy link
Collaborator

@rbo54 rbo54 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to address my comment- don't know. Thanks. Tom

# failPodsInNS will fail the pods for a specific namespace by patching it with an unknown driver image
failPodsInNS() {
ns=$namespace
pods=$(getRunningPods)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you want pods in a specific namespace, shouldn't getRunningPods take an argument of the namespace to filter by? With many of our tests in podmon, the pod names are the same, e.g. pmtv1/podmontest-0, pmtv2/podmontest-0, ... I don't know if you will have that problem or not- your discretion.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @rbo54, the getRunningPods function does take in the namespace as an argument

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake. Thanks.

@shaynafinocchiaro shaynafinocchiaro dismissed stale reviews from rbo54 and sharmilarama via c06545f May 19, 2022 20:32
@shaynafinocchiaro shaynafinocchiaro force-pushed the feature-145-pod-failure-test branch from c06545f to c1f28ff Compare May 19, 2022 20:33
rbo54
rbo54 previously approved these changes May 19, 2022
alikdell
alikdell previously approved these changes May 20, 2022
@shaynafinocchiaro shaynafinocchiaro dismissed stale reviews from alikdell and rbo54 via c06545f May 20, 2022 15:21
@shaynafinocchiaro shaynafinocchiaro force-pushed the feature-145-pod-failure-test branch from c1f28ff to c06545f Compare May 20, 2022 15:21
@shaynafinocchiaro shaynafinocchiaro merged commit 514ec01 into main May 20, 2022
@shaynafinocchiaro shaynafinocchiaro deleted the feature-145-pod-failure-test branch May 20, 2022 16:08
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.

4 participants