Skip to content
This repository was archived by the owner on Jul 25, 2019. It is now read-only.

Conversation

@sdodson
Copy link
Member

@sdodson sdodson commented Mar 23, 2015

This formalizes service startup ordering.
Before/After only affect ordering.
Wants/Requires affects dependencies, wants being a weaker form of Requires that will trigger the dependency to start but will carry on if the dependency fails.

My only concern is that I wonder if we should add Before=docker.service because if we don't and we've run openshift-sdn previously it will have configured docker to use lbr0 which will not exist after a reboot before openshift-sdn has created it.

This also removes the Requires on openshift-master. This is replaced by a
RequiredBy=openshift-sdn-master.service in openshift-master.service
@sdodson sdodson force-pushed the service-dependencies branch from b633626 to 5023840 Compare March 26, 2015 18:41
@sdodson
Copy link
Member Author

sdodson commented Mar 26, 2015

Based on the number of folks having trouble with docker failing to start without lbr0 I've amended this to include ensuring openshift-sdn-node is started before docker.

@sdodson
Copy link
Member Author

sdodson commented Mar 26, 2015

@mrunalp @rajatchopra Do you mind reviewing this? We have a good number of people running into problems with beta2 and I'd like to get this in before beta3.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why does the node-service want a master service?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not necessary as it would be chained openshift-sdn-node wants openshift-sdn-master wants openshift-master. I was just trying to make each service describe it's entire chain. I'm happy to stick to immediate dependencies if you'd prefer.

Copy link
Contributor

Choose a reason for hiding this comment

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

It confuses me at least, so just the immediate dependencies that solve the ordering problem would be nice.
@mrunalp your opinion?

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually on second thoughts, its harmless.

@rajatchopra
Copy link
Contributor

LGTM

1 similar comment
@mrunalp
Copy link
Member

mrunalp commented Mar 26, 2015

LGTM

mrunalp pushed a commit that referenced this pull request Mar 26, 2015
Make service dependency ordering more strict
@mrunalp mrunalp merged commit 9b66ff2 into openshift:master Mar 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants