open-horizon / open-horizon/devops
deploy-mgmt-hub.sh fails on Intel Mac
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 12
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to install the Open Horizon management hub on my Intel Mac using the command
export HZN_LISTEN_IP=192.168.xxx.xxx # this may be irrelevant
curl -sSL https://raw.githubusercontent.com/open-horizon/devops/master/mgmt-hub/deploy-mgmt-hub.sh | bash
It fails with
bash: line 672: ip: command not found
There is no "ip" command on my Mac system, but there are both "ifconfig" and "ipconfig" commands which appears to do the similar things.
Joe Pearson said:
looks like the equivalent on Mac would be ipconfig getifaddr en0 for wireless or ipconfig getifaddr en1 for ethernet
However, I believe the problem is a bit more involved.
- My wifi is en0 (agrees with Joe)
- My ethernet is en9 (disagrees with Joe), but my network has a number of VLANs which is probably messing with these names.
- FYI: This link describes some of the many interface names Mac uses: https://stackoverflow.com/questions/29958143/what-are-en0-en1-p2p-and-so-on-that-are-displayed-after-executing-ifconfig
So perhaps the best approach is to have users specify which IP address they want to use via HZN_LISTEN_IP. I tried this above but don't think it had any effect. Or perhaps you use HZN_LISTEN_IP if it is set; otherwise fall back to use Joe's suggestion. In any case, "ip" won't work for Mac.
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
Inspect mgmt-hub/deploy-mgmt-hub.sh around line 672, where the missing ip command is invoked, and review how HZN_LISTEN_IP is handled. Reproduce the deployment on an Intel Mac, then define and verify behavior for a configured listen address and Mac interface lookup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, shell
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100