From 3a0f802e9c8e4c1ab72dd8c9ffc0e7997c99059f Mon Sep 17 00:00:00 2001 From: kjg Date: Thu, 23 Jul 2026 22:55:48 +0900 Subject: [PATCH] [ungleich-tools] remove wrong file --- k8s/k8s-opennebul-get-vmip.sh | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 k8s/k8s-opennebul-get-vmip.sh diff --git a/k8s/k8s-opennebul-get-vmip.sh b/k8s/k8s-opennebul-get-vmip.sh deleted file mode 100755 index 698b4fb..0000000 --- a/k8s/k8s-opennebul-get-vmip.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -# get VM_ID via IPv6 address - -TARGET="${1:-}" - -if [ -z "$TARGET" ]; then - echo "Usage: $0 " >&2 - echo "Example: $0 2a0a:e5c0:2:2:0:c8ff:fe68:bee8" >&2 - exit 1 -fi - -POD=$(kubectl -n ungleich get pods \ - -l app.kubernetes.io/component=opennebula --output=jsonpath={.items..metadata.name}) - -IDS=$(kubectl exec -ti $POD -n ungleich -c oned -- /bin/bash -c "onevm list --xml | xmllint --xpath '//VM[TEMPLATE/NIC/IP6_GLOBAL=\"$TARGET\"]/ID/text()' -") - -printf 'VM ID: %s\n' "$IDS" - -# kubectl -n ungleich exec -ti $POD -c oned -- /bin/bash