Change in vdsm[master]: hook: before_network_rollback, after_network_rollback

danken at redhat.com danken at redhat.com
Mon Aug 24 14:57:45 UTC 2015


Dan Kenigsberg has posted comments on this change.

Change subject: hook: before_network_rollback, after_network_rollback
......................................................................


Patch Set 4: Code-Review-1

(1 comment)

https://gerrit.ovirt.org/#/c/45085/4/vdsm/network/configurators/__init__.py
File vdsm/network/configurators/__init__.py:

Line 59:                           'network.', exc_info=(type, value, traceback))
Line 60:         else:
Line 61:             hooks.before_network_rollback()
Line 62:             leftover = self.rollback()
Line 63:             hooks.after_network_rollback()
I believe that a cleaner hookpoint is after_network_setup_failure.

BTW, in your suggested context, I think you should raiseError within after_network_rollback, since you need to raise RollbackIncomplete.
Line 64:             if leftover:
Line 65:                 raise RollbackIncomplete(leftover, type, value)
Line 66: 
Line 67:     def rollback(self):


-- 
To view, visit https://gerrit.ovirt.org/45085
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I8a5d086b15b72c13d2b390c1310c2279446ac14f
Gerrit-PatchSet: 4
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Petr Horáček <phoracek at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Ido Barkan <ibarkan at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ondřej Svoboda <osvoboda at redhat.com>
Gerrit-Reviewer: Petr Horáček <phoracek at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-HasComments: Yes


More information about the vdsm-patches mailing list