public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH docs 1/2] pvecm: Add required -r to rm
@ 2020-07-22 10:20 Dominic Jäger
  2020-07-22 10:20 ` [pve-devel] [PATCH docs 2/2] pvecm: Add output for delnode Dominic Jäger
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Dominic Jäger @ 2020-07-22 10:20 UTC (permalink / raw)
  To: pve-devel

/etc/corosync/* includes the directory uidgid.d.
Consequentlly, a correct rm call requires -r.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
---
 pvecm.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pvecm.adoc b/pvecm.adoc
index 4bf2f59..9207571 100644
--- a/pvecm.adoc
+++ b/pvecm.adoc
@@ -414,7 +414,7 @@ Delete the corosync configuration files:
 [source,bash]
 ----
 rm /etc/pve/corosync.conf
-rm /etc/corosync/*
+rm -r /etc/corosync/*
 ----
 
 You can now start the filesystem again as normal service:
-- 
2.20.1




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

* [pve-devel] [PATCH docs 2/2] pvecm: Add output for delnode
  2020-07-22 10:20 [pve-devel] [PATCH docs 1/2] pvecm: Add required -r to rm Dominic Jäger
@ 2020-07-22 10:20 ` Dominic Jäger
  2020-08-20 13:31   ` [pve-devel] applied: " Thomas Lamprecht
  2020-07-22 10:31 ` [pve-devel] [PATCH docs 1/2] pvecm: Add required -r to rm Thomas Lamprecht
  2020-08-20 13:31 ` [pve-devel] applied: " Thomas Lamprecht
  2 siblings, 1 reply; 6+ messages in thread
From: Dominic Jäger @ 2020-07-22 10:20 UTC (permalink / raw)
  To: pve-devel

The output of "pvecm delnode someNode" is "Killing node X". Even though this
only says something about an attempt and not about success, it is not "no
output is returned".

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
---
 pvecm.adoc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pvecm.adoc b/pvecm.adoc
index 9207571..220c09f 100644
--- a/pvecm.adoc
+++ b/pvecm.adoc
@@ -327,11 +327,11 @@ After powering off the node hp4, we can safely remove it from the cluster.
 
 ----
  hp1# pvecm delnode hp4
+ Killing node 4
 ----
 
-If the operation succeeds no output is returned, just check the node
-list again with `pvecm nodes` or `pvecm status`. You should see
-something like:
+Use `pvecm nodes` or `pvecm status` to check the node list again. It should
+look something like:
 
 ----
 hp1# pvecm status
-- 
2.20.1




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

* Re: [pve-devel] [PATCH docs 1/2] pvecm: Add required -r to rm
  2020-07-22 10:20 [pve-devel] [PATCH docs 1/2] pvecm: Add required -r to rm Dominic Jäger
  2020-07-22 10:20 ` [pve-devel] [PATCH docs 2/2] pvecm: Add output for delnode Dominic Jäger
@ 2020-07-22 10:31 ` Thomas Lamprecht
  2020-07-23  7:17   ` Dominic Jäger
  2020-08-20 13:31 ` [pve-devel] applied: " Thomas Lamprecht
  2 siblings, 1 reply; 6+ messages in thread
From: Thomas Lamprecht @ 2020-07-22 10:31 UTC (permalink / raw)
  To: Proxmox VE development discussion, Dominic Jäger

On 22.07.20 12:20, Dominic Jäger wrote:
> /etc/corosync/* includes the directory uidgid.d.
> Consequentlly, a correct rm call requires -r.

Does leaving this directory left-over causes any issues?

IIRC, I omit the "-r" explicitly as there can be also a directory from
a qdevice or other ones, which we do not want to remove - to level
corosync/* files where all desired to be removed, thus this rm varian.

But, maybe we should rather change it to:
# rm -f /etc/corosync/corosync.conf /etc/corosync/authkey

to make that more explicit

> 
> Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
> ---
>  pvecm.adoc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/pvecm.adoc b/pvecm.adoc
> index 4bf2f59..9207571 100644
> --- a/pvecm.adoc
> +++ b/pvecm.adoc
> @@ -414,7 +414,7 @@ Delete the corosync configuration files:
>  [source,bash]
>  ----
>  rm /etc/pve/corosync.conf
> -rm /etc/corosync/*
> +rm -r /etc/corosync/*
>  ----
>  
>  You can now start the filesystem again as normal service:
> 






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

* Re: [pve-devel] [PATCH docs 1/2] pvecm: Add required -r to rm
  2020-07-22 10:31 ` [pve-devel] [PATCH docs 1/2] pvecm: Add required -r to rm Thomas Lamprecht
@ 2020-07-23  7:17   ` Dominic Jäger
  0 siblings, 0 replies; 6+ messages in thread
From: Dominic Jäger @ 2020-07-23  7:17 UTC (permalink / raw)
  To: Thomas Lamprecht; +Cc: Proxmox VE development discussion

On Wed, Jul 22, 2020 at 12:31:53PM +0200, Thomas Lamprecht wrote:
> On 22.07.20 12:20, Dominic Jäger wrote:
> > /etc/corosync/* includes the directory uidgid.d.
> > Consequentlly, a correct rm call requires -r.
> 
> Does leaving this directory left-over causes any issues?
When I tested this it was empty. It should contain some optional permissions
for corosync [0].

We later say "(...) delete all remaining files left from the old cluster. This
ensures that the node can be added to another cluster again without problems."

Couldn't those permissions then be active in a potential new cluster?

> IIRC, I omit the "-r" explicitly as there can be also a directory from
> a qdevice or other ones, which we do not want to remove - to level
> corosync/* files where all desired to be removed, thus this rm varian.

Looking at the quote from before, why do we want some connection to the qdevice
to remain?

> But, maybe we should rather change it to:
> # rm -f /etc/corosync/corosync.conf /etc/corosync/authkey

I just tried it without -f:

root@pveA:/etc/corosync# ls
authkey  corosync.conf  uidgid.d
root@pveA:/etc/corosync# rm /etc/corosync/corosync.conf /etc/corosync/authkey
root@pveA:/etc/corosync# ls
uidgid.d

And the node was removed from the cluster as expected.

I can test it with permissions and qdevice, too. Would just have look up how
that actually works.

[0] https://www.mankier.com/8/pcs (ctrl+f for uidgid)




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

* [pve-devel] applied: [PATCH docs 1/2] pvecm: Add required -r to rm
  2020-07-22 10:20 [pve-devel] [PATCH docs 1/2] pvecm: Add required -r to rm Dominic Jäger
  2020-07-22 10:20 ` [pve-devel] [PATCH docs 2/2] pvecm: Add output for delnode Dominic Jäger
  2020-07-22 10:31 ` [pve-devel] [PATCH docs 1/2] pvecm: Add required -r to rm Thomas Lamprecht
@ 2020-08-20 13:31 ` Thomas Lamprecht
  2 siblings, 0 replies; 6+ messages in thread
From: Thomas Lamprecht @ 2020-08-20 13:31 UTC (permalink / raw)
  To: Proxmox VE development discussion, Dominic Jäger

On 22.07.20 12:20, Dominic Jäger wrote:
> /etc/corosync/* includes the directory uidgid.d.
> Consequentlly, a correct rm call requires -r.
> 
> Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
> ---
>  pvecm.adoc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
>

applied, thanks!





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

* [pve-devel] applied: [PATCH docs 2/2] pvecm: Add output for delnode
  2020-07-22 10:20 ` [pve-devel] [PATCH docs 2/2] pvecm: Add output for delnode Dominic Jäger
@ 2020-08-20 13:31   ` Thomas Lamprecht
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Lamprecht @ 2020-08-20 13:31 UTC (permalink / raw)
  To: Proxmox VE development discussion, Dominic Jäger

On 22.07.20 12:20, Dominic Jäger wrote:
> The output of "pvecm delnode someNode" is "Killing node X". Even though this
> only says something about an attempt and not about success, it is not "no
> output is returned".
> 
> Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
> ---
>  pvecm.adoc | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
>

applied, thanks!





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

end of thread, other threads:[~2020-08-20 13:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-22 10:20 [pve-devel] [PATCH docs 1/2] pvecm: Add required -r to rm Dominic Jäger
2020-07-22 10:20 ` [pve-devel] [PATCH docs 2/2] pvecm: Add output for delnode Dominic Jäger
2020-08-20 13:31   ` [pve-devel] applied: " Thomas Lamprecht
2020-07-22 10:31 ` [pve-devel] [PATCH docs 1/2] pvecm: Add required -r to rm Thomas Lamprecht
2020-07-23  7:17   ` Dominic Jäger
2020-08-20 13:31 ` [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