From de151e62c5733957d91052fbf4085de10d6683c5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Wed, 15 May 2019 09:37:13 +0200 Subject: [PATCH] Document bootstrap host failure on leap 15 Bootstrap host is relying on hostname ansible module to set hostname. On Leap 15, we are using /etc/os-release instead of suse-release, which breaks the platform stdlib on python2 and python3. There is no intention upstream to patch `platform`, as this has been deprecated, to accept any workaround SUSE needs to implement. Instead, it is advised to move to the `distro` library. Hopefully, Ansible is already moving to this. Because it's very internal to ansible, ansible vendors-in its own version of it. When we'll upgrade ansible to 2.8 or above, we should get an improvement (to be tested), or be able to fix it in Ansible and in distro. Without this patch, we don't know how to fix, nor who is responsible of the fix. This should clarify things. Change-Id: I4394755fbcc91c56e11037729a7683ff658a9f59 --- tests/roles/bootstrap-host/tasks/prepare_hostname.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/roles/bootstrap-host/tasks/prepare_hostname.yml b/tests/roles/bootstrap-host/tasks/prepare_hostname.yml index cb8ee5abd7..15ce59093c 100644 --- a/tests/roles/bootstrap-host/tasks/prepare_hostname.yml +++ b/tests/roles/bootstrap-host/tasks/prepare_hostname.yml @@ -37,6 +37,9 @@ # NOTE(hwoarang) The hostname module does not work on Leap 15 because of # https://bugzilla.novell.com/show_bug.cgi?id=997614 # As such we need to fallback to using the command directly. + # NOTE(evrardjp): Remove this when Ansible 2.8 is out, as Ansible now + # vendors in the distro python package, which _should_ technically help. + # (To be tested) rescue: - name: Set hostname using hostnamectl command: hostnamectl set-hostname aio1