-
Notifications
You must be signed in to change notification settings - Fork 278
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: add Etag field to request body to let Etag work #8106
fix: add Etag field to request body to let Etag work #8106
Conversation
Signed-off-by: Qingchuan Hao <[email protected]>
Hi @mainred. Thanks for your PR. I'm waiting for a kubernetes-sigs 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-sigs/prow repository. |
/ok-to-test |
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 for VMSS related changes, let's run some e2e tests to validate
@MartinForReal we'd also need to check whether other resources need similar ETAG fix (that could be done separately) |
fixing the UT |
Signed-off-by: Qingchuan Hao <[email protected]>
b163fd9
to
500b0af
Compare
superseded by #8117 |
@MartinForReal I hope you can have a better test coverage of the your code change, since I am testing on my code heavily, but you superseded them. secondly, the most prioritized work is to cut new cloud provider azure releases, which means your put vmss vm pr can be hold after your test credential provider track2 SDK, cc @feiskyer |
#8117 is not related to this change, it is addressing a different problem of vmss batch operations. |
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: feiskyer, mainred 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 |
/kind bug |
@mainred please also update ensureBackendPoolDeletedFromNode |
/hold |
/unhold |
/test pull-cloud-provider-azure-e2e-ccm-capz |
Updated the PR description with the test scenarios and test result. |
Follow up: |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR fill vmss and vmss vm Etag into request body before sending the put request, also this PR invalidated the vmss cache after updating the vmss to try to use the latest vmss mode with latest Etag before putting vmss. This logic has already been achieved in put vmss vm operations.
Tests have been done:
to let the EtagMiatch Error happen, I manually changed the code to let the first vmss update put with Etag "1", and the second one will pick the correct Etag, the same case will succeed. For the case of VMSS vm, I will let the put vmss vm fail by half by chaing the number on the first bulk put, and the second bulk puts succeed.
Reference: put vmss vmwith etagmimatch error mainred@5ef7fe9
I also tested add internal lb and delete internal lb for both cases above. For a detailed kusto query you may check
https://msazure.visualstudio.com/CloudNativeCompute/_wiki/wikis/personalplayground/746780/EtagMismatch-Error
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: