-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Update check calico version command #9861
Update check calico version command #9861
Conversation
Hi @zhan9san. 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/test-infra repository. |
/ok-to-test |
@@ -44,19 +44,11 @@ | |||
delegate_to: "{{ groups['kube_control_plane'][0] }}" | |||
|
|||
- name: Get current calico cluster version |
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.
change name to: Get current calico version
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.
Thanks for your review.
I'll update it in new commit
@@ -67,8 +59,6 @@ | |||
Minimum version is {{ calico_min_version_required }} supported by the previous kubespray release. | |||
But current version is {{ calico_version_on_server.stdout }}. | |||
when: | |||
- 'calico_version_on_server.stdout is defined' |
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 think it should be keep here
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.
Previously, calico_version_on_server.stdout
is always undefined as the check command is wrong.
If the check version
is required, the stdout is expected to be an exact version. Otherwise, the assertion would fail.
If we allow/ignore the stdout is undefined, it seems there is no need to check the version anymore.
until: calico_version_on_server.stdout != 'unknown' | ||
retries: 5 | ||
delay: "{{ retry_stagger | random + 3 }}" | ||
delegate_to: "{{ groups['kube_control_plane'][0] }}" |
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.
Lines 51-57 should be kept also, Why are they being removed?
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.
Thanks for your review.
The run_once: True
and delegate_to: "{{ groups['kube_control_plane'][0] }}"
is removed by mistake. I'll add them back in new commit.
But for the rest of lines removed, I don't think it should be kept.
In general, the async
is for some long tasks, and there is async_status
after that to wait to complete.
But we don't use async
in that manner. IMO, the check version
is a light-weight option, so there is no need to introduce async
.
Looking forward to your reply.
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.
Thanks for your explanation. The changes in this version look very clean!
/lgtm
d6699ce
to
218dfbf
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mzaian, zhan9san 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 this PR does / why we need it:
The
Get current calico cluster version
has not ever been working.And the task fail is ignore, by 'fail_when: false'
TASK [network_plugin/calico : Get current calico cluster version] ******************************************************************************** ok: [node1]
It's
Client
instead ofCluster
Which issue(s) this PR fixes:
No issue
Special notes for your reviewer:
Does this PR introduce a user-facing change?: