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
This commit is contained in:
Jean-Philippe Evrard 2019-05-15 09:37:13 +02:00
parent d1870b410e
commit de151e62c5
1 changed files with 3 additions and 0 deletions

View File

@ -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