open-horizon / open-horizon/devops

deploy-mgmt-hub.sh fails on Intel Mac

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

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.

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.