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

TiKV get rolling-update when upgrade from v1.1.0.alpha.2 t v1.1.0.alpha.3 #1076

Closed
aylei opened this issue Oct 30, 2019 · 1 comment · Fixed by #1079
Closed

TiKV get rolling-update when upgrade from v1.1.0.alpha.2 t v1.1.0.alpha.3 #1076

aylei opened this issue Oct 30, 2019 · 1 comment · Fixed by #1079
Labels
area/controller type/bug Something isn't working

Comments

@aylei
Copy link
Contributor

aylei commented Oct 30, 2019

Bug Report

What did you do?

Upgrade tidb-operator from v1.1.0.alpha.2 to v1.1.0.alpha.3

What did you expect to see?
The running tidb-cluster does not get affected.

What did you see instead?
The running tikv statefulset gets rolling-update.

After some investigation, it turns out the new revision of TiKV statefulset has a different .spec.template.metadata.annotations.pingcap.com/last-applied-configuration compared to the old revision. The new one has securityContext: {} in the json literal, but the old one does not.

I will try to reproduce this issue and post more details.

@aylei aylei added type/bug Something isn't working area/controller labels Oct 30, 2019
@aylei
Copy link
Contributor Author

aylei commented Oct 30, 2019

The securityContext of these two revisions are different:

  • new one: {}
  • old one: nil

kubectl get -oyaml cannot reveal the difference because it automatically transform nil to {} for pointer to struct when marshalling YAML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/controller type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant