all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH v2 qemu-server 0/9] RFC: sdn: add ipam support
@ 2021-07-11 22:46 Alexandre Derumier
  2021-07-11 22:46 ` [pve-devel] [PATCH v2 qemu-server 1/9] add ipam module Alexandre Derumier
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Alexandre Derumier @ 2021-07-11 22:46 UTC (permalink / raw)
  To: pve-devel

Hi,

This is an RFC to implement ipam support on qemu-server.

This don't change the cloud-init current working.

As I need to manage pending ip registration configuration, to follow the pending netX interfaces.

I have added ip,ip6,gw,gw6 field to netX interfaces options. (same than LXC).

(as current ipconfigX pending, is pending cloudinit generation)


so the workflow is:

--> update netX=...,ip=.... 
   --> ip is registered as pending
         --> hotplug/coldplug succesful
               ---> pending ip replace current conf oldip
                       ---->the ip set in cloudinit pending ipconfigX
                            ------> cloudinit regeneration
                                 ---> ipconfigX is remove from pending

As documentation said than ipconfigX is for cloudinit config,
I think it could be ok.

Some users could use the sdn features without cloudinit(allow some subnets only, and autogenerate firewall ipfilter).

Also, for ipam, I need bridge && mac from the netX, and ip need to follow pending states of the nic.

Changelog v2:

- rebase on last master / proxmox7
- fix handling errors when multiple nics are hotplugged at same time
- keep ip address in ipam if snapshots reference it
- only update dns when pending ip is apply (need new pve-network patch)
- implement snapshot rollback/delete
- implement vm create/destroy


todo : implement backup restore


Alexandre Derumier (9):
  add ipam module
  add print_ipconfig
  add ip options to netdescr
  ipam : add update/delete support
  ipam : add revert ip support
  ipam : add snapshot rollback support
  ipam : add snaphot delete support
  ipam : add create vm support
  ipam : add destroy vm support

 PVE/API2/Qemu.pm        |  56 +++++++++-
 PVE/QemuConfig.pm       |  32 ++++++
 PVE/QemuServer.pm       | 228 ++++++++++++++++++++++++++++++++++++++++
 PVE/QemuServer/Ipam.pm  | 141 +++++++++++++++++++++++++
 PVE/QemuServer/Makefile |   1 +
 5 files changed, 457 insertions(+), 1 deletion(-)
 create mode 100644 PVE/QemuServer/Ipam.pm

-- 
2.30.2




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

end of thread, other threads:[~2021-07-11 22:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-11 22:46 [pve-devel] [PATCH v2 qemu-server 0/9] RFC: sdn: add ipam support Alexandre Derumier
2021-07-11 22:46 ` [pve-devel] [PATCH v2 qemu-server 1/9] add ipam module Alexandre Derumier
2021-07-11 22:47 ` [pve-devel] [PATCH v2 qemu-server 2/9] add print_ipconfig Alexandre Derumier
2021-07-11 22:47 ` [pve-devel] [PATCH v2 qemu-server 3/9] add ip options to netdescr Alexandre Derumier
2021-07-11 22:47 ` [pve-devel] [PATCH v2 qemu-server 4/9] ipam : add update/delete support Alexandre Derumier
2021-07-11 22:47 ` [pve-devel] [PATCH v2 qemu-server 5/9] ipam : add revert ip support Alexandre Derumier
2021-07-11 22:47 ` [pve-devel] [PATCH v2 qemu-server 6/9] ipam : add snapshot rollback support Alexandre Derumier
2021-07-11 22:47 ` [pve-devel] [PATCH v2 qemu-server 7/9] ipam : add snaphot delete support Alexandre Derumier
2021-07-11 22:47 ` [pve-devel] [PATCH v2 qemu-server 8/9] ipam : add create vm support Alexandre Derumier
2021-07-11 22:47 ` [pve-devel] [PATCH v2 qemu-server 9/9] ipam : add destroy " Alexandre Derumier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal