[Pkg-escience-soc2009] [SCM] Tool for creating VM images. branch, master, updated. 06f8c717989bc8084454638873d9a981ffa644a1

David Wendt dckid at yahoo.com
Wed Jul 22 02:26:38 UTC 2009


The following commit has been merged in the master branch:
commit 06f8c717989bc8084454638873d9a981ffa644a1
Author: David Wendt <dckid at yahoo.com>
Date:   Tue Jul 21 22:26:06 2009 -0400

    Made logging messages more descriptive.
    
    "Using Xen kernel" images upgraded from debug to info level.

diff --git a/VMBuilder/plugins/debian/distro.py b/VMBuilder/plugins/debian/distro.py
index 8b2b9ce..11e6ab7 100644
--- a/VMBuilder/plugins/debian/distro.py
+++ b/VMBuilder/plugins/debian/distro.py
@@ -196,19 +196,21 @@ EOT''')
     def xen_kernel_version(self):
         if self.suite.xen_kernel_flavour:
             if not self.xen_kernel:
-                logging.debug("Searching for %s flavour Xen kernel..." % self.suite.default_flavour[self.vm.arch])
+                logging.debug("Searching for %s-%s flavour Xen kernel..." % (self.suite.xen_kernel_flavour, self.self.suite.default_flavour[self.vm.arch]))
                 xen_kernel = self.find_linux_kernel(self.vm.suite, self.suite.xen_kernel_flavour, self.suite.default_flavour[self.vm.arch])
 
                 if xen_kernel == None:
-                    logging.debug('Default kernel flavour %s does not have Xen available for this suite.' % self.suite.default_flavour[self.vm.arch])
+                    logging.debug('Default Xen kernel flavour %s-%s is not available for this suite.' % (self.suite.xen_kernel_flavour, self.suite.default_flavour[self.vm.arch]))
                     if self.suite.valid_flavours[self.vm.arch] > 0:
                         for flavour in self.suite.valid_flavours[self.vm.arch]:
                             if flavour != self.suite.default_flavour[self.vm.arch]:
-                                logging.debug("Trying alternate flavour %s..." % flavour)
+                                logging.debug("Trying alternate flavour %s-%s..." % (self.suite.xen_kernel_flavour, flavour))
                                 xen_kernel = self.find_linux_kernel(self.vm.suite, self.suite.xen_kernel_flavour, self.suite.default_flavour[self.vm.arch])
                                 if xen_kernel != None:
-                                    logging.debug("Using flavor %s, kernel version %s" % (flavour, xen_kernel))
+                                    logging.info("Using Xen kernel linux-image-2.6-%s-%s, package version %s" % (self.suite.xen_kernel_flavour, flavour, xen_kernel))
                                     break
+                else:
+                    logging.info("Using Xen kernel linux-image-2.6-%s-%s, package version %s" % (self.suite.xen_kernel_flavour, self.suite.default_flavour[self.vm.arch], xen_kernel))
 
                 if xen_kernel == None:
                     raise VMBuilderException('There is no valid Xen kernel for the suite selected.')

-- 
Tool for creating VM images.



More information about the Pkg-escience-soc2009 mailing list