Skip to content

Create petset last in testdata - #10236

Merged
liggitt merged 1 commit into
openshift:masterfrom
liggitt:petset-testdata-flake
Aug 5, 2016
Merged

liggitt merged 1 commit into
openshift:masterfrom
liggitt:petset-testdata-flake

Conversation

@liggitt

@liggitt liggitt commented Aug 5, 2016 •

Copy link
Copy Markdown
Contributor

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

liggitt commented Aug 5, 2016

Copy link
Copy Markdown
Contributor Author

[test]

@liggitt

liggitt commented Aug 5, 2016

Copy link
Copy Markdown
Contributor Author

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

@liggitt

liggitt commented Aug 5, 2016

Copy link
Copy Markdown
Contributor Author

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

@smarterclayton

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@liggitt

liggitt commented Aug 5, 2016

Copy link
Copy Markdown
Contributor Author

portalIP gets populated when creating the services

@smarterclayton

smarterclayton commented Aug 5, 2016 via email

Copy link
Copy Markdown
Contributor

@liggitt

liggitt commented Aug 5, 2016

Copy link
Copy Markdown
Contributor Author

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

@liggitt

liggitt commented Aug 5, 2016

Copy link
Copy Markdown
Contributor Author

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 7926fa3

@openshift-bot

openshift-bot commented Aug 5, 2016 •

Copy link
Copy Markdown
Contributor

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

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 7926fa3

@openshift-bot

Copy link
Copy Markdown
Contributor

@liggitt

liggitt commented Aug 5, 2016

Copy link
Copy Markdown
Contributor Author

green test run, merging to unblock queue

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

ncdc commented Aug 5, 2016

Copy link
Copy Markdown
Contributor

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