cloud-native-toolkit / cloud-native-toolkit/software-everywhere
igc binary download issues with Apple M1 Silicon
- Dominant language
- TypeScript
- Stars
- 8
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Research direction
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”.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell, terraform
- Domain
- cli, cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100