-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Linstor: Fix migrate primary storage #9528
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1402,7 +1402,10 @@ public KVMPhysicalDisk copyPhysicalDisk(KVMPhysicalDisk disk, String name, KVMSt | |
| */ | ||
|
|
||
| KVMStoragePool srcPool = disk.getPool(); | ||
| PhysicalDiskFormat sourceFormat = disk.getFormat(); | ||
| /* Linstor images are always stored as RAW, but Linstor uses qcow2 in DB, | ||
| to support snapshots(backuped) as qcow2 files. */ | ||
| PhysicalDiskFormat sourceFormat = srcPool.getType() != StoragePoolType.Linstor ? | ||
| disk.getFormat() : PhysicalDiskFormat.RAW; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can set format RAW in KVMPhysicalDisk for Linstor disks?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You mean, setting it in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sureshanaparti ping
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @rp- sorry, missed this. if the format is set while creating the linstor disk (KVMPhysicalDisk), you get it with
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. check in LinstorStorageAdaptor.java -
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sadly it is, because the LinstorStorageAdaptor isn't used for migrating from another PrimaryStorage.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you want I can create the migration error and show you the exception/error log.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, got it. maybe, you can revisit that later. |
||
| String sourcePath = disk.getPath(); | ||
|
|
||
| KVMPhysicalDisk newDisk; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.