Giter Club home page Giter Club logo

test-globus's Introduction

Globus Test Guide

Table of Contents

Introduction

I'm sure you have two questions: what is this for? & how can I use it? These two scripts are designed for to test endpoints & to get information that can help troubleshooting. They are designed to work with GCS(Globus Connect Server) version 5. If you manage to get them working with GCSv4, you should probably fork them on github. test_globus.sh will print information on all your collections & storage gateways. Storage gateways are set up with your server & collections are set up with globus so you can transfer to & from them. endpoint_test.sh attempts to look up endpoints/collections that you supply on the command line & runs the same tests with them as test_globus.sh runs with your local collections on your server. The lookup can sometimes have trouble, though, but you can also pass it a UUID, which isn't as likely to have trouble on lookup.

Before getting the scripts

Using test_globus.sh

  • After installing the base globus packages, get test_globus.sh:

    curl -O https://raw.githubusercontent.com/JustinCB/test-globus/master/test_globus.sh || wget https://raw.githubusercontent.com/JustinCB/test-globus/master/test_globus.sh
    chmod +x ./test_globus.sh
    
  • You can then run the shell script, which will print information about all the collections on your server. You may want to redirect the output to a file, as it produces a lot of it:

    ./test_globus.sh >test_globus.log 2>&1
    

Using endpoint_test.sh

  • After installing the base globus packages, get endpoint_test.sh:

    curl -O https://raw.githubusercontent.com/JustinCB/test-globus/master/endpoint_test.sh || wget https://raw.githubusercontent.com/JustinCB/test-globus/master/endpoint_test.sh
    chmod +x ./endpoint_test.sh
    
  • You can then run the test script. It runs the same tests as test_globus.sh, but it takes endpoint names & attempts to resolve them to UUIDs & generate & transfer the same files to & from those endpoints:

    ./endpoint_test.sh <endpoint_names_or_uuids> >endpoint_test.log 2>&1
    

Outputs of the scripts

  • If it succeeds, your installation of globus is most likely working. If it fails, you can look at its output to see what went wrong:
      •    Globus Connect ports 50000-51000 may be block'd in your firewall
           Globus will not work if they are block'd & this script will hang
           You may also see this message if globus is down or the server is not yet started or is restarting
        
      • Globus Connect Server requires ports 50000-51000 for transfers. Transfers will fail if they are block'd
      •    http(s) may be block'd
           Globus will not work properly if it's block'd
           You may also see this message if the server is down, not yet started, or restarring
        
      • Globus Connect Server won't work if https is block'd. Globus Connect Server uses https as a control channel.
      •    Endpoint is down, so transfer probably fail'd
        
      • The test scripts check the condition of the current test transfer. If you get this, it means that the transfer was running, but the endpoint was not connected, & so it would fail after a few hours, which would be much too long for a test script to continue running. If you also get Ensure connections on ports 50000-51000 aren't block'd by your firewall rules, that means that the test script didn't detect anything attempting to listen on those ports, which may mean that they're block'd by your firewall.
      •    Transfer fail'd because endpoint is down
        
      • This means that the endpoint fail'd to connect. If you also got Ensure connections on ports 50000-51000 aren't block'd by your firewall rules, this means that you should check your firewall because they probably are block'd
      •    Test Error: Transfer timed out/finished & is paused or canceled
        
      • This means that the transfer was paused or canceled. The script will exit because if it didn't it would hang indefinitely.
      •    <file> fail'd with <options>
        
      • The test scripts verify that the files were not changed after being transfer'd. If you get this message, that means that the file changed in transfer, which is a problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.