예제 #1
0
 def findNics(self, device=None):         \
         # pylint: disable=no-self-use,unused-argument
     """
     Return a list of nics and dict containing properties for those nics
     """
     raise AbstractMethod(
         'findNics() has to be implemented in the concrete API class.')
예제 #2
0
 def getSoftwareProfileList(self, tags=None):         \
         # pylint: disable=no-self-use,unused-argument
     """
     Returns a list of all SoftwareProfile's in the system.
     """
     raise AbstractMethod('getSoftwareProfileList has to be implemented'
                          ' in the concrete API class.')
예제 #3
0
 def rmPXEFile(self, nodename):         \
         # pylint: disable=no-self-use,unused-argument
     """
     Clean up existing PXE configuration
     """
     raise AbstractMethod(
         'rmPXEFile() must be overriden in the derived class.')
예제 #4
0
 def getTarCommand(self):         \
         # pylint: disable=no-self-use
     """
     Return the GNU tar command.
     """
     raise AbstractMethod(
         'getTarCommand() must be implemented in the base class')
예제 #5
0
 def getOsLockFilePath(self): \
         # pylint: disable=no-self-use
     """
     Returns global default for lock files
     """
     raise AbstractMethod('getOsLockFilePath() has to be implemented'
                          ' in the concrete API class.')
예제 #6
0
 def getSudoInitScript(self):         \
         # pylint: disable=no-self-use,unused-argument
     """
     Return script that initializes equivalent of the sudo command for
     the given OS
     """
     raise AbstractMethod('getSudoInitScript() must be implemented')
예제 #7
0
    def activateNode(self, nodeName, softwareProfileName):         \
            # pylint: disable=unused-argument,no-self-use
        """activate node

        Returns software profile name
        """
        raise AbstractMethod('activateNode must be implemented in API class')
예제 #8
0
 def getHardwareProfileList(self, optionDict=None, tags=None): \
         # pylint: disable=no-self-use,unused-argument
     """
     Return list of hardware profiles
     """
     raise AbstractMethod('getHardwareProfileList has to be implemented'
                          ' in the concrete API class.')
예제 #9
0
 def getDbSystemServiceName(self):         \
         # pylint: disable=no-self-use
     """
     Returns the mysql service name
     """
     raise AbstractMethod(
         'getMysqlServiceName() has to be implemented in the concrete'
         ' API class.')
예제 #10
0
    def get_cloud_config(self, node, hardwareprofile, softwareprofile):         \
            # pylint: disable=no-self-use,unused-argument
        """
        Get cloud-init compatible cloud config for node
        """

        raise AbstractMethod(
            'get_cloud_config() must be overridden in the derived class.')
예제 #11
0
 def getKickstartFile(self,
                      node,
                      hardwareprofile=None,
                      softwareprofile=None):         \
         # pylint: disable=unused-argument,no-self-use
     """ Get the kickstart file for a given node """
     raise AbstractMethod(
         'getKickstartFile must be implemented in API class')
예제 #12
0
 def transferNodes(self,
                   srcSoftwareProfile,
                   dstSoftwareProfile,
                   count,
                   bForce=False):         \
         # pylint: disable=unused-argument,no-self-use
     """ Returns the nodes that were transfered """
     raise AbstractMethod('transferNodes must be implemented in API class')
예제 #13
0
    def addVolume(self,
                  storageAdapter,
                  size,
                  nameFormat='*',
                  persistent=False):         \
            # pylint: disable=no-self-use,unused-argument

        raise AbstractMethod('addVolume() must be implemented in the'
                             ' concrete API class')
예제 #14
0
    def writePXEFile(self,
                     node,
                     localboot=None,
                     hardwareProfile=None,
                     softwareProfile=None):         \
            # pylint: disable=no-self-use,unused-argument

        raise AbstractMethod(
            'writePXEFile() must be overriden in the derived class.')
예제 #15
0
    def getNetworkInterfaces(self):         \
            # pylint: disable=no-self-use
        """
        Return list of network interfaces on installer as reported by
        "facter interfaces"
        """

        raise AbstractMethod(
            'getNetworkInterfaces has to be implemented in the concrete'
            ' API class.')
