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

Create petset last in testdata #10236

Merged
merged 1 commit into from
Aug 5, 2016
Merged

Create petset last in testdata #10236

merged 1 commit into from
Aug 5, 2016

Conversation

liggitt
Copy link
Contributor

@liggitt liggitt commented Aug 5, 2016

petset test data is creating a petset, then creating all the pods that would result from the petset. The create races the petset controller (if it is running) and means that pod creations are likely to fail. Moving the petset to the end of the list ensures the pods get created by the test before the petset controller gets involved.

Also removes hardcoded IP addresses from services in testdata, since they can conflict with already allocated IPs when run on a live cluster

Fixes #10008

@liggitt
Copy link
Contributor Author

liggitt commented Aug 5, 2016

[test]

@liggitt
Copy link
Contributor Author

liggitt commented Aug 5, 2016

@smarterclayton moves the petset creation to the end of the list so all the pod creates succeed

@liggitt
Copy link
Contributor Author

liggitt commented Aug 5, 2016

also removes the allocated IP addresses from service data to avoid "already allocated" errors during test data creation

@smarterclayton
Copy link
Contributor

We used to depend on the portal IP to verify it was properly shown by the describer. Is there still one spot that verifies it?

@smarterclayton
Copy link
Contributor

PetSet changes look fine

template:
metadata:
annotations:
pod.alpha.kubernetes.io/init-containers: '[{"name":"install","image":"gcr.io/google_containers/galera-install:0.1","args":["--work-dir=/work-dir"],"resources":{},"volumeMounts":[{"name":"workdir","mountPath":"/work-dir"},{"name":"config","mountPath":"/etc/mysql"}],"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"Always"},{"name":"bootstrap","image":"debian:jessie","command":["/work-dir/peer-finder"],"args":["-on-start=\"/work-dir/on-start.sh\"","-service=galera"],"env":[{"name":"POD_NAMESPACE","valueFrom":{"fieldRef":{"apiVersion":"v1","fieldPath":"metadata.namespace"}}}],"resources":{},"volumeMounts":[{"name":"workdir","mountPath":"/work-dir"},{"name":"config","mountPath":"/etc/mysql"}],"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}]'
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, this is a straight move

Copy link
Contributor

Choose a reason for hiding this comment

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

@liggitt
Copy link
Contributor Author

liggitt commented Aug 5, 2016

portalIP gets populated when creating the services

@smarterclayton
Copy link
Contributor

smarterclayton commented Aug 5, 2016 via email

@liggitt
Copy link
Contributor Author

liggitt commented Aug 5, 2016

hmm, yeah, looks like tests depend on those IPs. will split that out to get the petset fix in

@liggitt
Copy link
Contributor Author

liggitt commented Aug 5, 2016

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 7926fa3

@openshift-bot
Copy link
Contributor

openshift-bot commented Aug 5, 2016

continuous-integration/openshift-jenkins/merge Waiting: You are in the build queue at position: 3

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 7926fa3

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7555/)

@liggitt
Copy link
Contributor Author

liggitt commented Aug 5, 2016

green test run, merging to unblock queue

@liggitt liggitt merged commit e0e97c1 into openshift:master Aug 5, 2016
@ncdc
Copy link
Contributor

ncdc commented Aug 5, 2016

woot

@liggitt liggitt deleted the petset-testdata-flake branch August 10, 2016 05:33
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.

5 participants