Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

fix(builder): start after controller, block until running #863

Merged
merged 1 commit into from
Apr 30, 2014

Conversation

carmstrong
Copy link
Contributor

deis-builder was reporting as running very quickly,
but inside the container slugrunner and slugbuilder were
taking many minutes to make the container actually active.

Here, we add an ExecStartPost to block a 'running' status
until we're listening on 2222.

We also start the controller before builder, as builder checks
for /deis/controller.

fixes #857

deis-builder was reporting as running very quickly,
but inside the container slugrunner and slugbuilder were
taking many minutes to make the container actually active.

Here, we add an ExecStartPost to block a 'running' status
until we're listening on 2222.

We also start the controller before builder, as builder checks
for /deis/controller.

fixes #857
@carmstrong
Copy link
Contributor Author

$ make run
fleetctl --strict-host-key-checking=false submit  registry/systemd/deis-registry.service  logger/systemd/deis-logger.service  cache/systemd/deis-cache.service  database/systemd/deis-database.service  router/systemd/deis-router.service
Starting Deis! Deis will be functional once all services are reported as running...
fleetctl --strict-host-key-checking=false start  registry/systemd/deis-registry.service  logger/systemd/deis-logger.service  cache/systemd/deis-cache.service  database/systemd/deis-database.service  router/systemd/deis-router.service
Job deis-registry.service scheduled to 913a52a0.../166.78.116.194
Job deis-database.service scheduled to 913a52a0.../166.78.116.194
Job deis-cache.service scheduled to 913a52a0.../166.78.116.194
Job deis-logger.service scheduled to 913a52a0.../166.78.116.194
Job deis-router.service scheduled to 913a52a0.../166.78.116.194
Waiting for deis-registry to start (this can take some time)...
Done! Waiting for deis-controller...
fleetctl --strict-host-key-checking=false submit controller/systemd/*
fleetctl --strict-host-key-checking=false start controller/systemd/*
Job deis-controller.service scheduled to 913a52a0.../166.78.116.194
Done! Waiting for deis-builder to start (this can also take some time)...
fleetctl --strict-host-key-checking=false submit builder/systemd/*
fleetctl --strict-host-key-checking=false start builder/systemd/*
Job deis-builder.service scheduled to 913a52a0.../166.78.116.194
Your Deis cluster is ready to go! Follow the README to login and use Deis.
$ make status
fleetctl --strict-host-key-checking=false list-units
UNIT            LOAD    ACTIVE  SUB DESC        MACHINE
deis-builder.service    loaded  active  running deis-builder    913a52a0.../166.78.116.194
deis-cache.service  loaded  active  running deis-cache  913a52a0.../166.78.116.194
deis-controller.service loaded  active  running deis-controller 913a52a0.../166.78.116.194
deis-database.service   loaded  active  running deis-database   913a52a0.../166.78.116.194
deis-logger.service loaded  active  running deis-logger 913a52a0.../166.78.116.194
deis-registry.service   loaded  active  running deis-registry   913a52a0.../166.78.116.194
deis-router.service loaded  active  running deis-router 913a52a0.../166.78.116.194
$ telnet 166.78.116.194 2222
Trying 166.78.116.194...
Connected to 166.78.116.194.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.3
^]
telnet> exit
?Invalid command
telnet> quit
Connection closed.

@gabrtv
Copy link
Member

gabrtv commented Apr 30, 2014

LGTM.

1 similar comment
@mboersma
Copy link
Member

LGTM.

carmstrong added a commit that referenced this pull request Apr 30, 2014
fix(builder): start after controller, block until running
@carmstrong carmstrong merged commit 50187e5 into master Apr 30, 2014
@carmstrong carmstrong deleted the block_builder branch April 30, 2014 21:35
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.

deis-builder service reports as "running" too early
3 participants