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

Fix adhoc build #18325

Merged
merged 2 commits into from Oct 12, 2017
Merged

Fix adhoc build #18325

merged 2 commits into from Oct 12, 2017

Conversation

wjordan
Copy link
Contributor

@wjordan wjordan commented Oct 12, 2017

This PR fixes the adhoc build by tweaking the converge-order of some of the Chef resources updating the instance. Specifically, the service[dashboard] resource was running after the Git-repo was updated to new code but before the execute[build-cdo] resource, causing new initializer code depending on recent migrations to fail on startup. This out-of-order converging was also happening when the Ruby apt-package update was causing the dashboard service to reload too early.

With these changes, the build-cdo resource gets run before the dashboard-service reload in both cases, allowing adhoc instances to be created successfully when updating from the base image.

@wjordan
Copy link
Contributor Author

wjordan commented Oct 12, 2017

tested fix manually via rake adhoc:start.

thanks @davidsbailey for help reporting + investigating this issue.

@wjordan wjordan merged commit 084f85a into staging Oct 12, 2017
@wjordan wjordan deleted the adhoc-build-fix branch October 12, 2017 00:37
@davidsbailey
Copy link
Member

Awesome @wjordan , thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants