Comment 8 for bug 1795400

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to stx-config (r/2018.10)

Reviewed: https://review.openstack.org/607054
Committed: https://git.openstack.org/cgit/openstack/stx-config/commit/?id=41b0a21603ea33dd6e5215717219c227580cc067
Submitter: Zuul
Branch: r/2018.10

commit 41b0a21603ea33dd6e5215717219c227580cc067
Author: Don Penney <email address hidden>
Date: Mon Oct 1 14:55:07 2018 -0400

    Write software_version in hieradata as a string

    When puppet reads a unicode value from hieradata that it believes
    is a floating number, it automatically converts it to a float. In
    the case of the software_version, that means a version like '18.10'
    is converted to 18.1 by puppet. This results in some components
    and directories using the wrong value for software_version, and
    certain services fail.

    In particular, this resulted in sysinv being unable to populate
    the host inventory data when new nodes were installed in a running
    system. Queries like host-data-list or host-if-list would return
    empty data.

    This update to sysinv writes the software_version to hieradata as
    a string rather than unicode, ensuring puppet treats it properly.

    Closes-Bug: 1795400
    Change-Id: Ic3ab3aea2f7fc6662f0b523070afb4b3ef7ee282
    Signed-off-by: Don Penney <email address hidden>