In multi-stack deployments, host entries are deployed for VIPs

Bug #1911792 reported by Bogdan Dobrelya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Bogdan Dobrelya

Bug Description

Based on https://bugzilla.redhat.com/show_bug.cgi?id=1912688

the problem is that central stack (for an example EDGE DCN case) creates its owner VIP resources, and these VIP resources appear in /etc/hosts.
Host records of the central stack including host records of vip resources in the central stack are injected to edge stacks by ExtraHostFileEntries and this is why these hosts entries are duplicated.

We should not include Vip hosts entries in edge site (or ideally we should not create these vip resources to save IP allocations).

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :
Changed in tripleo:
importance: Undecided → Medium
milestone: none → wallaby-2
status: New → In Progress
assignee: nobody → Bogdan Dobrelya (bogdando)
Changed in tripleo:
milestone: wallaby-2 → wallaby-3
Changed in tripleo:
milestone: wallaby-3 → wallaby-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 16.0.0

This issue was fixed in the openstack/python-tripleoclient 16.0.0 release.

Changed in tripleo:
milestone: wallaby-rc1 → xena-1
Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/victoria)

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/python-tripleoclient/+/844487

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/train)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/train)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/844488
Committed: https://opendev.org/openstack/python-tripleoclient/commit/8c4f8b2d315b9290eca44a089254844888b6cb02
Submitter: "Zuul (22348)"
Branch: stable/train

commit 8c4f8b2d315b9290eca44a089254844888b6cb02
Author: Bogdan Dobrelya <email address hidden>
Date: Thu Jan 14 18:36:09 2021 +0100

    Dedup host entries in the exported data for stacks

    Do not add extra host entries for VIPs for stacks deployed off the
    exported data, since it already contains those entries

    This is done by setting AddVipsToEtcHosts to False.
    Then a stack is deployed, no more VIPs will be added into /etc/hosts
    of the targeted hosts.

    Change-Id: Iba03aed76fab1977e2b51ef69e8e08a493152ed6
    Closes-bug: #1911792
    Signed-off-by: Bogdan Dobrelya <email address hidden>
    (cherry picked from commit e3c118756fa056602afe47136aaae77e3170b8bc)
    (cherry picked from commit b8d57c0b6c4a2935cfcf00dd7b888932aeb5436e)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/844487
Committed: https://opendev.org/openstack/python-tripleoclient/commit/b8d57c0b6c4a2935cfcf00dd7b888932aeb5436e
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit b8d57c0b6c4a2935cfcf00dd7b888932aeb5436e
Author: Bogdan Dobrelya <email address hidden>
Date: Thu Jan 14 18:36:09 2021 +0100

    Dedup host entries in the exported data for stacks

    Do not add extra host entries for VIPs for stacks deployed off the
    exported data, since it already contains those entries

    This is done by setting AddVipsToEtcHosts to False.
    Then a stack is deployed, no more VIPs will be added into /etc/hosts
    of the targeted hosts.

    Change-Id: Iba03aed76fab1977e2b51ef69e8e08a493152ed6
    Closes-bug: #1911792
    Signed-off-by: Bogdan Dobrelya <email address hidden>
    (cherry picked from commit e3c118756fa056602afe47136aaae77e3170b8bc)

tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient victoria-eol

This issue was fixed in the openstack/python-tripleoclient victoria-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient train-eol

This issue was fixed in the openstack/python-tripleoclient train-eol 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.