Ejemplo n.º 1
0
    def check_env_vars(self):
        bRes = False

        # Check if Openstack variables are defined
        my_stack_checker = sc.StackChecker(stack_timeout=10 * 60)
        if not my_stack_checker is None:
            bRes = my_stack_checker.get_OS_vars_set()

        return bRes
Ejemplo n.º 2
0
    def get_module_outputs(self, stack_name):
        """
        Get the output parameters of an existing stack and its status
        """
        status = None
        dRes = {}

        my_stack_checker = sc.StackChecker(stack_timeout=10)
        if not my_stack_checker is None:
            (dRes, status) = my_stack_checker.get_stack_outputs(stack_name)

        return (dRes, status)
Ejemplo n.º 3
0
 def check_vnf(stack_name):
     """
     Check VNF stack has been properly started
     """
     check_vnf = False
     try:
         my_stack_checker = sc.StackChecker()
         if my_stack_checker.check_stack_is_complete(stack_name):
             check_vnf = True
     except Exception:  # pylint: disable=broad-except
         LOGGER.error("Impossible to find the stack %s in OpenStack",
                      stack_name)
     return check_vnf
Ejemplo n.º 4
0
 def check_vnf(self, stack_name, stack_timeout=10 * 60):
     """
     Check VNF stack has been properly started
     """
     check_vnf = False
     try:
         # LLL Add timeout 10 mn for vProbes(default is 1mn)
         my_stack_checker = sc.StackChecker(stack_timeout=stack_timeout)
         if my_stack_checker.check_stack_is_complete(stack_name):
             check_vnf = True
     except Exception as err:  # pylint: disable=broad-except
         self.__logger.error(
             "Impossible to find the stack %s in OpenStack: %s", stack_name,
             str(err))
     return check_vnf