keepalived container fails to configure correctly with facter 3

Bug #1812938 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Alex Schultz

Bug Description

The interface_for_ip function assumes facter 2 syntax for facts but under fedora 28 we end up with a newer facter that no longer provides the interface_<interface> facts.

This results in the keepalived container failing to start because the 'interface' config line doesn't have an interface configured.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (master)

Fix proposed to branch: master
Review: https://review.openstack.org/632591

Changed in tripleo:
status: Triaged → In Progress
summary: - keepalived container fails to configure correctly with facter
+ keepalived container fails to configure correctly with facter 3
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

sigh, is it yey the time to abandon KA for the unified pacemaker tool used for single node and multi node?

tags: added: tech-debt
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (master)

Reviewed: https://review.openstack.org/632591
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=5fff984cecf68c256e60ba6017f37b9d1e76e31b
Submitter: Zuul
Branch: master

commit 5fff984cecf68c256e60ba6017f37b9d1e76e31b
Author: Alex Schultz <email address hidden>
Date: Tue Jan 22 17:37:29 2019 -0700

    Fix interface_for_ip for newer facter versions

    In facter 3.x, the networking facts are in a complex hash. Previously
    the interface facts where flat so we would lookup the vars. This change
    first tries the facter 2.x lookup before falling back to the facter 3.x
    syntax.

    Change-Id: I260b18ae3479da4f5176027d4b26b3e1c6b22063
    Closes-Bug: #1812938

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 10.3.0

This issue was fixed in the openstack/puppet-tripleo 10.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/669702

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/669704

Revision history for this message
Alfredo Moralejo (amoralej) wrote :

For the record, this issue only affects to ovb iiuc, would it be worthy to add ovb job to rdoinfo promotion pipelines at least in experimental?

Revision history for this message
Alex Schultz (alex-schultz) wrote :

wouldn't hurt but this should have shown up on any job because it affected the undercloud

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (stable/queens)

Reviewed: https://review.opendev.org/669704
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=db8d7cbe7ce42c0fafafc70c35dd5d9a611802ce
Submitter: Zuul
Branch: stable/queens

commit db8d7cbe7ce42c0fafafc70c35dd5d9a611802ce
Author: Alex Schultz <email address hidden>
Date: Tue Jan 22 17:37:29 2019 -0700

    Fix interface_for_ip for newer facter versions

    In facter 3.x, the networking facts are in a complex hash. Previously
    the interface facts where flat so we would lookup the vars. This change
    first tries the facter 2.x lookup before falling back to the facter 3.x
    syntax.

    Change-Id: I260b18ae3479da4f5176027d4b26b3e1c6b22063
    Closes-Bug: #1812938
    (cherry picked from commit 5fff984cecf68c256e60ba6017f37b9d1e76e31b)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (stable/rocky)

Reviewed: https://review.opendev.org/669702
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=5eb012b4f62615519707a926cc62528f5dc54a44
Submitter: Zuul
Branch: stable/rocky

commit 5eb012b4f62615519707a926cc62528f5dc54a44
Author: Alex Schultz <email address hidden>
Date: Tue Jan 22 17:37:29 2019 -0700

    Fix interface_for_ip for newer facter versions

    In facter 3.x, the networking facts are in a complex hash. Previously
    the interface facts where flat so we would lookup the vars. This change
    first tries the facter 2.x lookup before falling back to the facter 3.x
    syntax.

    Closes-Bug: #1835718
    Change-Id: I260b18ae3479da4f5176027d4b26b3e1c6b22063
    Closes-Bug: #1812938
    (cherry picked from commit 5fff984cecf68c256e60ba6017f37b9d1e76e31b)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 9.5.1

This issue was fixed in the openstack/puppet-tripleo 9.5.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 8.5.1

This issue was fixed in the openstack/puppet-tripleo 8.5.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.