예제 #16
0
    def getUsableNodes(self, softwareProfileName):         \
            # pylint: disable=no-self-use,unused-argument
        """
        Returns list of nodes with the same hardware profile as the
        specified software profile name
        """

        raise AbstractMethod(
            'getUsableNodes() has to be implemented in the concrete API'
            ' class.')
    def hasRule(self, ruleId):
        """
        Does engine know about the given rule.

            Returns:
                True if rule is known, False otherwise.
            Throws:
                None
        """
        raise AbstractMethod('hasRule() has to be implemented in the'
                             ' concrete API class.')
예제 #18
0
    def getPackageSourceNames(self):         \
            # pylint: disable=no-self-use
        """
        Get list of package source names.

            Returns:
                [packageSourceNames]
        """
        raise AbstractMethod(
            'getPackageSourceNames() has to be implemented in the concrete'
            ' API class.')
예제 #19
0
    def setIdleState(self, softwareProfileName, state):         \
            # pylint: disable=no-self-use,unused-argument
        """
        Set the idle software profile state

            Returns:
                -none-
            Throws:
                TortugaException
        """
        raise AbstractMethod('setIdleState has to be implemented in the'
                             ' concrete API class.')
예제 #20
0
    def getSoftwareProfile(self, softwareProfileName, optionDict=None):         \
            # pylint: disable=no-self-use,unused-argument
        """
        Get software profile information

            Returns:
                softwareProfile
            Throws:
                TortugaException
        """
        raise AbstractMethod('getSoftwareProfile has to be implemented in'
                             ' the concrete API class.')
예제 #21
0
    def getRuleList(self):         \
            # pylint: disable=no-self-use
        """
        Get rule list.

            Returns:
                [rules]
            Throws:
                TortugaException
        """
        raise AbstractMethod('getRuleList() has to be implemented in the'
                             ' concrete API class.')
    def receiveApplicationData(self, applicationName, applicationData):
        """
        Receive (and process) application monitoring data.

            Returns:
                None
            Throws:
                UserNotAuthorized
                TortugaException
        """
        raise AbstractMethod('receiveApplicationData() has to be'
                             ' implemented in the concrete API class.')
    def getRuleList(self):
        """
        Get all known rules.

            Returns:
                [rule]
            Throws:
                UserNotAuthorized
                TortugaException
        """
        raise AbstractMethod('getRuleList() has to be implemented in the'
                             ' concrete API class.')
예제 #24
0
    def getServiceName(self):         \
            # pylint: disable=no-self-use
        """
        Get service name.

            Returns:
                Service name
            Throws:
                None
        """
        raise AbstractMethod(
            'getServiceName() has to be implemented in the derived class.')
예제 #25
0
    def getNodeList(self, tags=None):         \
            # pylint: disable=no-self-use,unused-argument
        """
        Get the list of nodes

            Returns:
                List of nodes.
            Throws:
                TortugaException
        """
        raise AbstractMethod(
            'getNodeList has to be implemented in the concrete API class.')
예제 #26
0
    def getIdleSoftwareProfileList(self):         \
            # pylint: disable=no-self-use,unused-argument
        """
        Get the list of idle software profiles

            Returns:
                The list of idle softwareprofiles
            Throws:
                TortugaException
        """
        raise AbstractMethod('getIdleSoftwareProfileList has to be'
                             ' implemented in the concrete API class.')
예제 #27
0
    def hasRule(self, ruleId):         \
            # pylint: disable=no-self-use,unused-argument
        """
        Does engine know about the given rule.

            Returns:
                True if rule is known, False otherwise.
            Throws:
                None
        """
        raise AbstractMethod('hasRule() has to be implemented in the'
                             ' concrete API class.')
예제 #28
0
    def deleteSoftwareProfile(self, softwareProfileName):         \
            # pylint: disable=no-self-use,unused-argument
        """
        Delete software profile

            Returns:
                N/A
            Throws:
                TortugaException
        """
        raise AbstractMethod('deleteSoftwareProfile has to be'
                             ' implemented in the concrete API class.')
예제 #29
0
    def getEnabledComponentList(self, softwareProfileName):         \
            # pylint: disable=no-self-use,unused-argument
        """
        Get the list of enabled components

            Returns:
                The list of enabled components for a softwareprofile
            Throws:
                TortugaException
        """
        raise AbstractMethod('getEnabledComponentList has to be'
                             ' implemented in the concrete API class.')
예제 #30
0
    def getConfigDir(self):         \
            # pylint: disable=no-self-use
        """
        Get configuration directory.

            Returns:
                Configuration directory
            Throws:
                None
        """
        raise AbstractMethod(
            'getConfigDir() has to be implemented in the derived class.')