Skip to content
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

stability-test: stop kube-proxy case #556

Merged
merged 6 commits into from
Jun 13, 2019
Merged

Conversation

cofyc
Copy link
Contributor

@cofyc cofyc commented Jun 5, 2019

What problem does this PR solve?

Add stop/start kube-proxy stability test case.

This replaces #503.

What is changed and how it works?

Check List

Tests

Stability test

Does this PR introduce a user-facing change?:

NONE

@cofyc cofyc force-pushed the kube-proxy-case branch 4 times, most recently from 684e943 to 8d47dd4 Compare June 5, 2019 15:21
@cofyc
Copy link
Contributor Author

cofyc commented Jun 5, 2019

/run-e2e-tests

tests/actions.go Outdated
@@ -96,15 +96,14 @@ func NewOperatorActions(cli versioned.Interface,
const (
DefaultPollTimeout time.Duration = 10 * time.Minute
DefaultPollInterval time.Duration = 1 * time.Minute
BackupAndRestorePollTimeOut time.Duration = 30 * time.Minute
BackupAndRestorePollTimeOut time.Duration = 60 * time.Minute
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In cluster 3, it takes 40+ minutes to complete.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted, I adjusted blockwrite to test in cluster 3

@cofyc
Copy link
Contributor Author

cofyc commented Jun 6, 2019

/run-e2e-tests

@cofyc cofyc changed the title stability-test: stop kube-proxy case WIP: stability-test: stop kube-proxy case Jun 6, 2019
@weekface weekface added the test/stability stability tests label Jun 10, 2019
@cofyc cofyc changed the title WIP: stability-test: stop kube-proxy case stability-test: stop kube-proxy case Jun 11, 2019
@cofyc cofyc mentioned this pull request Jun 13, 2019
5 tasks
@@ -360,7 +360,7 @@ func (oa *operatorActions) tikvFailover(pod *corev1.Pod, tc *v1alpha1.TidbCluste
healthCount++
}
}
if tc.Status.TiKV.Synced && healthCount == int(tc.Spec.TiKV.Replicas) {
if tc.Status.TiKV.Synced && healthCount >= int(tc.Spec.TiKV.Replicas) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is suggested by @weekface to fix a race condition on TiKV failover check.

glog.Fatalf("update kube-proxy daemonset failed, err: %v", err)
}

mgr := manager.NewManager()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This cleanup code is copied from #503.

@cofyc
Copy link
Contributor Author

cofyc commented Jun 13, 2019

/run-e2e-tests

This reverts commit d92df33.
@weekface
Copy link
Contributor

/run-e2e-tests

@cofyc cofyc merged commit 1090e7a into pingcap:master Jun 13, 2019
@weekface weekface mentioned this pull request Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test/stability stability tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants