
information about debug options in the TCUP file and documentation. Change-Id: I232972c4074ddd04e1d2b7a08a63a75bd5a50a21
2.7 KiB
TCUP Configuration
The following instructions are designs run Refstack/Tempest in a container with minimal setup on your system.
These steps are not do not install Refstack for contributions or development, they are intended for a user who wants to just run and report test results.
-
Make sure you have python and wget installed for your operating system.
-
Install Docker using https://www.docker.io/gettingstarted/#h_installation
-
Note: if you are in an environment with a proxy, make sure you configure
/etc/default/docker
to leverage the proxy too! -
You may want to prep-the environment using
-
Get the code:
wget https://raw.githubusercontent.com/stackforge/refstack/master/scripts/tcup.py
-
note: you can also get the code by cloning the Refstack and running the code in
/scripts/tcup.py
-
Set your environment variables to access the test target cloud
-
generally, you will
source openrc.sh
to load the cloud credentials and URLs -
Run TCUP:
sudo python tcup.py
-
if you want to work on the code from Refstack, use `sudo python scripts/tcup.py'
Trouble Shooting TCUP
There are several ways to trouble shoot, TCUP.
- Enter your docker container using
run -i -t [image id from tcup.py] /bin/bash
- Check your environment variables include the OS_* values using
export
- Make sure you can access Keystone using
curl $OS_AUTH_URL
- Make sure your credentials are working using
keystone catalog
Export DEBUG=true
to turn on additional logging and force TCUP into manual run mode
Docker Tips
-
You can run Docker without sudo!
-
sudo usermod -a -G docker <your-user>
(to permanently run Docker without sudo) -
you will need to reboot after this change (but you can wait until we tell you to reboot later)
-
if you don't want this to be permanent or active before the reboot use,
sudo chmod 666 /var/run/docker.sock
-
You can inspect which containers are running!
-
sudo docker ps
shows the running containers -
sudo docker attach
allows you to connect to a container (may have to press enter) -
exit from inside the container with
Ctrl-p
+Ctrl-q
-
Orphaned Containers: Over time, you may end up with orphaned contaniers, use the following to clean them up
-
sudo docker rm $(docker ps -a -q)
-
sudo docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
For Developers
If you run TCUP in debug mode (export DEBUG=true
) then TCUP will automatically mount your PWD as /dev.
If you run TCUP from your Refstack clone, then you can work directly in Refstack code from inside
a TCUP container from the /dev directory.