public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH manager] ceph install wizard: fix #3597: don't autofill network
@ 2022-05-02 14:05 Aaron Lauterer
  2022-06-01 10:27 ` Aaron Lauterer
  0 siblings, 1 reply; 4+ messages in thread
From: Aaron Lauterer @ 2022-05-02 14:05 UTC (permalink / raw)
  To: pve-devel

By not auto filling the Ceph public network we can avoid accidential
clicks on 'Next' which will cause the first Mon to be created with a
potentially wrong network. While that is fixable, it is tedious and can
be easily avoided by making the user always select the network to use.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
---
 www/manager6/ceph/CephInstallWizard.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager6/ceph/CephInstallWizard.js b/www/manager6/ceph/CephInstallWizard.js
index 59458b0d..bebfc319 100644
--- a/www/manager6/ceph/CephInstallWizard.js
+++ b/www/manager6/ceph/CephInstallWizard.js
@@ -372,6 +372,7 @@ Ext.define('PVE.ceph.CephInstallWizard', {
 		    name: 'network',
 		    value: '',
 		    fieldLabel: 'Public Network IP/CIDR',
+		    autoSelect: false,
 		    bind: {
 			allowBlank: '{configuration}',
 		    },
-- 
2.30.2





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

* Re: [pve-devel] [PATCH manager] ceph install wizard: fix #3597: don't autofill network
  2022-05-02 14:05 [pve-devel] [PATCH manager] ceph install wizard: fix #3597: don't autofill network Aaron Lauterer
@ 2022-06-01 10:27 ` Aaron Lauterer
  2022-06-02 13:30   ` Stefan Hrdlicka
  0 siblings, 1 reply; 4+ messages in thread
From: Aaron Lauterer @ 2022-06-01 10:27 UTC (permalink / raw)
  To: pve-devel

Can someone take a look at this? Patch should still apply.

On 5/2/22 16:05, Aaron Lauterer wrote:
> By not auto filling the Ceph public network we can avoid accidential
> clicks on 'Next' which will cause the first Mon to be created with a
> potentially wrong network. While that is fixable, it is tedious and can
> be easily avoided by making the user always select the network to use.
> 
> Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
> ---
>   www/manager6/ceph/CephInstallWizard.js | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/www/manager6/ceph/CephInstallWizard.js b/www/manager6/ceph/CephInstallWizard.js
> index 59458b0d..bebfc319 100644
> --- a/www/manager6/ceph/CephInstallWizard.js
> +++ b/www/manager6/ceph/CephInstallWizard.js
> @@ -372,6 +372,7 @@ Ext.define('PVE.ceph.CephInstallWizard', {
>   		    name: 'network',
>   		    value: '',
>   		    fieldLabel: 'Public Network IP/CIDR',
> +		    autoSelect: false,
>   		    bind: {
>   			allowBlank: '{configuration}',
>   		    },




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

* Re: [pve-devel] [PATCH manager] ceph install wizard: fix #3597: don't autofill network
  2022-06-01 10:27 ` Aaron Lauterer
@ 2022-06-02 13:30   ` Stefan Hrdlicka
  2022-06-08  7:04     ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Hrdlicka @ 2022-06-02 13:30 UTC (permalink / raw)
  To: pve-devel

Tried it and works as expected.

I can't answer the original mail, since I joined the mailing list a bit later :).

Tested-by: Stefan Hrdlicka<s.hrdlicka@proxmox.com>

On 6/1/22 12:27, Aaron Lauterer wrote:
> Can someone take a look at this? Patch should still apply.
>
> On 5/2/22 16:05, Aaron Lauterer wrote:
>> By not auto filling the Ceph public network we can avoid accidential
>> clicks on 'Next' which will cause the first Mon to be created with a
>> potentially wrong network. While that is fixable, it is tedious and can
>> be easily avoided by making the user always select the network to use.
>>
>> Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
>> ---
>>   www/manager6/ceph/CephInstallWizard.js | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/www/manager6/ceph/CephInstallWizard.js 
>> b/www/manager6/ceph/CephInstallWizard.js
>> index 59458b0d..bebfc319 100644
>> --- a/www/manager6/ceph/CephInstallWizard.js
>> +++ b/www/manager6/ceph/CephInstallWizard.js
>> @@ -372,6 +372,7 @@ Ext.define('PVE.ceph.CephInstallWizard', {
>>               name: 'network',
>>               value: '',
>>               fieldLabel: 'Public Network IP/CIDR',
>> +            autoSelect: false,
>>               bind: {
>>               allowBlank: '{configuration}',
>>               },
>
>
> _______________________________________________
> pve-devel mailing list
> pve-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
>
From f.gruenbichler@proxmox.com  Thu Jun  2 16:34:12 2022
Return-Path: <f.gruenbichler@proxmox.com>
X-Original-To: pve-devel@lists.proxmox.com
Delivered-To: pve-devel@lists.proxmox.com
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by lists.proxmox.com (Postfix) with ESMTPS id B0F40750CA
 for <pve-devel@lists.proxmox.com>; Thu,  2 Jun 2022 16:34:12 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
 by firstgate.proxmox.com (Proxmox) with ESMTP id A00D06451
 for <pve-devel@lists.proxmox.com>; Thu,  2 Jun 2022 16:33:42 +0200 (CEST)
Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com
 [94.136.29.106])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by firstgate.proxmox.com (Proxmox) with ESMTPS id E7BE46446
 for <pve-devel@lists.proxmox.com>; Thu,  2 Jun 2022 16:33:40 +0200 (CEST)
Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1])
 by proxmox-new.maurer-it.com (Proxmox) with ESMTP id B8EB14349C
 for <pve-devel@lists.proxmox.com>; Thu,  2 Jun 2022 16:33:40 +0200 (CEST)
Date: Thu, 02 Jun 2022 16:33:34 +0200
From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= <f.gruenbichler@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
References: <20220524114116.2543812-1-d.csapak@proxmox.com>
In-Reply-To: <20220524114116.2543812-1-d.csapak@proxmox.com>
MIME-Version: 1.0
User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid)
Message-Id: <1654180326.vcply64b2j.astroid@nora.none>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-SPAM-LEVEL: Spam detection results:  0
 AWL 0.172 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment
 SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
 SPF_PASS               -0.001 SPF: sender matches SPF record
 T_SCC_BODY_TEXT_LINE    -0.01 -
 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See
 http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more
 information. [proxmox.com, replicationstate.pm]
Subject: Re: [pve-devel] [RFC PATCH guest-common 1/2] ReplicationState:
 purge state from non local vms
X-BeenThere: pve-devel@lists.proxmox.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/>
List-Post: <mailto:pve-devel@lists.proxmox.com>
List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe>
X-List-Received-Date: Thu, 02 Jun 2022 14:34:12 -0000

On May 24, 2022 1:41 pm, Dominik Csapak wrote:
> when running replication, we don't want to keep replication states for
> non-local vms. Normally this would not be a problem, since on migration,
> we transfer the states anyway, but when the ha-manager steals a vm, it
> cannot do that. In that case, having an old state lying around is
> harmful, since the code does not expect the state to be out-of-sync
> with the actual snapshots on disk.
>=20
> One such problem is the following:
>=20
> Replicate vm 100 from node A to node B and C, and activate HA. When node
> A dies, it will be relocated to e.g. node B and start replicate from
> there. If node B now had an old state lying around for it's sync to node
> C, it might delete the common base snapshots of B and C and cannot sync
> again.
>=20
> Deleting the state for all non local guests fixes that issue, since it
> always starts fresh, and the potentially existing old state cannot be
> valid anyway since we just relocated the vm here (from a dead node).
>=20
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>

the logic seems sound, the state *is* invalid/outdated once the guest=20
has been stolen..

Reviewed-by: Fabian Gr=C3=BCnbichler <f.gruenbichler@proxmox.com>

> ---
> i tested it in various configurations and with live migration, offline
> migration, ha relocation etc. and did not find an issue, but since
> the check was already there and commented out, maybe someone has a
> better idea why this might not be a good thing, so sending as RFC
>=20
>  src/PVE/ReplicationState.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>=20
> diff --git a/src/PVE/ReplicationState.pm b/src/PVE/ReplicationState.pm
> index 0a5e410..8eebb42 100644
> --- a/src/PVE/ReplicationState.pm
> +++ b/src/PVE/ReplicationState.pm
> @@ -215,7 +215,7 @@ sub purge_old_states {
>  	my $tid =3D $plugin->get_unique_target_id($jobcfg);
>  	my $vmid =3D $jobcfg->{guest};
>  	$used_tids->{$vmid}->{$tid} =3D 1
> -	    if defined($vms->{ids}->{$vmid}); # && $vms->{ids}->{$vmid}->{node}=
 eq $local_node;
> +	    if defined($vms->{ids}->{$vmid}) && $vms->{ids}->{$vmid}->{node} eq=
 $local_node;
>      }
> =20
>      my $purge_state =3D sub {
> --=20
> 2.30.2
>=20
>=20
>=20
> _______________________________________________
> pve-devel mailing list
> pve-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>=20
>=20
>=20




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

* [pve-devel] applied: [PATCH manager] ceph install wizard: fix #3597: don't autofill network
  2022-06-02 13:30   ` Stefan Hrdlicka
@ 2022-06-08  7:04     ` Thomas Lamprecht
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2022-06-08  7:04 UTC (permalink / raw)
  To: Proxmox VE development discussion, Stefan Hrdlicka, Aaron Lauterer

Am 02/06/2022 um 15:30 schrieb Stefan Hrdlicka:
> Tried it and works as expected.
> 
> I can't answer the original mail, since I joined the mailing list a bit later :).

Really no biggie, but FYI, it depends on the capabillities of your mail client/MUA but
normally you'd only need to add a "In-Reply-To: <message-id>" header, can often be done
by simply clicking the mail address link at the top of the mailman archives, which includes
that part in it's mailto: href, e.g. for this one it would have been [0].
I use that sometimes for lists I'm not subscribed too, e.g., as they're high volume or
niche.

[0]: https://lists.proxmox.com/pipermail/pve-devel/2022-May/052890.html


Other small nit: please avoid top posting [1], most MUA's can be configured where to place
the cursor plus some empty space by default on reply.

[1]: https://git-send-email.io/top-posting.html

> Tested-by: Stefan Hrdlicka<s.hrdlicka@proxmox.com>

applied with that, I also changed the commit message's subject to better match our style
("fix #bug" in the front, then a bit more specific about what was touched) thanks!




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

end of thread, other threads:[~2022-06-08  7:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-02 14:05 [pve-devel] [PATCH manager] ceph install wizard: fix #3597: don't autofill network Aaron Lauterer
2022-06-01 10:27 ` Aaron Lauterer
2022-06-02 13:30   ` Stefan Hrdlicka
2022-06-08  7:04     ` [pve-devel] applied: " 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