-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Conversation
[test] |
@smarterclayton moves the petset creation to the end of the list so all the pod creates succeed |
also removes the allocated IP addresses from service data to avoid "already allocated" errors during test data creation |
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? |
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"}]' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Break the [{...}]
string into lines. E.g. https://github.com/kubernetes/contrib/blob/master/pets/zookeeper/zookeeper.yaml#L35
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
portalIP gets populated when creating the services |
But we're not testing it shows up in the right place unless we know what it is.
|
hmm, yeah, looks like tests depend on those IPs. will split that out to get the petset fix in |
[merge] |
Evaluated for origin test up to 7926fa3 |
continuous-integration/openshift-jenkins/merge Waiting: You are in the build queue at position: 3 |
Evaluated for origin merge up to 7926fa3 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7555/) |
green test run, merging to unblock queue |
woot |
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