[pve-devel] rfc : pve-network : idea to generate and reload config accross the nodes

Alexandre DERUMIER aderumier at odiso.com
Mon Apr 1 15:18:51 CEST 2019


as alternative,
we could simply

manage multiple change in /etc/pve/network/vnet.cfg.new

apply button -> replace /etc/pve/network/vnet.cfg

The the local daemon,
do test (dry-run,....) and report error in his status file. (and it's displayed at network level in datacenter)
if ok,
it's apply change, and report error in his status file.
if ok, update status to ok.


So, user can wait some seconds, and check the status of nodes at datacenter level.

Seem to be simplier. What do you think about this ? 



----- Mail original -----
De: "Alexandre Derumier" <aderumier at odiso.com>
À: "dietmar" <dietmar at proxmox.com>
Cc: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Lundi 1 Avril 2019 15:05:07
Objet: Re: [pve-devel] rfc : pve-network : idea to generate and reload config accross the nodes

>>I don't really get why you want to do that? There are so many ways to damage a network, and 
>>I doubt that we can reliable verify that.... 

ifupdown2 have a dry-run too, it's working not too bad (but not 100% complete) 

But I would avoid some basic mistakes, 
like a vlan interface already defined and enslaved in another bridge for example, 
or look to not enslave an interface with ipmanagement in a bridge (try to not break cluster connectivity) 


But I don't want to manage rollback across all nodes. 
(config correctly applied on 1 node, another node fail, I don't want to rollback the first node) 
It's more best effort, if 1 node have failed, it's simply report the error in his status file. 





>>Also, what if some nodes are offline ... 
We could make an exception, if a node is offline (down, network daemon down,...), 
Then don't wait for validation, and apply config. 

Then the local deamon will try to apply config when node is up again. 
In case of error, It'll report it through his status file. 

----- Mail original ----- 
De: "dietmar" <dietmar at proxmox.com> 
À: "Alexandre Derumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Lundi 1 Avril 2019 12:00:13 
Objet: Re: [pve-devel] rfc : pve-network : idea to generate and reload config accross the nodes 

> maybe better: 
> 
> in gui, at network,datacenter level 
> 
> at each change, make a 
> /etc/pve/networks/vnet.cfg.<randomversion> 
> 
> 
> on local node, the daemon detect the new version,make verification, 
> and update /etc/pve/nodes/<node>/.networkconfigstatus 
> 
> version:<randomversion> verify:ok 

I don't really get why you want to do that? There are so many ways to damage a network, and 
I doubt that we can reliable verify that.... 

Also, what if some nodes are offline ... 

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




More information about the pve-devel mailing list