Vinzenz Feenstra has posted comments on this change.
Change subject: Create GuestAgent instance in __init__ and connect later
......................................................................
Patch Set 11:
(1 comment)
http://gerrit.ovirt.org/#/c/26142/11/vdsm/virt/guestagent.py
File vdsm/virt/guestagent.py:
Line 138: def connect(self):
Line 139: try:
Line 140: self._prepare_socket()
Line 141: except:
Line 142: self.log.error("Failed to prepare vmchannel",
exc_info=True)
There is no need to log the backtrace twice. Since we re-raise, the
caller
ok, I was kind of thinking about this myself, but I did not want to add too
much changes in this patch, but since you seem to prefer it. I will remove the error
handling here now.
Line 143: raise
Line 144: else:
Line 145: self._channelListener.register(
Line 146: self._create,
--
To view, visit
http://gerrit.ovirt.org/26142
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I82f7397b01bff48a3c635eee9912cc67cf722b13
Gerrit-PatchSet: 11
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Vinzenz Feenstra <vfeenstr(a)redhat.com>
Gerrit-Reviewer: Antoni Segura Puimedon <asegurap(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani(a)redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skrivanek(a)redhat.com>
Gerrit-Reviewer: Vinzenz Feenstra <vfeenstr(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes