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

Add case for kube proxy #503

Closed
wants to merge 8 commits into from

Conversation

onlymellb
Copy link
Contributor

What problem does this PR solve?

  • add stop kube-proxy case
  • adjust some code

What is changed and how it works?

Check List

Tests

  • Unit test
  • E2E test
  • Stability test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

  • Has Helm charts change
  • Has Go code change
  • Has CI related scripts change
  • Has documents change

Side effects

  • Breaking backward compatibility

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Does this PR introduce a user-facing change?:

NONE

@shuijing198799
Copy link
Contributor

LGTM

@weekface weekface added the test/stability stability tests label May 21, 2019
tests/actions.go Show resolved Hide resolved
tests/cmd/stability/main.go Show resolved Hide resolved
tests/failover.go Outdated Show resolved Hide resolved
if err != nil {
return err
}
glog.V(4).Infof("all clusters are available.")
return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

if err != nil {
glog.Infof("can't find controllerManager in node:%s", faultNode)
slack.NotifyAndPanic(fmt.Errorf("can't find kube-controller-manager in k8s cluster"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

@onlymellb the controller pod may be not in the master, this case is normal

Copy link
Contributor

Choose a reason for hiding this comment

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

no need to panic

if err != nil {
glog.Infof("can't find scheduler in node:%s", faultNode)
slack.NotifyAndPanic(fmt.Errorf("can't find kube-scheduler in k8s cluster"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

scheduler pod can run in work node

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the returned err is not nil, it means that search this component in kube-system namespace has failed. If the master node does not have this component, the returned err is nil. Therefore, it is necessary to send an alarm and panic when the returned error is not nil.

@weekface
Copy link
Contributor

@onlymellb please address @xiaojingchen comments

Copy link
Contributor

@cofyc cofyc left a comment

Choose a reason for hiding this comment

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

LGTM

@cofyc
Copy link
Contributor

cofyc commented Jun 3, 2019

/run-e2e-tests

@cofyc
Copy link
Contributor

cofyc commented Jun 3, 2019

@onlymellb go vet check failed.

@weekface
Copy link
Contributor

fixed by: #556

@weekface weekface closed this Jun 17, 2019
yahonda pushed a commit that referenced this pull request Dec 27, 2021
* add helm offline doc

* update format

* Apply suggestions from code review

Co-authored-by: Ran <huangran@pingcap.com>

* Apply suggestions from code review

Co-authored-by: Ran <huangran@pingcap.com>

Co-authored-by: Ran <huangran@pingcap.com>
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.

5 participants