Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(19)  |  Call(16)  |  Derive(0)  |  Import(3)

        def printWarning(msg):
    LogUtil.warning('  [WARNING] %s' % msg)
        


src/s/t/stratuslab-client-14.03.0/stratuslab/system/BaseSystem.py   stratuslab-client(Download)
                                'routers' : self.dhcpOneLocalNetworkRouters}
            else:
                Util.printWarning('Invalid parameters combination to configure DHCP.')
 
            return subnet
    def _configureRootDbUser(self, password):
        rc, output = self._execute(["/usr/bin/mysqladmin", "-uroot", "password", "%s" % password], withOutput=True)
        if rc != 0:
            Util.printWarning("Couldn't set root password. Already set?\n%s" % output)
 
                                   withOutput=True, shell=True)
        if rc != 0:
            Util.printWarning("Couldn't create user '%s'. Already exists?\n%s" % (username, output))
 
        rc, output = self._execute("%s -e \"%s\"" % (mysqlCommand, userGrant),

src/s/t/stratuslab-client-14.03.0/stratuslab/image/Uploader.py   stratuslab-client(Download)
 
        if Compressor.getCompressionFormat(filename) != '':
            Util.printWarning('skipping compression; file appears to already be compressed')
            return filename
 
        compressionCmd = Compressor._getCompressionCommandByFormat(fmt)
 
        compressedFilename = '%s.%s' % (filename, fmt)
        if os.path.isfile(compressedFilename):
            Util.printWarning('Compressed file %s already exists, skipping' % compressedFilename)
                                                  'compression', self.compressionFormat)
        else:
            Util.printWarning("'none' specified for compression; manifest compression element NOT updated")
 
    def _addLocationToManifest(self):

src/s/t/stratuslab-client-14.03.0/stratuslab/Creator.py   stratuslab-client(Download)
            self.cloud.vmKill(self.vmId)
        else:
            Util.printWarning('Undefined VM ID, when trying to kill machine.')
 
    def _getVmFailureMessage(self, vmId):

src/s/t/stratuslab-client-14.03.0/stratuslab/system/centos.py   stratuslab-client(Download)
 
        if self._nodeShell('[ -f %s ]' % bridgeFile, shell=True) == 0:
            Util.printWarning(('Bridge configuration already present (%s:%s).' % 
                               (self.nodeAddr, bridgeFile)) + \
                               ' Please update it manually if required.')
        rc, output = self._nodeShell(cmd, withOutput=True, shell=True)
        if rc != 0:
            Util.printWarning('Failed to get content of %s:%s:\n%s' % 
                              (self.nodeAddr, ifaceFile, output))
            return
                                                                    iface, bridge)
        except Exceptions.ConfigurationException, ex:
            Util.printWarning('Failed to build config for %s and %s.\n%s' % 
                              (iface, bridge, str(ex)))
            return

src/s/t/stratuslab-client-14.03.0/stratuslab/Configurable.py   stratuslab-client(Download)
    def printWarning(self, msg):
        Util.printWarning(msg)
 
    def printError(self, msg):
        Util.printError(msg, exit=False)

src/s/t/stratuslab-client-14.03.0/stratuslab/vm_manager/Runner.py   stratuslab-client(Download)
 
import stratuslab.Util as Util
from stratuslab.Util import printStep, printAction, printWarning, printError
import stratuslab.Exceptions as Exceptions
import stratuslab.cloudinit.Util as CloudInitUtil
    def _checkImageExists(self, imageId):
        self.printDetail('Checking image availability.')
        if self.noCheckImageUrl:
            printWarning('Image availability check is disabled.')
            return

src/s/t/stratuslab-client-14.03.0/stratuslab/ManifestInfo.py   stratuslab-client(Download)
                if elem.text and elem.text == value:
                    Util.printWarning(
                        "Element '%s' with value '%s' already defined in the manifest. Skipping addition of the element." % \
                        (elementName, elem.text))
                    return

src/s/t/stratuslab-client-14.03.0/stratuslab/messaging/RestPublisher.py   stratuslab-client(Download)
import commands
 
from stratuslab.Util import printWarning
from stratuslab.messaging.MsgBase import MsgBase
from stratuslab.HttpClient import HttpClient
            creds = endpts_creds[self.msg_endpoint]
        except KeyError:
            printWarning('WARNING: no matching credentials for ' + self.msg_endpoint)
        else:
            self.httpClient.addCredentials(creds['username'], creds['password'])
            creds = endpts_creds[self.msg_endpoint]
        except KeyError:
            printWarning('WARNING: no matching credentials for ' + self.msg_endpoint)
        else:
            self.username = creds['username']

src/s/t/stratuslab-client-14.03.0/stratuslab/Testor.py   stratuslab-client(Download)
from stratuslab.vm_manager.vm_manager_factory import VmManagerFactory
from stratuslab.Util import sleep, filePutContent
from stratuslab.Util import printStep, printInfo, printWarning
from stratuslab.image.Image import Image
from stratuslab.ManifestInfo import ManifestInfo
                    tests.remove(test)
                except ValueError:
                    printWarning("WARNING: Test '%s' not in a list of defined tests." % test)
 
    def _runInstanceTest(self, withLocalNetwork=False, cmdToRun=['/bin/true'], msgRecipients=None):