open-horizon / devops

Devops processes to build and deploy horizon components
Apache License 2.0
10 stars 43 forks source link

The deploy script is only pulling x86 even for Macs M1 #164

Open playground opened 5 months ago

playground commented 5 months ago

Hi, I'm getting the following errors when try it on my Macs M1

curl -sSL https://raw.githubusercontent.com/open-horizon/devops/master/mgmt-hub/deploy-mgmt-hub.sh --output deploy-mgmt-hub.sh && chmod +x deploy-mgmt-hub.sh && sudo ./deploy-mgmt-hub.sh -PS && sudo rm -rf /tmp/horizon-all-in-1
./deploy-mgmt-hub.sh: line 672: ip: command not found
Error checking x509 extension section san
009329E801000000:error:1100006C:X509 V3 routines:X509V3_parse_list:invalid empty name:crypto/x509/v3_utl.c:349:
009329E801000000:error:11000069:X509 V3 routines:do_ext_nconf:invalid extension string:crypto/x509/v3_conf.c:102:name=subjectAltName,section=,DNS:localhost,DNS:agbot,DNS:exchange-api,DNS:css-api,DNS:fdo-owner-services
009329E801000000:error:11000080:X509 V3 routines:X509V3_EXT_nconf_int:error in extension:crypto/x509/v3_conf.c:48:section=san, name=subjectAltName, value=,DNS:localhost,DNS:agbot,DNS:exchange-api,DNS:css-api,DNS:fdo-owner-services

Error: Command failed: curl -sSL https://raw.githubusercontent.com/open-horizon/devops/master/mgmt-hub/deploy-mgmt-hub.sh --output deploy-mgmt-hub.sh && chmod +x deploy-mgmt-hub.sh && sudo ./deploy-mgmt-hub.sh -PS && sudo rm -rf /tmp/horizon-all-in-1
./deploy-mgmt-hub.sh: line 672: ip: command not found
Error checking x509 extension section san
009329E801000000:error:1100006C:X509 V3 routines:X509V3_parse_list:invalid empty name:crypto/x509/v3_utl.c:349:
009329E801000000:error:11000069:X509 V3 routines:do_ext_nconf:invalid extension string:crypto/x509/v3_conf.c:102:name=subjectAltName,section=,DNS:localhost,DNS:agbot,DNS:exchange-api,DNS:css-api,DNS:fdo-owner-services
009329E801000000:error:11000080:X509 V3 routines:X509V3_EXT_nconf_int:error in extension:crypto/x509/v3_conf.c:48:section=san, name=subjectAltName, value=,DNS:localhost,DNS:agbot,DNS:exchange-api,DNS:css-api,DNS:fdo-owner-services

I also noticed some discrepancy with hzn architecture that seems to think I'm on amd64 when M1 is arm64.

 jeff@playground  ~/Downloads  hzn architecture                                                                                           1 ↵  3787  17:18:16
amd64
 jeff@playground  ~/Downloads  arch                                                                                                         ✔  3788  17:18:31
arm64

hzn version                                                                                                  ✔  3794  17:35:03
Horizon CLI version: 2.31.0-1498
Horizon Agent version: 2.30.0-1194
dlarson04 commented 5 months ago

The all-in-one script only supports x86 architecture... Looks like we need to update this

https://open-horizon.github.io/docs/mgmt-hub/docs/index.html so explicitly state x86 only

dlarson04 commented 5 months ago

@playground Can we close this since all in one won't work on Mac M1?