utkuozdemir / pv-migrate

CLI tool to easily migrate Kubernetes persistent volumes
Apache License 2.0
1.66k stars 84 forks source link

on Windows, beginning wait for 0 resources unexpected; running a migrate command should actually do something #319

Open doctorpangloss opened 3 weeks ago

doctorpangloss commented 3 weeks ago

Describe the bug Migrations seemingly do not work at all.

To Reproduce

  1. run a migration on windows
  2. observe the application sits on
    Nov  7 12:21:30.112 DBG beginning wait for 0 resources with timeout of 2m0s

Expected behavior I would expect something to happen.

Console output Add the error logs and/or the output to help us diagnose the problem.

Version

doctorpangloss commented 3 weeks ago

linux at least starts:

~ ./pv-migrate migrate -n monitoring -N monitoring prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0-x prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0 --log-level=debug --strategies=mnt2 --helm-values=./test.yaml
Nov  7 12:40:43.532 INF ⚠️ Using legacy mode with PVC names as arguments, consider switching to --source and --dest flags
Nov  7 12:40:43.532 INF 🚀 Starting migration
Nov  7 12:40:43.613 INF 💭 Attempting migration source=monitoring/prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0-x dest=monitoring/prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0 strategies=mnt2
Nov  7 12:40:43.613 INF 🚁 Attempt using strategy source=monitoring/prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0-x dest=monitoring/prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0 attempt_id=aaded strategy=mnt2
Nov  7 12:40:43.800 DBG creating 2 resource(s) source=monitoring/prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0-x dest=monitoring/prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0 attempt_id=aaded strategy=mnt2
Nov  7 12:40:43.813 DBG beginning wait for 2 resources with timeout of 2m0s source=monitoring/prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0-x dest=monitoring/prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0 attempt_id=aaded strategy=mnt2