enable static IP -> capsul mapping via libvirt (manage MAC addresses) #11
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this is what i was talking about last night in terms of dynamically updating the net config: https://listman.redhat.com/archives/libvir-list/2012-September/msg01380.html
looks like the order could be:
create vm definition, (this would include the mac address that we assign to their network interface.)
find a subnet with free IP space
find an unused IP address
update the appropriate netconfig dynamically by assigning an unused IP to that mac address
when shutting down, we'd sort of do the opposite. the source of truth could be the network config (which is accessible via API) since it dictates which IPs are supposed to be "in use".
We would also need to implement a cronjob that backs up the network configs, easy enuff.
then users could stop their VMs indefinitely, and there wouldn't be any worries about IPs being released. then we could just charge for the IP and disk, but not the RAM or CPU.
~j3s4 months ago · edit
This mapping is still enabled and must be turned off. Mapping should only be enable for maintenance events.
~j3s closed duplicate ticket #714 months ago
~foresta month ago · edit
BUMP this is high priority to mitigate future capsul outages & hopefully get back up and running sooner
~forest referenced this from #89
I think we just need to update the start method that the users have access to to do the same thing as the admin panel one and then this can be closed.
looks like it should be easy to specify the mac before the VM exists 👍️
I started working on this on the
manage-mac
branch but didn't get far, I think this is slightly lower priority than all the other outage mitigation tasks now that the admin panel exists.enable static IP -> capsul mapping via libvirtto enable static IP -> capsul mapping via libvirt (manage MAC addresses)This is also needed so I can implement
properly...
Right now the mac address(es) are not stored in the DB. So that above task is blocked until we get mac managed by capsul-flask.