cloud-native-toolkit / cloud-native-toolkit/software-everywhere
igc binary download issues with Apple M1 Silicon
- 主要言語
- TypeScript
- スター
- 8
- フォーク
- 8
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I am testing with Multipass VM using an Apple M1 based Mac.
When applying the [105 layer to install OpenShift on IBM Cloud](https://github.com/IBM/automation-ibmcloud-infra-openshift/tree/main/1-quickstart/105-ibm-vpc-openshift), I encounter the following error:
╷
│ Error: External Program Execution Failed
│
│ with module.ibm-activity-tracker.module.clis.data.external.setup-binaries,
│ on .terraform/modules/ibm-activity-tracker.clis/main.tf line 22, in data "external" "setup-binaries":
│ 22: program = ["bash", "${path.module}/scripts/setup-binaries.sh"]
│
│ The data source received an unexpected error while attempting to execute the program.
│
│ Program: /usr/bin/bash
│ Error Message: Error downloading igc from https://github.com/cloud-native-toolkit/ibm-garage-cloud-cli/releases/download/v1.37.6/igc-linux
│
│ State: exit status 1
When applying the [200 layer to install GitOps](https://github.com/IBM/automation-ibmcloud-infra-openshift/tree/main/1-quickstart/200-openshift-gitops), I encounter the following errors:
Error: External Program Execution Failed
│
│ with module.resource_group.module.clis.data.external.setup-binaries,
│ on .terraform/modules/resource_group.clis/main.tf line 22, in data "external" "setup-binaries":
│ 22: program = ["bash", "${path.module}/scripts/setup-binaries.sh"]
│
│ The data source received an unexpected error while attempting to execute the program.
│
│ Program: /usr/bin/bash
│ Error Message: Error downloading igc from https://github.com/cloud-native-toolkit/ibm-garage-cloud-cli/releases/download/v1.38.0/igc-linux
│
│ State: exit status 1
╵
╷
│ Error: local-exec provisioner error
│
│ with module.toolkit_namespace.null_resource.setup_gitops,
│ on .terraform/modules/toolkit_namespace/main.tf line 33, in resource "null_resource" "setup_gitops":
│ 33: provisioner "local-exec" {
│
│ Error running command '/automation/200-ibm-openshift-gitops/terraform/bin2/igc gitops-namespace toolkit --contentDir
│ /automation/200-ibm-openshift-gitops/terraform/.tmp/namespace-toolkit --serverName default': exit status 2. Output: /bin/sh: 1:
│ /automation/200-ibm-openshift-gitops/terraform/bin2/igc: Exec format error
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start with the referenced .terraform/modules/*/scripts/setup-binaries.sh and the main.tf external data source, then inspect how the igc-linux release is downloaded and invoked by the local-exec provisioner. Done means the M1-based Multipass VM can apply the 105 and 200 layers without the download failure or igc “Exec format error”.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- shell, terraform
- 領域
- cli, cloud, devops
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100