Change in vdsm[master]: Unified network persistence [4.1/4.*] - Upgrade mechanism

amuller at redhat.com amuller at redhat.com
Tue Nov 19 15:53:52 UTC 2013


Assaf Muller has posted comments on this change.

Change subject: Unified network persistence [4.1/4.*] - Upgrade mechanism
......................................................................


Patch Set 13:

(9 comments)

Pushing new patch set in a second...

I had an offline session with Yaniv and we came to an understanding about the logger. I answered the rest of the comments.

....................................................
Commit Message
Line 9: Unified network persistence feature:
Line 10: http://www.ovirt.org/Feature/NetworkReloaded#Unified_persistence
Line 11: 
Line 12: This patch is the first of two patches that implement an upgrade
Line 13: that is the ran the first time VDSM that uses unified network
Done
Line 14: persistence is started. The goal is to look at the current
Line 15: host networking configuration and populate the running config.
Line 16: 
Line 17: Please see the next patch in the series:


Line 9: Unified network persistence feature:
Line 10: http://www.ovirt.org/Feature/NetworkReloaded#Unified_persistence
Line 11: 
Line 12: This patch is the first of two patches that implement an upgrade
Line 13: that is the ran the first time VDSM that uses unified network
Done
Line 14: persistence is started. The goal is to look at the current
Line 15: host networking configuration and populate the running config.
Line 16: 
Line 17: Please see the next patch in the series:


Line 16: 
Line 17: Please see the next patch in the series:
Line 18: http://gerrit.ovirt.org/#/c/18425/
Line 19: 
Line 20: To better understand how this patch is used.
Done
Line 21: 
Line 22: Change-Id: Iba3c9c34f03134c192db1c2add31084824e195d9


....................................................
File lib/vdsm/tool/upgrade.py
Line 25: 
Line 26: LOGGER_CONF_FILE = constants.P_VDSM_CONF + 'vdsm-tool.logger.conf'
Line 27: 
Line 28: 
Line 29: class Upgrade(object):
Done
Line 30:     def __init__(self, upgradeName):
Line 31:         self.upgradeName = upgradeName
Line 32:         self.upgradeFilePath = os.path.join(constants.P_VDSM_LIB,
Line 33:                                             "upgrade", self.upgradeName)


Line 32:         self.upgradeFilePath = os.path.join(constants.P_VDSM_LIB,
Line 33:                                             "upgrade", self.upgradeName)
Line 34:         try:
Line 35:             logging.config.fileConfig(LOGGER_CONF_FILE)
Line 36:             self.log = logging.getLogger('vdsm-tool')
Done
Line 37:         except Exception:
Line 38:             logging.basicConfig(filename='/dev/stdout', filemode='w+',
Line 39:                                 level=logging.DEBUG)
Line 40:             logging.error("Could not init proper logging", exc_info=True)


Line 45:     def seal(self):
Line 46:         """
Line 47:             Mark the upgrade as a success
Line 48:         """
Line 49:         self.log.debug("Upgrade %s successfully performed" % self.upgradeName)
Done


Line 46:         """
Line 47:             Mark the upgrade as a success
Line 48:         """
Line 49:         self.log.debug("Upgrade %s successfully performed" % self.upgradeName)
Line 50:         open(self.upgradeFilePath, 'w').close()
I don't know why it would be helpful.


Line 46:         """
Line 47:             Mark the upgrade as a success
Line 48:         """
Line 49:         self.log.debug("Upgrade %s successfully performed" % self.upgradeName)
Line 50:         open(self.upgradeFilePath, 'w').close()
Done


Line 46:         """
Line 47:             Mark the upgrade as a success
Line 48:         """
Line 49:         self.log.debug("Upgrade %s successfully performed" % self.upgradeName)
Line 50:         open(self.upgradeFilePath, 'w').close()
Done


-- 
To view, visit http://gerrit.ovirt.org/17726
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Iba3c9c34f03134c192db1c2add31084824e195d9
Gerrit-PatchSet: 13
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Assaf Muller <amuller at redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Antoni Segura Puimedon <asegurap at redhat.com>
Gerrit-Reviewer: Assaf Muller <amuller at redhat.com>
Gerrit-Reviewer: Barak Azulay <bazulay at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Giuseppe Vallarelli <gvallare at redhat.com>
Gerrit-Reviewer: Mark Wu <wudxw at linux.vnet.ibm.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi at redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes


More information about the vdsm-patches mailing list