]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: orphan list teuthology test & fully-qualified domain issue 34127/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 8 Jul 2020 02:40:10 +0000 (22:40 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 15 Jul 2020 16:24:16 +0000 (12:24 -0400)
commit4deb68f930490d1ea9339fa5b89cf2c1bff6257a
tree6f0a600774d3ea5191731c52a56a9e110b2ef736
parente9fa1f32ce4157cae77f96f06483508d0c368dfb
rgw: orphan list teuthology test & fully-qualified domain issue

Sometimes when teuthology machines are provisioned, the command
`hostname --fqdn` does not provide a fully qualified domain name but
instead just the hostname (e.g., smithi149 instead of
smithi149.front.sepia.ceph.com). This prevents the teuthology test for
rgw-orphan-list from running successfully [for example, the hostname
was for some reason mis-interpreted as the bucket name in the
request].

This commit checks whether the hostname derived from `hostname --fqdn`
contains any '.'s and if it does not, it will append
".front.sepia.ceph.com" to the hostname. This is a hack, but until
teuthology machines are configured appropriately it seems to be a
reasonable work-around.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 3afc8ac25390493a2485ad1999e6370ddbe8b566)
qa/workunits/rgw/test_rgw_orphan_list.sh