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

Fix/caas relation datebag inconsistency #10270

Merged
merged 12 commits into from
Jun 7, 2019

Conversation

ycliuhw
Copy link
Member

@ycliuhw ycliuhw commented May 31, 2019

Description of change

Fix: statefulset pod units are been removed then cause relation data bag lost;

QA steps

  • deploy mediawiki
  • kill pod;
$ kubectl delete pod/mariadb-k8s-0 -n $NS
  • monitor juju status to confirm, the unit number is not changed;

  • add/remove units;

$ juju add-unit mariadb-k8s -n 1
$ juju remove-unit mariadb-k8s --num-units=2

Documentation changes

None

Bug reference

https://bugs.launchpad.net/juju/+bug/1830745

@ycliuhw
Copy link
Member Author

ycliuhw commented May 31, 2019

@ycliuhw
Copy link
Member Author

ycliuhw commented May 31, 2019

@ycliuhw ycliuhw requested a review from wallyworld June 3, 2019 00:21
@ycliuhw ycliuhw force-pushed the fix/caas-relation-datebag-inconsistency branch 2 times, most recently from a3e2b68 to 11cd353 Compare June 7, 2019 06:22
Copy link
Member

@wallyworld wallyworld left a comment

Choose a reason for hiding this comment

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

Main issue to fix is that it will break older operators (need to allow nil generation)

caas/kubernetes/provider/k8s.go Outdated Show resolved Hide resolved
state/application.go Show resolved Hide resolved
state/cloudservice.go Show resolved Hide resolved
state/cloudservice.go Outdated Show resolved Hide resolved
state/cloudservice.go Outdated Show resolved Hide resolved
worker/caasunitprovisioner/application_worker.go Outdated Show resolved Hide resolved
@ycliuhw ycliuhw force-pushed the fix/caas-relation-datebag-inconsistency branch 2 times, most recently from 7306dc6 to 8c83a17 Compare June 7, 2019 09:11
@ycliuhw ycliuhw force-pushed the fix/caas-relation-datebag-inconsistency branch from 8c83a17 to 94cdabf Compare June 7, 2019 10:41
@ycliuhw
Copy link
Member Author

ycliuhw commented Jun 7, 2019

$$merge$$

@jujubot jujubot merged commit 779d0d8 into juju:2.6 Jun 7, 2019
@ycliuhw ycliuhw deleted the fix/caas-relation-datebag-inconsistency branch June 7, 2019 12:00
@achilleasa achilleasa mentioned this pull request Jun 7, 2019
jujubot added a commit that referenced this pull request Jun 7, 2019
#10298

# Description of change

Merges 2.6 -> develop

#10287 from wallyworld/k8s-operator-notfound-app
#10270 from ycliuhw/fix/caas-relation-datebag-inconsistency
#10297 from achilleasa/bundle-trust-acceptance-test
@ycliuhw ycliuhw restored the fix/caas-relation-datebag-inconsistency branch June 9, 2019 14:04
@ycliuhw ycliuhw deleted the fix/caas-relation-datebag-inconsistency branch June 9, 2019 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants