workaround DNSError when running teuthology-suite


Note: this is only useful for people with access to the Ceph lab.

When running a Ceph integration tests using teuthology, it may fail because of a DNS resolution problem with:

$ ./virtualenv/bin/teuthology-suite --base ~/software/ceph/ceph-qa-suite \ --suite upgrade/firefly-x \ --ceph wip-8475 --machine-type plana \ --email --dry-run 2014-06-27 INFO:urllib3.connectionpool:Starting new HTTP connection (1): ... requests.exceptions.ConnectionError: HTTPConnectionPool(host='', port=80): Max retries exceeded with url: /kernel-rpm-centos6-x86_64-basic/ref/testing/sha1 (Caused by : [Errno 3] name does not exist)

It may be caused by DNS propagation problems and pointing to the may work better. If running bind, adding the following in /etc/bind/named.conf.local will forward all related DNS queries to the primary server (NS1.DREAMHOST.COM i.e., assuming /etc/resolv.conf is set to use the local DNS server first:

zone ""{ type forward ; forward only ; forwarders {; } ; }; zone "" { type forward; forward only; forwarders {;; }; }; zone "" { type forward; forward only; forwarders {;; }; };

The zone will resolve machine names allocated by teuthology-lock and used as targets such as:

targets: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABA ... 8r6pYSxH5b