-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add e2e for active-standby switching of spidercontroller #3069
The head ref may contain hidden characters: "e2e/active\u2014standby"
Conversation
be0d108
to
8175097
Compare
170fd48
to
34a0f45
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3069 +/- ##
==========================================
- Coverage 81.15% 81.10% -0.06%
==========================================
Files 49 49
Lines 5334 5334
==========================================
- Hits 4329 4326 -3
- Misses 850 852 +2
- Partials 155 156 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
34a0f45
to
a54ab2e
Compare
if *spiderControllerLeases.Spec.HolderIdentity == v.Name { | ||
GinkgoWriter.Printf("the spiderpool-controller current master is: %v \n", *spiderControllerLeases.Spec.HolderIdentity) |
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.
要对spiderControllerLeases.Spec.HolderIdentity这个做判断是否为空指针
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.
1
out, err := frame.DockerExecCommand(ctx, nodeList.Items[0].Name, metricsHealthyCheck) | ||
if err != nil { | ||
time.Sleep(common.ForcedWaitingTime) | ||
frame.Log("failed to check metrics healthy, error: %v, output log is: %v ", err, string(out)) |
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.
err都出现了,怎么还能有out?
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.
这个函数的 err 只是记录了 exit 1 、exit status 7 等,并没有对应的错误信息
此处的 out 会有类似
output log is:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to 172.18.0.3 port 571: Connection refused
a54ab2e
to
100304d
Compare
Signed-off-by: ty-dc <[email protected]>
100304d
to
58386b3
Compare
Thanks for contributing!
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: