Change in vdsm[master]: vdsm-upgrade: adds wrapper to ovirt-node-upgrade
dougsland at redhat.com
dougsland at redhat.com
Wed Jun 18 04:56:27 UTC 2014
Douglas Schilling Landgraf has posted comments on this change.
Change subject: vdsm-upgrade: adds wrapper to ovirt-node-upgrade
......................................................................
Patch Set 9:
(3 comments)
The next patch I have tested and it shows the message to users async in console and in ovirt-engine.
http://gerrit.ovirt.org/#/c/28244/9/vdsm_reg/vdsm-upgrade
File vdsm_reg/vdsm-upgrade:
Line 15:
Line 16: from xml.sax import saxutils
Line 17:
Line 18:
Line 19: def _format_msg(msg_line):
> it is printing/outputting it is not format and return a string...
well, isn't to format to a msg to xml schema? Anyway, ok.
Line 20: _XML_QUOTES = {"'": '~'}
Line 21:
Line 22: msg = "<BSTRAP component='ovirt-node-upgrade' " \
Line 23: "status='OK' message=%s/>" % \
Line 16: from xml.sax import saxutils
Line 17:
Line 18:
Line 19: def _format_msg(msg_line):
Line 20: _XML_QUOTES = {"'": '~'}
> is _XML_QUOTES really necessary?
not needed in my tests
Line 21:
Line 22: msg = "<BSTRAP component='ovirt-node-upgrade' " \
Line 23: "status='OK' message=%s/>" % \
Line 24: saxutils.quoteattr(msg_line, _XML_QUOTES)
Line 22: msg = "<BSTRAP component='ovirt-node-upgrade' " \
Line 23: "status='OK' message=%s/>" % \
Line 24: saxutils.quoteattr(msg_line, _XML_QUOTES)
Line 25:
Line 26: print(msg)
> flush?
debug is in the next line.
Line 27: logging.debug(msg)
Line 28:
Line 29:
Line 30: def main():
--
To view, visit http://gerrit.ovirt.org/28244
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I7b997d70a440545497246d1a19d9671b054a56a5
Gerrit-PatchSet: 9
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Douglas Schilling Landgraf <dougsland at redhat.com>
Gerrit-Reviewer: Joey Boggs <jboggs at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
More information about the vdsm-patches
mailing list