Skip to content

Instantly share code, notes, and snippets.

@jhgorse
Last active July 7, 2016 17:53
Show Gist options
  • Save jhgorse/d83551837520cf16de38f94998e8f211 to your computer and use it in GitHub Desktop.
Save jhgorse/d83551837520cf16de38f94998e8f211 to your computer and use it in GitHub Desktop.
OpenAFS: Running robotest on master

1. Build openafs 1.6.18

Make sure you have no uncommitted changes in your openafs git work directory (or git clone to a separate directory) then,

git checkout openafs-stable-1_6_18 && git clean -q -f -d -x && ./regen.sh && ./configure --enable-debug --enable-transarc-paths && make -j6 aklog

sudo cp ./src/aklog/aklog /usr/local/bin/aklog-1.6.18

2. Tell afs-robotest to always use aklog-1.6.18

afs-robotest config set variables aklog /usr/local/bin/aklog-1.6.18

This sets the "aklog" option in the "variables" section of the config file.

3. Revert or checkout the version of openafs you want to test with gerrit

For example, https://gerrit.openafs.org/#/c/12297/3 Under Download,

git fetch https://gerrit.openafs.org/openafs refs/changes/97/12297/3 && git checkout FETCH_HEAD

4. Configure machine and robotest

Edit /etc/hosts

add your non-loopback ip address (ip addr or ifconfig):

127.0.0.1	localhost
172.16.82.152   debianvm.local  debianvm

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

The last sudo password you ever type on this box

be really secure, add NOPASSWD: to the account running the afs-robotest

$ sudo visudo
... add this for sudo group:
%sudo   ALL=(ALL:ALL) NOPASSWD: ALL 

... or one for your account specifically
username   ALL=(ALL:ALL) NOPASSWD: ALL

Example robotest config file

Note aklog = , dest = Note also this assumes openafs was configured with transarc paths and was built with "make dest"

[paths]
root = /home/jhg/openafs-robotest
tests = %(root)s/tests
libraries = %(root)s/libraries
resources = %(root)s/resources
html = %(root)s/html
doc = %(root)s/html/doc
log = %(root)s/html/log
output = %(root)s/html/output
dist = %(root)s/html/dist

[ssh]
keyfile = /home/jhg/.ssh/afs-robotest

[run]
exclude_tags = todo,crash,slow
log_level = INFO
auto_setup = no
auto_teardown = no

[variables]
afs_dist = transarc
aklog = /usr/bin/aklog-1.6.18

[cell]
name = robotest
user = robotest
admin = robotest.admin
secret = xyzzy

[kerberos]
realm = ROBOTEST
keytab = /tmp/afs.keytab
akimpersonate = yes

[web]
port = 8000
foreground = no
pidfile = /tmp/afs-robotest-web.pid

[servers]
dafileserver = -d 1 -L
davolserver = -d 1

[host:localhost]
installer = transarc
isfileserver = yes
isdbserver = yes
isclient = yes
setclock = no
nuke = no
dest = /home/jhg/openafs/amd64_linux26/dest
build = no
builddir = /home/jhg/openafs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment