public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH stable-7 guest-common] storage tunnel: correctly set disk-import parameters
@ 2024-11-29 11:54 Fiona Ebner
  2025-02-12 10:55 ` Fabian Grünbichler
  0 siblings, 1 reply; 5+ messages in thread
From: Fiona Ebner @ 2024-11-29 11:54 UTC (permalink / raw)
  To: pve-devel

From: Fabian Grünbichler <f.gruenbichler@proxmox.com>

according to the schema, else some combinations of migration / guest /
storage settings will fail validation:

2024-05-15 11:48:51 ERROR: migration_snapshot: type check ('boolean') failed - got ''

since this is client / source side, remote migrations to a remote node
with validation enabled can fail without this change.

The fact that this is required for Proxmox VE 7 was reported in the
community forum:
https://forum.proxmox.com/threads/158202/

While Proxmox VE 7 is end-of-life since the end of July 2024, it's
still nice to keep upgrade paths to supported versions open.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 172ab9f5ccc40666478f2f83696e6b1e62090e2a)
[FE: add rationale for backport]
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
 src/PVE/StorageTunnel.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PVE/StorageTunnel.pm b/src/PVE/StorageTunnel.pm
index 41147dd..e6390df 100644
--- a/src/PVE/StorageTunnel.pm
+++ b/src/PVE/StorageTunnel.pm
@@ -50,13 +50,13 @@ sub storage_migrate {
     my $disk_import_opts = {
 	format => $format,
 	storage => $targetsid,
-	snapshot => $snapshot,
-	migration_snapshot => $migration_snapshot,
+	migration_snapshot => $migration_snapshot ? 1 : 0,
 	with_snapshots => $with_snapshots,
 	allow_rename => !$opts->{is_vmstate},
 	export_formats => join(",", @export_formats),
 	volname => $name,
     };
+    $disk_import_opts->{snapshot} = $snapshot if $snapshot;
     my $res = PVE::Tunnel::write_tunnel($tunnel, 600, 'disk-import', $disk_import_opts);
     my $local = "/run/pve/$local_vmid.storage";
     if (!$tunnel->{forwarded}->{$local}) {
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [pve-devel] [PATCH stable-7 guest-common] storage tunnel: correctly set disk-import parameters
  2024-11-29 11:54 [pve-devel] [PATCH stable-7 guest-common] storage tunnel: correctly set disk-import parameters Fiona Ebner
@ 2025-02-12 10:55 ` Fabian Grünbichler
  2025-03-04 18:09   ` Thomas Lamprecht
  0 siblings, 1 reply; 5+ messages in thread
From: Fabian Grünbichler @ 2025-02-12 10:55 UTC (permalink / raw)
  To: Proxmox VE development discussion

do we still want to bump this? do we also want to include other recent
fixes for remote migration if we do so?

On November 29, 2024 12:54 pm, Fiona Ebner wrote:
> From: Fabian Grünbichler <f.gruenbichler@proxmox.com>
> 
> according to the schema, else some combinations of migration / guest /
> storage settings will fail validation:
> 
> 2024-05-15 11:48:51 ERROR: migration_snapshot: type check ('boolean') failed - got ''
> 
> since this is client / source side, remote migrations to a remote node
> with validation enabled can fail without this change.
> 
> The fact that this is required for Proxmox VE 7 was reported in the
> community forum:
> https://forum.proxmox.com/threads/158202/
> 
> While Proxmox VE 7 is end-of-life since the end of July 2024, it's
> still nice to keep upgrade paths to supported versions open.
> 
> Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
> (cherry picked from commit 172ab9f5ccc40666478f2f83696e6b1e62090e2a)
> [FE: add rationale for backport]
> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
> ---
>  src/PVE/StorageTunnel.pm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/PVE/StorageTunnel.pm b/src/PVE/StorageTunnel.pm
> index 41147dd..e6390df 100644
> --- a/src/PVE/StorageTunnel.pm
> +++ b/src/PVE/StorageTunnel.pm
> @@ -50,13 +50,13 @@ sub storage_migrate {
>      my $disk_import_opts = {
>  	format => $format,
>  	storage => $targetsid,
> -	snapshot => $snapshot,
> -	migration_snapshot => $migration_snapshot,
> +	migration_snapshot => $migration_snapshot ? 1 : 0,
>  	with_snapshots => $with_snapshots,
>  	allow_rename => !$opts->{is_vmstate},
>  	export_formats => join(",", @export_formats),
>  	volname => $name,
>      };
> +    $disk_import_opts->{snapshot} = $snapshot if $snapshot;
>      my $res = PVE::Tunnel::write_tunnel($tunnel, 600, 'disk-import', $disk_import_opts);
>      my $local = "/run/pve/$local_vmid.storage";
>      if (!$tunnel->{forwarded}->{$local}) {
> -- 
> 2.39.5
> 
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [pve-devel] [PATCH stable-7 guest-common] storage tunnel: correctly set disk-import parameters
  2025-02-12 10:55 ` Fabian Grünbichler
@ 2025-03-04 18:09   ` Thomas Lamprecht
  2025-03-05  9:46     ` Fiona Ebner
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Lamprecht @ 2025-03-04 18:09 UTC (permalink / raw)
  To: Proxmox VE development discussion, Fabian Grünbichler

