GSLAB - How do I upgrade/downgrade STC Docker test port versions and recover after a power loss or reboot?
Knowledge Base - FAQ
GSLAB - How do I upgrade/downgrade STC Docker test port versions and recover after a power loss or reboot?
STC Docker Upgrade - If there is a new image that needs to be installed, you will need to download the image from the CSC and unzip the files onto your workstation. Then use "WinSCP" to create a new directory (docker-5.xx) in the /usr/VIAVI directory on the server and upload the unzipped files to the new directory. SSH to the server (10.108.12.16) and change to the new STC docker directory, then use the "docker load -i stc_X.XX.XXXX.tgz" command to load the image file into the docker library.
Please review the latest VIAVI TestCenter Container Docker Quick Start Guide for additional information.
Bring up or restarting STC docker ports after a power failure:
1) Login as "root" into the docker server @ 10.108.12.16, and change directories to /usr/VIAVI:
root@ss-docker:/usr/VIAVI# ls
docker-5.22 docker-5.26 docker-5.29 docker-5.32
docker-5.23 docker-5.27 docker-5.30 docker-5.35
docker-5.24 docker-5.28 docker-5.31 ping-sweep.sh
2) In this directory is a list of directories for the available STC dockers images. Change directory to the STC docker image you want to upgrade or downgrade too.
3) Use the "docker container ps -a" command to identify the "NAMES" of any running Docker Containers, normally labeled "stc(x)" where x is a number:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e685e62bea41 stc:5.35.1866 "/sbin/init" 2 days ago Up 2 days stc1
05113e4f32b2 stc:5.35.1866 "/sbin/init" 2 days ago Up 2 days stc0
4) Use the "./VIAVI_docker stop stc(x)" command to shut down the 2 running STC Docker Containers.
5) Use the "docker image ls" command to identify the docker image to be used. Note the "Repository" and "Tag" fields.
REPOSITORY TAG IMAGE ID CREATED SIZE
stc 5.35.1866 834e6aab224f 2 weeks ago 1.58GB
stc 5.32.1536 fad4e9092b0f 3 months ago 1.56GB
stc 5.31.1486 6168db1d3875 5 months ago 1.49GB
stc 5.30.1416 55fee38a6646 6 months ago 1.48GB
6) Use the following commands to start the STC docker ports with the desired image. Modify the "--image" field using the "REPOSITORY" & "TAG" information, which is "--image stc:5.35.1866" in this example.
./VIAVI_docker start --image stc:5.35.1866 --ipv4mode static --admin-bridge br0 --test-bridge tst1g01,tst1g02 --ipaddress 10.108.12.161 --gwaddress 10.108.0.1 --netmask 255.255.240.0 --speed 1G --driver sockets --cpus 0-3 --memory 4096 --rx-buffer-size 12
./VIAVI_docker start --image stc:5.35.1866 --ipv4mode static --admin-bridge br0 --test-bridge tst1g03,tst1g04 --ipaddress 10.108.12.162 --gwaddress 10.108.0.1 --netmask 255.255.240.0 --speed 1G --driver sockets --cpus 4-7 --memory 4096 --rx-buffer-size 12