TSD open for service again

Dear TSD users

Our network trouble was really worse than we thought and we had to switch to our failover Gateway as main Gateway.

Windows :

This means that to get back again into TSD you must reconfigure putty with the name of the failover gateway. The machinename entry tsd-jh01.tsd.usit.no must be changed to tsd-jh02.tsd.usit.no in the main putty configuration site.

Linux :

For linux our distributed RPM does not support tsd-jh02 yet, so to use TSD linux VMs you must : A new package will be distributed tomorrow for TSD access on tsd-jh02, for those who can not wait : Save this script as something.sh and run it from a fedroa linux or redhat 6.5 or newer with no firefox sessions open.

######################

#!/bin/bash
#
# Using bash to get $RANDOM

set -e

JUMPHOST=tsd-jh02.uio.no
RHEVHOST=rhevm-tsd.uio.no:443
SPICEPROXY=p01-spice-proxy.tsd.usit.no:3128

LRHEVPORT=$((1024 + $RANDOM % (63*1024) ))
LSPICEPORT=$((1024 + $RANDOM % (63*1024) ))

FIREFOX=firefox

start_browser_after_ssh_tunnel()
{ # wait for up to 120 seconds before trying to connect
  echo "Waiting for HTTPS tunnel on port $LSPICEPORT before starting Firefox"
  for f in $(seq 1 120) ; do
      if netstat -an | grep -q :$LSPICEPORT ; then
          break;
      fi
      sleep 1
  done
  SPICE_PROXY=http://localhost:$LSPICEPORT \
  $FIREFOX \
  -new-instance \
  https://localhost:$LRHEVPORT
#   -P TSD
}

cleanup() {
  if [ "$bgpid" ] && kill -0 $bgpid ; then
  echo "Killing background job with pid $bgpid."
  kill $bgpid
  bgpid=""
  fi
}

echo
printf "Oppgi TSD-brukernavn på formen pxx-USERNAME: "
read USERNAME
if [ -z "$USERNAME" ] ; then
  echo "error: Mangler TSD-brukernavn"
  sleep 10
  exit 1
fi

start_browser_after_ssh_tunnel &
bgpid=$!
trap cleanup EXIT

echo
echo "Logging into $JUMPHOST as user $USERNAME"
echo
if ssh -L $LRHEVPORT:$RHEVHOST -L$LSPICEPORT:$SPICEPROXY $USERNAME@$JUMPHOST
then
  :
fi

trap "" EXIT
cleanup
echo "Exiting in 10 seconds."
sleep 10
exit 0


#######################

Sorry for this inconvenience.

Published June 26, 2014 10:24 AM - Last modified June 26, 2014 1:02 PM