Comments (11)
Can you post details of the OS/shell for the machine running asmcli
?
from anthos-service-mesh-packages.
Sure, @zerobfd it´s a macOS Monterey Version 12.3.1.
asmcli
was started from zsh 5.8 (x86_64-apple-darwin21.0)
from anthos-service-mesh-packages.
Here´s a snippet of the failing code.
./asmcli: line 4137: autopilot-cluster-1/kpt: No such file or directory
4118 #######
4119 # run_command takes a list of arguments that represents a command
4120 # If DRY_RUN or VERBOSE is enabled, it will print the command, and if DRY_RUN is
4121 # not enabled it runs the command.
4122 #######
4123 run_command() {
4124 local DRY_RUN; DRY_RUN="$(context_get-option "DRY_RUN")"
4125 local VERBOSE; VERBOSE="$(context_get-option "VERBOSE")"
4126
4127 if [[ "${DRY_RUN}" -eq 1 ]]; then
4128 warn "Would have executed: ${*}"
4129 return
4130 elif [[ "${VERBOSE}" -eq 0 ]]; then
4131 "${@}" 2>/dev/null
4132 return "$?"
4133 fi
4134 info "Running: '${*}'"
4135 info "-------------"
4136 local RETVAL
4137 { "${@}"; RETVAL="$?"; } || true
4138 return $RETVAL
4139 }
from anthos-service-mesh-packages.
I created a new autopilot GKE cluster and tried again.
This time I got a different error message:
[cut 100 of similar lines..]
asmcli: Running: 'kpt pkg get --auto-set=false https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages.git/[email protected]+config2 asm'
asmcli: -------------
asmcli: Running: 'kpt pkg get --auto-set=false https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages.git/[email protected]+config2 asm'
asmcli: -------------
asmcli: Running: 'kpt pkg get --auto-set=false https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages.git/[email protected]+config2 asm'
asmcli: -------------
asmcli: Running: 'kpt pkg get --auto-set=false https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages.git/[email protected]+config2 asm'
asmcli: -------------
asmcli: Running: 'kpt pkg get --auto-set=false https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages.git/[email protected]+config2 asm'
asmcli: -------------
asmcli: Running: 'kpt pkg get --auto-set=false https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages.git/[email protected]+config2 asm'
asmcli: -------------
asmcli: Running: 'kpt pkg get --auto-set=false https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages.git/[email protected]+config2 asm'
asmcli: -------------
asmcli: Running: 'kpt pkg get --auto-set=false https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages.git/[email protected]+config2 asm'
asmcli: -------------
asmcli: Running: 'kpt pkg get --auto-set=false https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages.git/[email protected]+config2 asm'
asmcli: -------------
./enable.sh: line 18: 63473 Segmentation fault: 11 ./asmcli install -p $PROJECT_ID -l $LOCATION -n $CLUSTER_NAME --managed --verbose --output_dir $CLUSTER_NAME --use_managed_cni --channel regular --enable-all
bash-3.2$
enable.sh
#!/bin/bash
# https://cloud.google.com/service-mesh/docs/unified-install/asmcli-overview
export PROJECT_ID=my_project
export LOCATION=europe-west1
export CLUSTER_NAME=my_cluster
./asmcli install \
-p $PROJECT_ID \
-l $LOCATION \
-n $CLUSTER_NAME \
--managed \
--verbose \
--output_dir $CLUSTER_NAME \
--use_managed_cni \
--channel regular \
--enable-all
from anthos-service-mesh-packages.
I ran asmcli
again and now it failed with this error again.
(I added set -x
to the top of asmcli)
+ curl -L https://storage.googleapis.com/gke-release/asm/istio-1.13.2-asm.5-osx.tar.gz
+ tar xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 41.8M 100 41.8M 0 0 19.1M 0 0:00:02 0:00:02 --:--:-- 19.1M
+ ln -s istio-1.13.2-asm.5/bin/istioctl .
ln: ./istioctl: File exists
That made me remember that I had executed asmcli twice on my first cluster.
The first runs fails with a segmentation fault and the second run fails because istioctl is already
there.
from anthos-service-mesh-packages.
I know this probably isn't the answer you want, but we don't support macOS for precisely these reasons. Apple seems fond of finding small ways to introduce incompatible changes to the shell/coreutils with every release, and we just don't have the testing resources to keep up and make it compatible.
To double-check whether this is the root cause, could you try running from Cloud Shell or a Linux machine? Or maybe a Docker container if that's more convenient?
from anthos-service-mesh-packages.
I just got a very similar error on Linux. In your output_dir, do you already have an istioctl symlink created by a previous version of asmcli? If so, rename your output_dir and try again.
from anthos-service-mesh-packages.
@zerobfd It worked when I ran it in a Docker container. 🎉
May I suggest that asmcli aborts with a message saying something like this? "macOS is not supported. Run asmcli in a Docker container if you´re on macOS. Or try anyway if you know what you´re doing by using the --run-on-macOS
flag.
from anthos-service-mesh-packages.
I have been struggling to get ASM working through Pelumi and Terraform too. I suggest it boils down to the same macOS issue. The error message I suggested might have helped me in the right direction earlier.
from anthos-service-mesh-packages.
Glad it worked from a container! We actually used to block macOS completely, but we got a lot of requests to just allow folks to run it anyways so we removed that check. I know that some customers have already put asmcli
into automated pipelines, so I can't introduce something that requires a new flag to run, but I'll see if I can think of a way to put up a banner or something.
Is there something with Pelumi/Terraform that you want to verify first, or can I close this issue out?
from anthos-service-mesh-packages.
maybe you should delete output_dir ,seem as rm -rf $CLUSTER_NAME
from anthos-service-mesh-packages.
Related Issues (20)
- Istio-Proxy fails with automountServiceAccountToken: false HOT 3
- Number of retries in the register_cluster() function should be more than 2 HOT 4
- Is it possible to migrate from in-cluster to managed control plane? HOT 1
- 1.12.7-asm.2-distroless image for istio-proxy missing on gcr.io HOT 1
- repeated asmcli deployment in the same project exhausts project membership quota
- asmcli validate incorrect ERROR: The service mesh feature is not enabled on project HOT 1
- asmcli install: GKE cluster gets registered with name null HOT 2
- asmcli attempts to download a tagged version of asm that doesn't appear to exist HOT 5
- asmcli install has multiple errors when installing to Anthos on AWS
- CronJob/Job Sidecare Not terminating on job completion
- `./asmcli install` outputs `... Istio 1.14 ...`
- > _Nav sniegts apraksts._
- https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages/issues/1356#issue-1448412400Does not appear to be fixed. For GKE, the only workaround that I've found is to use Cloud Shell.
- Hack to detect Autopilot clusters is no longer working. HOT 1
- asmcli does not set up or validate a required permission for managed ASM
- Add kustomization.yaml to istio-ingressgateway sample resources HOT 1
- Istio Proxy Fails to Access Generate Token HOT 2
- Anthos Service Mesh managed control plane kiali error HOT 1
- calling a non-existing function install_control_plane_revisions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anthos-service-mesh-packages.