On Mon, Apr 26, 2010 at 1:20 PM, Apollon Oikonomopoulos <[email protected]> wrote: > Added downscript= to the kvm command line for each nic. This is intended > mainly > to facilitate cleanup from actions taken by /etc/ganeti/kvm-vif-bridge, such > as > firewall rules etc. This script creates the appropriate environment and calls > /etc/ganeti/kvm-vif-down, if it exists. > > Renamed _WriteNetScript to _WriteIfUpScript and introduced > _WriteIfDownScript(). > > Ifdown scripts are stored under _CONF_ROOT, since they are not as volatile as > ifup-scripts. > > Introduced KVMHypervisor._InstanceIfDown() to return ifdown-script names, used > by KVMHypervisor._RemoveInstanceRuntimeFiles().
I'm wondering if both up and down scripts should live in the new runtime files dir. Also, I had another thought: is there an option to ship a static (bash or python) ganeti-kvm-ifup and ganeti-kvm-ifdown script, and let it read the instance configuration from somewhere on disk? This would simplify everything a lot, wouldn't it? Thanks, Guido
