open-horizon / open-horizon/devops

Short term fix for matching Agent and Hub versions for the "all-in-one".

Open
#105 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.