-
Notifications
You must be signed in to change notification settings - Fork 846
Not Returning Infeasible If Tags Were Modified #2636
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
Not Returning Infeasible If Tags Were Modified #2636
Conversation
Code Coverage Diff
|
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.
I thought we wanted to undo the tag modification then return InvalidArgument in this case?
By returning internal error here customer will not be able to rollback vacname AND we will spam EC2 because there is no delayed retry interval.
Is undoing the tags reasonably possible? Don't we get completely wrecked by restarts/crashes? I thought we were going to add a MV dry run, and bail infreasibly on that. |
Offline Discussion: We will merge this PR and work on designing a long-term fix to ensure that the volume is not changed at all when we return an infeasible error. |
017e8a4
to
a2ecdeb
Compare
/retest |
Going to have one more standup discussion on next steps because:
Instead a dry-run modifyVolume before createTags would help customers catch invalid VACs before modifying volume at all. |
/hold Until standup discussion |
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.
/unhold
a2ecdeb
to
3c50fb3
Compare
3c50fb3
to
652efd5
Compare
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.
/lgtm
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: torredil 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 |
What type of PR is this?
/kind bug
What is this PR about? / Why do we need it?
This PR makes it so that when there is a modifyVolume request and the request to modify tags which happens before the
ResizeOrModifyDisk
, succeeds, and then there is a failure whenResizeOrModifyDisk
is called due to an InvalidParameter, the driver does not return codes.InvalidArgument which is considered an infeasible error by the resizer. Because there was some modification done to the volume, an infeasible error is not to be returned as this would signal that no changes were done at all.How was this change tested?
Running
make test
for unit tests.Does this PR introduce a user-facing change?