Beispiel #1
0
    def __fail_mt_1221_domain_creation(self):
        """
        Abort create if domain contains MT artifacts that cannot be created in the version of WLST offline being used.
        :raises: CreateException: if the MT domain cannot be provision on the specified version of WLST offline
        """
        _method_name = '__fail_mt_1221_domain_creation'

        if self.wls_helper.is_mt_offline_provisioning_supported():
            return

        resources_dict = self.model.get_model_resources()
        if (not dictionary_utils.is_empty_dictionary_element(self._topology, VIRTUAL_TARGET)) or \
                (not dictionary_utils.is_empty_dictionary_element(resources_dict, RESOURCE_GROUP_TEMPLATE)) or \
                (not dictionary_utils.is_empty_dictionary_element(resources_dict, RESOURCE_GROUP)) or \
                (not dictionary_utils.is_empty_dictionary_element(resources_dict, PARTITION)):

            ex = exception_helper.create_create_exception('WLSDPLY-12202', self.wls_helper.wl_version)
            self.logger.throwing(ex, class_name=self.__class_name, method_name=_method_name)
            raise ex
        return
 def is_clustered_server(self, server_name, servers_dictionary):
     """
     Return true if the server's Cluster attribute is set.
     :param server_name: name of the server in the dictionary
     :param servers_dictionary: model topology section of servers
     :return: True if a clustered server
     """
     server_dictionary = dictionary_utils.get_dictionary_element(servers_dictionary, server_name)
     if dictionary_utils.is_empty_dictionary_element(server_dictionary, CLUSTER):
         return False
     return True
    def __init__(self,
                 domain_info,
                 domain_home,
                 wls_helper,
                 exception_type,
                 logger,
                 validation_roles_map=None):
        self.logger = logger
        self._wls_helper = wls_helper
        self._wls_roles_map = None
        self._domain_security_folder = None
        self._validation_roles_map = validation_roles_map

        if domain_info is not None:
            if not dictionary_utils.is_empty_dictionary_element(
                    domain_info, WLS_ROLES):
                self._wls_roles_map = domain_info[WLS_ROLES]
                self._domain_security_folder = File(domain_home,
                                                    'security').getPath()
                self._weblogic_roles_helper = WebLogicRolesHelper(
                    logger, exception_type, self._domain_security_folder)
        return