Giter VIP home page Giter VIP logo

Comments (7)

muffl0n avatar muffl0n commented on September 28, 2024 1

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.

utkuozdemir avatar utkuozdemir commented on September 28, 2024

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.

muffl0n avatar muffl0n commented on September 28, 2024

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.

utkuozdemir avatar utkuozdemir commented on September 28, 2024

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.

muffl0n avatar muffl0n commented on September 28, 2024

Sounds great! Let me know if I can be of any help. I'm happy to test a potential fix.

from pv-migrate.

utkuozdemir avatar utkuozdemir commented on September 28, 2024

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.

utkuozdemir avatar utkuozdemir commented on September 28, 2024

Thanks for trying ๐Ÿ™‚

from pv-migrate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.