check_workflow

Usage
./check_workflow.pl [OPTIONS] [-f configuration_file]
Options
  • -h or --help: prints short usage tips

  • -V or --version: prints plugin versions

  • -v X or --verbose X: sets verbosity level to X (see UMI docs)

  • -t Y or --timeout Y: sets plugin execution timeout to Y seconds

Description

This is the plugin that does integration test of complete UNICORE installation. Requires UCC in version 1.3.0 or higher, because core of plugin is implemented in Groovy as UCC script (it gives eightfold time decrease in comparison to previous version). Plugin executes workflow in UNICORE environment asynchronously. URL of previously submitted instance is saved in cache file. Firstly plugin lists TSFs in the Registry and creates TSSs if there is such need. Next script checks status of workflow submitted before. If it is OK, location of ouptut file is got (by queryint LocationManager) and content of that file is compared to data sent before. Next test uses Tracer service to get workflow execution statistics. If all actions are successsful, both - workflow files and instance are deleted from grid evironment. Finally plugin submits simple workflow to the grid. Status of the new object will be checked in the next run of the script.

If the whole test is successful you can assume that every module of standard UNICORE installation (except CIS or CIP) works fine.

Configuration file for plugin
  • UCC_PATH: absolute path to UNICORE Commandline Client binary (in version 1.3.1 or higher)

  • UCC_CONFIG: absolute path to valid configuration file for UCC (remember to set absolute paths to keystore and trustore in this file!)

  • REGISTRY_URL: address of registry that contains Workflow Service you want to check

  • WORKFLOWSERVICE_NAME: URL of Workflow Service (or any part of this URL while it is not ambiguous)

  • GLOBAL_STORAGE_URL: URL of Global Storage to use

  • TEST_FILE_PATH: Location of file with workflow description

  • CACHE_FILE: Location of file where workflow url will be stored

  • LOGS_DIR: Path to logs directory

Possible outputs with description
  • OK: Wokflow succeeded! Time elapsed: …: Your UNICORE installation works fine!

  • CRITICAL: Unable to connect to the Registry: UCC cannot connect to given Registry URL.

  • CRITICAL: Some TSFs are not available in the Registry: …: There are TSFs that are used by workflow description as CandidateHosts but there are not available in given Registry, so worfklow cannot be executed successfully.

  • CRITICAL: Unable to upload test file: Global Storage URL you given is not properly defined (script cannot get supported file protocols) or there is server-side failure in creating file.

  • CRITICAL: WorkflowFactory does not respond: WorkflowFactory at url given in configuration is not found in the Registry or is registered but cannot be contacted.

  • CRITICAL: Workflow is still running after … seconds: Workflow is in running state since previous run. Usually that means that ServiceOrchestrator is not available or cannot accept WA by choosing TSF.

  • CRITICAL: Workflow at … does not exists Previously submitted workflow does not exists. Probably termination time of WF instance reached.

  • CRITICAL: Workflow execution does not seem successful: Execution of workflow failed for unknown reason.

  • CRITICAL: Could not resolve output file location using LocationManager: Workflow execution succeeded but output file cannot be mapped using LM service.

  • CRITICAL: Unexpected output: …: Workflow succeeded and output was retrieved but it differs from the sent file contents. Really strange…

  • CRITICAL: Tracer service is not available: Unable to find any Tracer service in the Registry, so workflow statistics cannot be retreived.

  • WARNING: Workflow succeded, but some TSFs available in the Registry were not used: Script found TSFs in the Registry that you do not use. Rerun installation script to avoid this message.

  • CRITICAL: Unable to list target systems from …: TSF is available in the Registry but does not respond.

  • CRITICAL: Unable to create TSS in …: TSF is available, but none TSS service is available. Probably you do not have access to one of TSFs available in the grid.

  • CRITICAL: There are TSFs registered in the Registry, but unable to contact with: …: All TSFs are available in the Registry, but some of them cannot be contacted. Probably Gateways before these TSFs do not accept your certificate.