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

Mock topology testing #249

Merged
merged 1 commit into from
Mar 24, 2020

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Feb 13, 2020

What type of PR is this?
/kind failing-test

What this PR does / why we need it:

For testing the upcoming "unset selected node" feature in external-provisioner.

Which issue(s) this PR fixes:

Related-to: kubernetes/kubernetes#72031

Special notes for your reviewer:

This could be merged as-is, but it might also make sense to first review the other PRs.

Does this PR introduce a user-facing change?:

NONE

@k8s-ci-robot k8s-ci-robot added kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. release-note-none Denotes a PR that doesn't merit a release note. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 13, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pohly

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 13, 2020
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 13, 2020
@@ -58,6 +63,18 @@ func (s *service) CreateVolume(
return nil, status.Errorf(codes.OutOfRange, "Requested capacity %d exceeds maximum allowed %d", capacity, MaxStorageCapacity)
}

// Simulate "out of storage space" error?
if capacityLimit := req.GetParameters()["capacityLimit"]; capacityLimit != "" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@jsafrane how soon is that error injection coming?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

/hold

There's now a WIP PR for that in PR #251. Using that approach makes more sense than adding special cases like this one here to the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

/hold cancel

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 27, 2020
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 19, 2020
This is off by default. If enabled, the mock driver returns the
capability for topology and a fixed "io.kubernetes.storage.mock/node:
some-mock-node" topology segment for the node it runs on and all
volumes.

This makes it possible to test some more code paths in
external-provisioner.
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 24, 2020
@pohly
Copy link
Contributor Author

pohly commented Mar 24, 2020

I've stripped out the error injection and rewrote kubernetes/kubernetes#88114 to use JavaScript error injection.

What's left is just the optional topology support. Can we merge this now? Then I'll do a csi-test release.

@pohly
Copy link
Contributor Author

pohly commented Mar 24, 2020

That should also unblock kubernetes/kubernetes#89041.

@jsafrane
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Mar 24, 2020
@k8s-ci-robot k8s-ci-robot merged commit 277beab into kubernetes-csi:master Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants