cloud-native-toolkit / cloud-native-toolkit/software-everywhere
igc binary download issues with Apple M1 Silicon
- Ngôn ngữ chính
- TypeScript
- Star
- 8
- Fork
- 8
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu với .terraform/modules/*/scripts/setup-binaries.sh được tham chiếu và external data source trong main.tf, sau đó kiểm tra cách release igc-linux được tải xuống và được local-exec provisioner gọi. Hoàn tất khi Multipass VM dựa trên M1 có thể apply các layer 105 và 200 mà không gặp lỗi tải xuống hoặc “Exec format error” của igc.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell, terraform
- Lĩnh vực
- cli, cloud, devops
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100