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

Use the new ghe-negotiate-version script #91

Merged
merged 10 commits into from
Jan 15, 2015
Merged

Conversation

rtomayko
Copy link
Contributor

Makes use of the new ghe-negotiate-version script to ship in GHE v2.1. The idea is to push more of the version checking logic to the appliance. This will eventually let us get rid backup-utils logic that assumes hard-coded version file paths and gives the appliance a chance to require a minimum backup-utils version in a controlled way.

Original patch by @MikeMcQuaid in our (now defunct) internal backup-utils repository.

Scott J. Goldman and others added 10 commits January 14, 2015 16:40
@dbussink just cleaned up the metadata files (the version number used to
be specified in 4 different places), and this wasn't the file that he
decided to keep. This needs to be updated or we can't recognize VMs running
the next version of GHE.
Make use of the newly added ghe-negotiate-version script to push more of the
version checking logic to the appliance.
ionice exits 1 if the command given to it cannot be found but in
this case we're running /bin/sh which will always be found. The 127
exit from /bin/sh is propagated properly when the
ghe-negotiate-version program isn't found.
This reverts commit 28050ab.

I'm not sure we can rely on this new file location being present on
versions pre-2.0 so reverting back. The ghe-negotiate-version
program should be available on anything >= 2.1 and the
chef_metadata.json should be available on anything < 2.1.
I'm weary of relying on git-describe and all the different paths
here. Just keeping the file versioned manually is a lot simpler for
now and basing the version off of tags doesn't buy us a lot.
@MikeMcQuaid
Copy link
Contributor

Looks good to me 👍

rtomayko added a commit that referenced this pull request Jan 15, 2015
Use the new ghe-negotiate-version script
@rtomayko rtomayko merged commit 03b91f8 into master Jan 15, 2015
@MikeMcQuaid MikeMcQuaid deleted the ghe-negotiate-version branch January 15, 2015 16:19
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.

2 participants