]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use FQDN in downburst yaml. 383/head
authorSandon Van Ness <sandon@redhat.com>
Tue, 9 Dec 2014 01:58:16 +0000 (17:58 -0800)
committerSandon Van Ness <sandon@redhat.com>
Tue, 9 Dec 2014 01:58:16 +0000 (17:58 -0800)
As newer rhel's like to default to localdomain screwing with things
if its not set. Older cloud-init/distros appear to just ignore the
domain.

Signed-off-by: Sandon Van Ness <sandon@redhat.com>
teuthology/provision.py

index 9e2d75951ffb2b3e24cf01d044196ac9f3a03723..8bc1ca7e263ecc1cb04c821297fbc1c21b17e0cb 100644 (file)
@@ -71,7 +71,8 @@ def create_if_vm(ctx, machine_name):
         file_info['additional-disks-size'] = lcnfg.get(
             'additional-disks-size', '200G')
         file_info['arch'] = lcnfg.get('arch', 'x86_64')
-        file_out = {'downburst': file_info}
+        fqdn = machine_name.split('@')[1]
+        file_out = {'downburst': file_info, 'local-hostname': fqdn}
         yaml.safe_dump(file_out, tmp)
         metadata = "--meta-data=%s" % tmp.name
         dbrst = _get_downburst_exec()