Am 12.02.25 um 11:55 schrieb Fabian Grünbichler:
> do we still want to bump this? do we also want to include other recent
> fixes for remote migration if we do so?

Not a huge fan, but it would be fine for me as long as they are
targeted; ensuring upgrade is easy reduces pressure for requiring an
LTS.

> On November 29, 2024 12:54 pm, Fiona Ebner wrote:
>> From: Fabian Grünbichler <f.gruenbichler@proxmox.com>
>>
>> according to the schema, else some combinations of migration / guest /
>> storage settings will fail validation:
>>
>> 2024-05-15 11:48:51 ERROR: migration_snapshot: type check ('boolean') failed - got ''
>>
>> since this is client / source side, remote migrations to a remote node
>> with validation enabled can fail without this change.
>>
>> The fact that this is required for Proxmox VE 7 was reported in the
>> community forum:
>> https://forum.proxmox.com/threads/158202/
>>
>> While Proxmox VE 7 is end-of-life since the end of July 2024, it's
>> still nice to keep upgrade paths to supported versions open.

Albeit remote migration was/is rather a bit experimental in general,
but as mentioned above I agree in general with the sentiment.

>>
>> Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
>> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
>> (cherry picked from commit 172ab9f5ccc40666478f2f83696e6b1e62090e2a)
>> [FE: add rationale for backport]



>> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
>> ---
>>  src/PVE/StorageTunnel.pm | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [pve-devel] [PATCH stable-7 guest-common] storage tunnel: correctly set disk-import parameters
  2025-03-04 18:09   ` Thomas Lamprecht
@ 2025-03-05  9:46     ` Fiona Ebner
  2025-03-05 11:12       ` Thomas Lamprecht
  0 siblings, 1 reply; 5+ messages in thread
From: Fiona Ebner @ 2025-03-05  9:46 UTC (permalink / raw)
  To: Proxmox VE development discussion, Thomas Lamprecht,
	Fabian Grünbichler

Am 04.03.25 um 19:09 schrieb Thomas Lamprecht:
> Am 12.02.25 um 11:55 schrieb Fabian Grünbichler:
>> do we still want to bump this? do we also want to include other recent
>> fixes for remote migration if we do so?
> 
> Not a huge fan, but it would be fine for me as long as they are
> targeted; ensuring upgrade is easy reduces pressure for requiring an
> LTS.
> 
>> On November 29, 2024 12:54 pm, Fiona Ebner wrote:
>>> From: Fabian Grünbichler <f.gruenbichler@proxmox.com>
>>>
>>> according to the schema, else some combinations of migration / guest /
>>> storage settings will fail validation:
>>>
>>> 2024-05-15 11:48:51 ERROR: migration_snapshot: type check ('boolean') failed - got ''
>>>
>>> since this is client / source side, remote migrations to a remote node
>>> with validation enabled can fail without this change.
>>>
>>> The fact that this is required for Proxmox VE 7 was reported in the
>>> community forum:
>>> https://forum.proxmox.com/threads/158202/
>>>
>>> While Proxmox VE 7 is end-of-life since the end of July 2024, it's
>>> still nice to keep upgrade paths to supported versions open.
> 
> Albeit remote migration was/is rather a bit experimental in general,
> but as mentioned above I agree in general with the sentiment.

Apparently would still be useful, even months later:

https://forum.proxmox.com/threads/issue-with-vm-migration-from-proxmox-7-4-to-8-3-involving-cloudinit-drive.163048/


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [pve-devel] [PATCH stable-7 guest-common] storage tunnel: correctly set disk-import parameters
  2025-03-05  9:46     ` Fiona Ebner
@ 2025-03-05 11:12       ` Thomas Lamprecht
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Lamprecht @ 2025-03-05 11:12 UTC (permalink / raw)
  To: Fiona Ebner, Proxmox VE development discussion

Am 05.03.25 um 10:46 schrieb Fiona Ebner:
> Am 04.03.25 um 19:09 schrieb Thomas Lamprecht:
>> Not a huge fan, but it would be fine for me as long as they are
>> targeted; ensuring upgrade is easy reduces pressure for requiring an
>> LTS.

...

>> Albeit remote migration was/is rather a bit experimental in general,
>> but as mentioned above I agree in general with the sentiment.
> 
> Apparently would still be useful, even months later:
> 
> https://forum.proxmox.com/threads/issue-with-vm-migration-from-proxmox-7-4-to-8-3-involving-cloudinit-drive.163048/

Ok, thanks for the additional pointer.

So consider this patch:

Acked-by: Thomas Lamprecht <t.lamprecht@proxmox.com>

You also have my OK for doing other backports in similar spirit as this one
here – Fabian might have some input in specific commits in mind already it
seems. Then bump and roll the package out over the next few weeks. Should
any user ask then we can argue that this is an exception for update
forward-compatibility only.


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-03-05 11:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-29 11:54 [pve-devel] [PATCH stable-7 guest-common] storage tunnel: correctly set disk-import parameters Fiona Ebner
2025-02-12 10:55 ` Fabian Grünbichler
2025-03-04 18:09   ` Thomas Lamprecht
2025-03-05  9:46     ` Fiona Ebner
2025-03-05 11:12       ` Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal