Closed kurtkanaskie closed 2 years ago
Thanks for the report Kurt! There's multiple things in this issue that I included in the PR above:
google-managed
(that is only supported on an XLB). The script now exits with an error if this is the case.Thanks Dan, I new that about the ILB, now that you mentioned it :) This gave me a chance to test destroying.
I ran ./destroy-runtime-gke.sh
and saw some issues:
ask_confirm
as I was expecting, that should certainly be there.$ ./destroy-runtime-gke.sh
π Setting Config Parameters (Provide your own or defaults will be applied)
π§ Configuring GCP Project
- Project ID apigee-hybrid-internal
Updated property [core/project].
- Analytics Region us-east1
Updated property [compute/region].
Updated property [compute/zone].
- Compute Location us-east1/us-east1-b
- Network apigee-hybrid/default
π§ Apigee hybrid Configuration:
- Ingress type internal
- TLS Certificate google-managed
- GKE Node Type e2-standard-4
- Apigeectl version 1.6.5
- kpt version v0.34.0
- Cert Manager version v1.2.0
- ASM version 1.9
- π Using macOS binaries
π§ Derived config parameters
- GCP Project apigee-hybrid-internal
- Workload Pool apigee-hybrid-internal.svc.id.goog
- Mesh ID proj-304474196495
- Ingress IP 10.200.0.2
- Nameserver ns-gcp-private.googledomains.com.
- Script root from: /Users/kurtkanaskie/work/APIGEEX/apigee-hybrid-internal/devrel/tools/hybrid-quickstart
ποΈ Delete Apigee hybrid cluster
The following clusters will be deleted.
- [apigee-hybrid] in [us-east1]
Do you want to continue (Y/n)?
Deleting cluster apigee-hybrid...
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................done.
Deleted [https://container.googleapis.com/v1/projects/apigee-hybrid-internal/zones/us-east1/clusters/apigee-hybrid].
Deleted [https://www.googleapis.com/compute/v1/projects/apigee-hybrid-internal/zones/us-east1-b/disks/gke-apigee-hybrid-748c-pvc-992ab737-d6af-4188-b606-d0f60a9d26d3].
β
Apigee hybrid cluster deleted
ποΈ Clean up Networking
Deleted [https://www.googleapis.com/compute/v1/projects/apigee-hybrid-internal/regions/us-east1/addresses/apigee-ingress-ip].
ERROR: (gcloud.compute.addresses.delete) Could not fetch resource:
- The resource 'projects/apigee-hybrid-internal/global/addresses/apigee-ingress-ip' was not found
No global IP address
Imported record-sets from [empty-file] into managed-zone [apigee-dns-zone].
Created [https://dns.googleapis.com/dns/v1/projects/apigee-hybrid-internal/managedZones/apigee-dns-zone/changes/2].
ID START_TIME STATUS
2 2022-03-22T09:53:47.994Z pending
Deleted [https://dns.googleapis.com/dns/v1/projects/apigee-hybrid-internal/managedZones/apigee-dns-zone].
ERROR: (gcloud.compute.ssl-certificates.delete) Could not fetch resource:
- The ssl_certificate resource 'projects/apigee-hybrid-internal/global/sslCertificates/mcrt-0e19b49b-f1d6-44fb-ab83-60fca43b8a4a' is already being used by 'projects/apigee-hybrid-internal/global/targetHttpsProxies/k8s2-um-a1m2547j-istio-syste39-target-proxy'
β
Apigee networking cleaned up
β
Tooling and Config removed
ERROR: (gcloud.iam.service-accounts.keys.list) NOT_FOUND: Unknown service account
ERROR: (gcloud.iam.service-accounts.keys.list) NOT_FOUND: Unknown service account
β
SA keys deleted
β
β
β
Clean up completed
Thanks for the quick fix, I just tested your PR and it works!
I saw a couple errors when running
initialize-runtime-gke.sh
withINGRESS_TYPE=internal
. Plus I'm not able to connect to a proxy from a local VM using the generated EnvGroup hostnametest-10-200-0-2.nip.io
.Errors in steps.sh configure_network() Line 321
Changed to remove --network:
Line 340-ish
Changed network to be "$NETWORK"
Once I fixed those, the install completed and I see:
I can open a bash prompt on one of the ingressgateways and connect to a proxy on the ruyntime using:
However from a local VM on the same network, I'm not able to access the proxy through the load balancer, it just hangs
What steps can I take to debug / fix this? Should I be able to connect to the
istio-ingressgateway ClusterIP 10.180.11.67