]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/rgw: allow the rgw teuthology task to capture/set dns names
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 21 Apr 2020 15:28:58 +0000 (15:28 +0000)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 15 Jul 2020 16:17:51 +0000 (12:17 -0400)
commit50c8ff85a6f429b52f5fa3470afcb0d22f2fb7b5
tree1772f5fe7342afa4e8ef50b34955c5695d51d498
parente0acd18e991cd0ae0c40b1c7eb870fdfc19a7940
qa/rgw: allow the rgw teuthology task to capture/set dns names

A teuthology workunit might want to use the rgw task, setting the
rgw-dns-name and/or rgw-dns-s3website-name configuration options to
the fully-qualified domain name. Existing code implies that setting
these configuration options to the empty string will do that. However
the current logic does not support that given it has Python
conditionals that treat the empty string as false. This fixes that.

Now the following teuthology tasks YAML will work as expected:

  tasks:
  - rgw:
      client.0:
        dns-name: ''
        dns-s3website-name: ''

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 89654d0477a25592fafbc438aacce12988dc23c1)
qa/tasks/rgw.py