Comments (7)
Looks good! Thank you very much!
-> % /tmp/pv-migrate/dist/pv-migrate_darwin_amd64/pv-migrate migrate data destination
๐ Starting migration
๐ญ Will attempt 3 strategies: mnt2, svc, lbsvc
๐ Attempting strategy: mnt2
๐ Copying data... 100% |โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ| ()
๐งน Cleaning up
โจ Cleanup done
โ
Migration succeeded
from pv-migrate.
Thanks for reporting. I just ran a mnt2 migration and it succeeded on my side.
Can you run a migration with the following flags and post the output here?
pv-migrate --log-level debug --log-format json migrate ...
from pv-migrate.
Thanks for your quick reply!
-> % pv-migrate --log-level debug --log-format json migrate data destination
{"level":"info","msg":":rocket: Starting migration","time":"2021-11-03T11:10:32+01:00"}
{"dest":"destination","dest_ns":"","level":"info","msg":":thought_balloon: Will attempt 3 strategies: mnt2,svc,lbsvc","source":"data","source_ns":"","strategies":"mnt2,svc,lbsvc","time":"2021-11-03T11:10:32+01:00"}
{"dest":"destination","dest_ns":"","id":"vnuu0","level":"info","msg":":helicopter: Attempting strategy: mnt2","source":"data","source_ns":"","strategy":"mnt2","time":"2021-11-03T11:10:32+01:00"}
{"dest":"destination","dest_ns":"","id":"vnuu0","level":"info","msg":":broom: Cleaning up","source":"data","source_ns":"","time":"2021-11-03T11:10:32+01:00"}
{"dest":"destination","dest_ns":"","id":"vnuu0","level":"info","msg":":sparkles: Cleanup successful","source":"data","source_ns":"","time":"2021-11-03T11:10:32+01:00"}
{"dest":"destination","dest_ns":"","error":"an empty namespace may not be set during creation","id":"vnuu0","level":"warning","msg":":warning: Migration failed with this strategy, will try with the remaining strategies","source":"data","source_ns":"","strategy":"mnt2","time":"2021-11-03T11:10:32+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"info","msg":":helicopter: Attempting strategy: svc","source":"data","source_ns":"","strategy":"svc","time":"2021-11-03T11:10:32+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"info","msg":":key: Generating SSH key pair","source":"data","source_ns":"","time":"2021-11-03T11:10:32+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"info","msg":":key: Creating secret for the public key","source":"data","source_ns":"","time":"2021-11-03T11:10:32+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"info","msg":":rocket: Creating sshd pod","pod":"pv-migrate-sshd-9eo6c","source":"data","source_ns":"","time":"2021-11-03T11:10:32+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"info","msg":":hourglass_not_done: Waiting for the sshd pod to start running","pod":"pv-migrate-sshd-9eo6c","source":"data","source_ns":"","time":"2021-11-03T11:10:32+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"info","msg":":rocket: Sshd pod started","pod":"pv-migrate-sshd-9eo6c","source":"data","source_ns":"","time":"2021-11-03T11:10:50+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"info","msg":":key: Creating secret for the private key","source":"data","source_ns":"","time":"2021-11-03T11:10:50+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"info","msg":":link: Connecting to the rsync server","source":"data","source_ns":"","targetHost":"pv-migrate-sshd-9eo6c.migrate","time":"2021-11-03T11:10:50+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"debug","msg":"Warning: Permanently added 'pv-migrate-sshd-9eo6c.migrate' (ED25519) to the list of known hosts.","source":"data","source_ns":"","time":"2021-11-03T11:11:25+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"debug","msg":"./","source":"data","source_ns":"","time":"2021-11-03T11:11:25+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"debug","msg":"lost+found/","source":"data","source_ns":"","time":"2021-11-03T11:11:25+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"debug","msg":"\r 0 100% 0.00kB/s 0:00:00 (xfr#0, to-chk=0/2)\r 0 100% 0.00kB/s 0:00:00 (xfr#0, to-chk=0/2)\r 0 100% 0.00kB/s 0:00:00 (xfr#0, to-chk=0/2)","source":"data","source_ns":"","time":"2021-11-03T11:11:25+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"debug","msg":"","source":"data","source_ns":"","time":"2021-11-03T11:11:25+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"debug","msg":"sent 30 bytes received 75 bytes 210.00 bytes/sec","source":"data","source_ns":"","time":"2021-11-03T11:11:25+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"debug","msg":"total size is 0 speedup is 0.00","source":"data","source_ns":"","time":"2021-11-03T11:11:25+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"debug","msg":"","source":"data","source_ns":"","time":"2021-11-03T11:11:25+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"debug","msg":"","source":"data","source_ns":"","time":"2021-11-03T11:11:26+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"debug","msg":"","source":"data","source_ns":"","time":"2021-11-03T11:11:26+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"info","msg":":broom: Cleaning up","source":"data","source_ns":"","time":"2021-11-03T11:11:26+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"info","msg":":sparkles: Cleanup successful","source":"data","source_ns":"","time":"2021-11-03T11:11:27+01:00"}
{"dest":"destination","dest_ns":"","id":"9eo6c","level":"info","msg":":check_mark_button: Migration succeeded","source":"data","source_ns":"","strategy":"svc","time":"2021-11-03T11:11:27+01:00"}
The error "an empty namespace may not be set during creation" confused me, so I tried specifying the destination namespace and succeeded:
-> % pv-migrate --log-level debug --log-format json migrate --dest-namespace migrate data destination
{"level":"info","msg":":rocket: Starting migration","time":"2021-11-03T11:13:15+01:00"}
{"dest":"destination","dest_ns":"migrate","level":"info","msg":":thought_balloon: Will attempt 3 strategies: mnt2,svc,lbsvc","source":"data","source_ns":"","strategies":"mnt2,svc,lbsvc","time":"2021-11-03T11:13:15+01:00"}
{"dest":"destination","dest_ns":"migrate","id":"setfm","level":"info","msg":":helicopter: Attempting strategy: mnt2","source":"data","source_ns":"","strategy":"mnt2","time":"2021-11-03T11:13:15+01:00"}
{"dest":"destination","dest_ns":"migrate","id":"setfm","level":"debug","msg":"\r 0 100% 0.00kB/s 0:00:00 (xfr#0, to-chk=0/2)\r 0 100% 0.00kB/s 0:00:00 (xfr#0, to-chk=0/2)\r 0 100% 0.00kB/s 0:00:00 (xfr#0, to-chk=0/2)","source":"data","source_ns":"","time":"2021-11-03T11:13:33+01:00"}
{"dest":"destination","dest_ns":"migrate","id":"setfm","level":"debug","msg":"","source":"data","source_ns":"","time":"2021-11-03T11:13:33+01:00"}
{"dest":"destination","dest_ns":"migrate","id":"setfm","level":"debug","msg":"sent 65 bytes received 12 bytes 154.00 bytes/sec","source":"data","source_ns":"","time":"2021-11-03T11:13:33+01:00"}
{"dest":"destination","dest_ns":"migrate","id":"setfm","level":"debug","msg":"total size is 0 speedup is 0.00","source":"data","source_ns":"","time":"2021-11-03T11:13:33+01:00"}
{"dest":"destination","dest_ns":"migrate","id":"setfm","level":"debug","msg":"","source":"data","source_ns":"","time":"2021-11-03T11:13:33+01:00"}
{"dest":"destination","dest_ns":"migrate","id":"setfm","level":"info","msg":":broom: Cleaning up","source":"data","source_ns":"","time":"2021-11-03T11:13:33+01:00"}
{"dest":"destination","dest_ns":"migrate","id":"setfm","level":"info","msg":":sparkles: Cleanup successful","source":"data","source_ns":"","time":"2021-11-03T11:13:34+01:00"}
{"dest":"destination","dest_ns":"migrate","id":"setfm","level":"info","msg":":check_mark_button: Migration succeeded","source":"data","source_ns":"","strategy":"mnt2","time":"2021-11-03T11:13:34+01:00"}
from pv-migrate.
Thanks, it still looks like a bug because normally you should not need to specify the namespace - it should pick the one in the context. I'll have a look into reproducing and fixing it.
from pv-migrate.
Sounds great! Let me know if I can be of any help. I'm happy to test a potential fix.
from pv-migrate.
I believe I understood the cause and my latest commit fixes the issue.
Feel free to test it when I make the next release, or by building the master branch yourself.
from pv-migrate.
Thanks for trying ๐
from pv-migrate.
Related Issues (20)
- Receiving "Deployment is not ready" error while the deployment is ready actually HOT 8
- Add --create-dst-pvc --create-dst-pvc-storage-class to auto create dst pvc if it does not exist HOT 2
- The SSHD port number is not taken into account on the destination pod HOT 1
- Implement shrinking (reducing) of the Kubernetes PVC size via pv-migrate by replacing the PV HOT 2
- Doc Request: another use case that would have led me here faster HOT 2
- pv migrate stucking
- failed to install on source: failed to install helm chart: context deadline exceeded
- Fancy log formatter is hiding errors
- rsync.extraArgs does not work with strategy local
- Migration is failing between EKS clusters
- bash completion only working for pv-migrate, not for the kubectl plugin
- "failed to install on source: failed to install helm chart: client rate limiter Wait returned an error: rate: Wait(n=1) would exceed context deadline" HOT 4
- Use different images on source and destination HOT 9
- Run as non root without SYS_CHROOT capabilities
- Migration got halfway, now fails with rsync error: error in rsync protocol data stream (code 12) at io.c(228) HOT 4
- Can't create pods/portforward resource HOT 3
- Can't create migration job HOT 1
- Move the PV to another availability zone. HOT 1
- [Question] How would you go about migrating data fully before letting the main process start? HOT 1
- Copying data stuck 0% with "maximum authentication attempts exceeded for root" error
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 pv-migrate.