#
openstack:
+ # The teuthology-openstack command will clone teuthology with
+ # this command for the purpose of deploying teuthology from
+ # scratch and run workers listening on the openstack tube
+ #
+ clone: git clone -b wip-6502-openstack-v3 http://github.com/dachary/teuthology
+
# The path to the user-data file used when creating a target. It can have
# the {os_type} and {os_version} placeholders which are replaced with
# the value of --os-type and --os-version. No instance of a give {os_type}
'baseurl_template': 'http://{host}/{proj}-{pkg_type}-{dist}-{arch}-{flavor}/{uri}',
'teuthology_path': None,
'openstack': {
+ 'clone': 'git clone http://github.com/ceph/teuthology',
'user-data': 'teuthology/openstack/openstack-{os_type}-{os_version}-user-data.txt',
'ip': '1.1.1.1',
'machine': {
upload = '--archive-upload ' + self.args.archive_upload
else:
upload = ''
+ clone = teuth_config.openstack['clone']
log.debug("OPENRC = " + openrc + " " +
"TEUTHOLOGY_USERNAME = " + self.username + " " +
+ "CLONE_OPENSTACK = " + clone + " " +
"UPLOAD = " + upload + " " +
"NWORKERS = " + str(self.args.simultaneous_jobs))
content = (template.
replace('OPENRC', openrc).
replace('TEUTHOLOGY_USERNAME', self.username).
+ replace('CLONE_OPENSTACK', clone).
replace('UPLOAD', upload).
replace('NWORKERS', str(self.args.simultaneous_jobs)))
open(path, 'w').write(content)
- git
- rsync
runcmd:
- - su - -c '(set -x ; git clone -b wip-6502-openstack-v3 http://github.com/dachary/teuthology && cd teuthology && ./bootstrap install)' TEUTHOLOGY_USERNAME >> /tmp/init.out 2>&1
+ - su - -c '(set -x ; CLONE_OPENSTACK && cd teuthology && ./bootstrap install)' TEUTHOLOGY_USERNAME >> /tmp/init.out 2>&1
- echo 'export OPENRC' | tee /home/TEUTHOLOGY_USERNAME/openrc.sh
- su - -c '(set -x ; source openrc.sh ; cd teuthology ; source virtualenv/bin/activate ; openstack keypair delete teuthology || true ; teuthology/openstack/setup-openstack.sh --nworkers NWORKERS UPLOAD --setup-all)' TEUTHOLOGY_USERNAME >> /tmp/init.out 2>&1
- /etc/init.d/teuthology restart
max_job_time: 14400 # 4 hours
teuthology_path: .
openstack:
+ clone: git clone -b wip-6502-openstack-v3 http://github.com/dachary/teuthology
user-data: teuthology/openstack/openstack-{os_type}-{os_version}-user-data.txt
ip: $ip
nameserver: $nameserver
assert "nworkers=" + str(args.simultaneous_jobs) in variables
assert "username=" + teuthology.username in variables
assert "upload=--archive-upload user@archive:/tmp" in variables
+ assert "upload=git clone" in variables
assert os.environ['OS_AUTH_URL'] in variables
out, err = capsys.readouterr()
system_info:
default_user:
name: ubuntu
-final_message: "teuthology is up and running after $UPTIME seconds, substituded variables nworkers=NWORKERS openrc=OPENRC username=TEUTHOLOGY_USERNAME upload=UPLOAD"
+final_message: "teuthology is up and running after $UPTIME seconds, substituded variables nworkers=NWORKERS openrc=OPENRC username=TEUTHOLOGY_USERNAME upload=UPLOAD clone=CLONE_OPENSTACK"