Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to migrate instance between encrypted CNs #92

Open
blackwood821 opened this issue Oct 23, 2023 · 1 comment
Open

Unable to migrate instance between encrypted CNs #92

blackwood821 opened this issue Oct 23, 2023 · 1 comment

Comments

@blackwood821
Copy link

[root@headnode (us-west-agc) ~]# sdc-migrate migrate -n 44454c4c-5100-1059-8057-b9c04f4e5832 3d583590-c8ff-cd0d-e0b4-c3e439208fe6
# Migration begin running in job 93270a0c-4700-436c-84d0-493b70fe0ed1
 - reserving instance
 - syncing data
Failure: failed to sync migration instance - Error - Error: sync error: zfs snapshot error: Command failed: /usr/sbin/zfs send --parsable --dryrun --replicate zones/3d583590-c8ff-cd0d-e0b4-c3e439208fe6@vm-migration-1

Here is what I see on the source CN:

[root@cn04 (us-west-agc) /opt]# zfs list -t all -r zones/3d583590-c8ff-cd0d-e0b4-c3e439208fe6
NAME                                                             USED  AVAIL     REFER  MOUNTPOINT
zones/3d583590-c8ff-cd0d-e0b4-c3e439208fe6                       416M  99.6G     64.9M  /zones/3d583590-c8ff-cd0d-e0b4-c3e439208fe6
zones/3d583590-c8ff-cd0d-e0b4-c3e439208fe6@vm-migration-1           0      -     64.9M  -
zones/3d583590-c8ff-cd0d-e0b4-c3e439208fe6/data                  397M  99.6G      397M  /zones/3d583590-c8ff-cd0d-e0b4-c3e439208fe6/data
zones/3d583590-c8ff-cd0d-e0b4-c3e439208fe6/data@vm-migration-1      0      -      397M  -

And here is the underlying error:

[root@cn04 (us-west-agc) /opt]# /usr/sbin/zfs send --parsable --dryrun --replicate zones/3d583590-c8ff-cd0d-e0b4-c3e439208fe6@vm-migration-1 > [email protected]
cannot send zones/3d583590-c8ff-cd0d-e0b4-c3e439208fe6@vm-migration-1: encrypted dataset zones/3d583590-c8ff-cd0d-e0b4-c3e439208fe6 may not be sent with properties without the raw flag

Code of interest may be https://github.com/TritonDataCenter/sdc-cn-agent/blob/master/lib/backends/smartos/bin/machine-migrate-send.js#L945

@blackwood821 blackwood821 changed the title Unable to migrate Triton volume between encrypted CNs Unable to migrate instance between encrypted CNs Oct 24, 2023
@blackwood821
Copy link
Author

It appears this has been an issue for over 2 years and possibly ever since the beginning so it's nothing new:
TritonDataCenter/sdc-cn-agent#37 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant