-
Notifications
You must be signed in to change notification settings - Fork 212
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
fix 1 snapshot create a lot of snap file #245
Conversation
@daresheep: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@daresheep: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: daresheep The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @daresheep! |
Hi @daresheep. Thanks for your PR. I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
CLA signature |
/assign @xing-yang |
@daresheep: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
snapshot := hostPathSnapshot{} | ||
snapshot.Name = req.GetName() | ||
snapshot.Id = snapshotID | ||
snapshot.VolID = volumeID | ||
snapshot.Path = file | ||
snapshot.CreationTime = creationTime | ||
snapshot.SizeBytes = hostPathVolume.VolSize | ||
snapshot.ReadyToUse = false | ||
hostPathVolumeSnapshots[snapshotID] = snapshot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This entry is being added below as well :438
which makes more sense there as anyway the snapshot_id is being added to map only after the successful creation.
snapshot := hostPathSnapshot{} | ||
snapshot.Name = req.GetName() | ||
snapshot.Id = snapshotID | ||
snapshot.VolID = volumeID | ||
snapshot.Path = file | ||
snapshot.CreationTime = creationTime | ||
snapshot.SizeBytes = hostPathVolume.VolSize | ||
snapshot.ReadyToUse = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
snapshot.ReadyToUse
must be false by default as its a bool with zero value false
. There seems to be no need here
return nil, status.Errorf(codes.Internal, "failed create snapshot: %v: %s", err, out) | ||
} | ||
|
||
glog.V(4).Infof("create volume snapshot %s", file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log is incorrect. It should be Craeted
Or misplaced as the actual snapshot is being created where the commands are executed
This overall fix in the PR doesnot seems to make much difference. The issue seems to be there for the large PVs and its entry is not being added to the map and in the next iteration Need to check if the command is executed without error or is it going timeout |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
If the file task more then 1 min. other request will create new snap file.
issue:
#243