Continue discussion from bug#979081. Currently vdsm-bootstrap, host-deploy, vdsm-reg do not rollback network configuration if addNetwork fails. The sequence should be: - addNetwork - vdsm-restore-net-config -> rollback - vdsm-store-net-config -> commit The problem is that vdsm-restore-net-config does not work on ovirt-node/rhev-h as it supposed to run at boot time while node does not persist the configuration if commit was not called. First question... why does it bad to run rollbak it in boot time? worse case it will not find anything to rollback... What I recommend is adding --force parameter to vdsm-restore-net-config to allow using it during host-deploy and support rollback at any environment.
I'd rather make the --force semantics implicit, as described in https://bugzilla.redhat.com/show_bug.cgi?id=979081#c8