open-horizon / open-horizon/devops
Short term fix for matching Agent and Hub versions for the "all-in-one".
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 12
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
How are users expected to get the correct version of the agent-install.sh script for an all-in-one Hub? I think this is not very well spelled out in https://github.com/open-horizon/devops/blob/master/mgmt-hub/README.md. Reading between the lines there, I think they are supposed to (at the exact same time as they get the deploy-mgmt-hub.sh for the all-in-one Management Hub installation) also get the corresponding agent-install.sh script, like this: curl -sSL https://github.com/open-horizon/anax/releases/latest/download/agent-install.sh. If they don’t pull it at exactly the same time, and save it for later, and then if “latest” moves, then things will break in subtle ways for them. I think we need to do better than this.
I'd like to suggest as a short term fix for this that the deploy-mgmt-hub.sh script should pull the agent-install.sh script and save it (and also tell the user where it is). That’s not a perfect solution for matching versions (because the user might have pulled the deploy-mgmt-hub.sh script earlier but then run it after latest has changed) but I think it’s better than not doing anything.
The real fix is to have a concrete mapping between Management Hub versions and corresponding Agent versions, which I believe is embodied in another issue elsewhere. So this is suggested as a short term fix.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read mgmt-hub/README.md and locate deploy-mgmt-hub.sh; compare its current download flow with the referenced agent-install.sh release URL. Done means the deployment script saves the agent-install.sh script and clearly tells the user where it was saved, with the matching-version limitation understood.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100