The ahuffman.resolv managed resolv.conf is overwritten by NetworkManager during the first overcloud host configure run on a RL9 host

Bug #2044537 reported by Matt Crees
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kayobe
Status tracked in Caracal
Antelope
Fix Released
Undecided
Unassigned
Bobcat
Fix Released
Undecided
Matt Crees
Caracal
Fix Released
Undecided
Matt Crees
Yoga
Fix Released
Undecided
Unassigned
Zed
Fix Released
Undecided
Unassigned

Bug Description

When first running ``kayobe overcloud host configure`` on a Rocky Linux 9 host, resolv.conf is templated by the ahuffman.resolv role. It is then later overwritten by NetworkManager around when the networks are bounced. This causes future package installs to fail.

ahuffman.resolv templated:

```
cat /etc/resolv.conf

# Ansible managed
nameserver X.X.X.X
nameserver X.X.X.X
nameserver X.X.X.X
```

NetworkManager overwrites to:

```
cat /etc/resolv.conf

# Generated by NetworkManager
```

Proposed solution:
Only handle resolv.conf via NetworkManager when using RL9.

Will Szumski (willjs)
Changed in kayobe:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kayobe (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/kayobe/+/902561

Changed in kayobe:
status: Confirmed → In Progress
Matt Crees (mattcrees)
Changed in kayobe:
assignee: nobody → Matt Crees (mattcrees)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kayobe (master)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/902561
Committed: https://opendev.org/openstack/kayobe/commit/578a257c3858484cd26415f1490f3b4ce1b15ccb
Submitter: "Zuul (22348)"
Branch: master

commit 578a257c3858484cd26415f1490f3b4ce1b15ccb
Author: Matt Crees <email address hidden>
Date: Mon Dec 4 09:54:52 2023 +0000

    Stop NetworkManager from overriding resolv.conf

    When ``resolv_is_managed`` is set, Kayobe templates resolv.conf. This
    patch stops NetworkManager from overriding these changes.

    Closes-Bug: #2044537
    Change-Id: I90b61dfe03d53c58327d2b15e70b7b8489bdfb47

Changed in kayobe:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kayobe (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/kayobe/+/903450

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kayobe (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/kayobe/+/903451

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kayobe (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/kayobe/+/903452

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kayobe (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/kayobe/+/903453

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kayobe (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/903450
Committed: https://opendev.org/openstack/kayobe/commit/45c0b1868701aca7b5f080dc72306f009a6c1019
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 45c0b1868701aca7b5f080dc72306f009a6c1019
Author: Matt Crees <email address hidden>
Date: Mon Dec 4 09:54:52 2023 +0000

    Stop NetworkManager from overriding resolv.conf

    When ``resolv_is_managed`` is set, Kayobe templates resolv.conf. This
    patch stops NetworkManager from overriding these changes.

    Closes-Bug: #2044537
    Change-Id: I90b61dfe03d53c58327d2b15e70b7b8489bdfb47
    (cherry picked from commit 578a257c3858484cd26415f1490f3b4ce1b15ccb)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kayobe (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/903451
Committed: https://opendev.org/openstack/kayobe/commit/7d4d9e0f7131bd21f4f381edd07609f769c4ca32
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 7d4d9e0f7131bd21f4f381edd07609f769c4ca32
Author: Matt Crees <email address hidden>
Date: Mon Dec 4 09:54:52 2023 +0000

    Stop NetworkManager from overriding resolv.conf

    When ``resolv_is_managed`` is set, Kayobe templates resolv.conf. This
    patch stops NetworkManager from overriding these changes.

    Closes-Bug: #2044537
    Change-Id: I90b61dfe03d53c58327d2b15e70b7b8489bdfb47
    (cherry picked from commit 578a257c3858484cd26415f1490f3b4ce1b15ccb)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kayobe (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/903452
Committed: https://opendev.org/openstack/kayobe/commit/fde242b89c5a7035e8594eb013654e017f914f88
Submitter: "Zuul (22348)"
Branch: stable/zed

commit fde242b89c5a7035e8594eb013654e017f914f88
Author: Matt Crees <email address hidden>
Date: Mon Dec 4 09:54:52 2023 +0000

    Stop NetworkManager from overriding resolv.conf

    When ``resolv_is_managed`` is set, Kayobe templates resolv.conf. This
    patch stops NetworkManager from overriding these changes.

    Closes-Bug: #2044537
    Change-Id: I90b61dfe03d53c58327d2b15e70b7b8489bdfb47
    (cherry picked from commit 578a257c3858484cd26415f1490f3b4ce1b15ccb)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kayobe (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/903453
Committed: https://opendev.org/openstack/kayobe/commit/b9cea681d18bba7cfe4a421468e8ba85fd916a36
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit b9cea681d18bba7cfe4a421468e8ba85fd916a36
Author: Matt Crees <email address hidden>
Date: Mon Dec 4 09:54:52 2023 +0000

    Stop NetworkManager from overriding resolv.conf

    When ``resolv_is_managed`` is set, Kayobe templates resolv.conf. This
    patch stops NetworkManager from overriding these changes.

    Closes-Bug: #2044537
    Change-Id: I90b61dfe03d53c58327d2b15e70b7b8489bdfb47
    (cherry picked from commit 578a257c3858484cd26415f1490f3b4ce1b15ccb)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kayobe 14.3.0

This issue was fixed in the openstack/kayobe 14.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kayobe 15.1.0

This issue was fixed in the openstack/kayobe 15.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kayobe 12.10.0

This issue was fixed in the openstack/kayobe 12.10.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kayobe 13.4.0

This issue was fixed in the openstack/kayobe 13.4.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kayobe (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/kayobe/+/907740

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kayobe (master)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/907740
Committed: https://opendev.org/openstack/kayobe/commit/2a73c328d39c24772887031c6162b608a980e388
Submitter: "Zuul (22348)"
Branch: master

commit 2a73c328d39c24772887031c6162b608a980e388
Author: Bartosz Bezak <email address hidden>
Date: Mon Feb 5 14:53:17 2024 +0100

    Reload NetworkManager on DNS config change

    Initial fix [1] was not reloading NetworkManager config, which caused
    MichaelRigart.interfaces role to clean up resolv.conf after interface
    bounce.

    [1] https://review.opendev.org/c/openstack/kayobe/+/902561
    Related-Bug: #2044537

    Change-Id: I5644ab2595a30cfff82f03d5ca4aa501a8b36ef8

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kayobe (stable/2023.2)

Related fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/kayobe/+/907926

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kayobe (stable/2023.1)

Related fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/kayobe/+/907927

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kayobe (stable/zed)

Related fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/kayobe/+/907928

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kayobe (unmaintained/yoga)

Related fix proposed to branch: unmaintained/yoga
Review: https://review.opendev.org/c/openstack/kayobe/+/907929

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kayobe (unmaintained/yoga)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/907929
Committed: https://opendev.org/openstack/kayobe/commit/9c9d9d6923542eddf832835da9e4e984b701d81a
Submitter: "Zuul (22348)"
Branch: unmaintained/yoga

commit 9c9d9d6923542eddf832835da9e4e984b701d81a
Author: Bartosz Bezak <email address hidden>
Date: Mon Feb 5 14:53:17 2024 +0100

    Reload NetworkManager on DNS config change

    Initial fix [1] was not reloading NetworkManager config, which caused
    MichaelRigart.interfaces role to clean up resolv.conf after interface
    bounce.

    [1] https://review.opendev.org/c/openstack/kayobe/+/902561
    Related-Bug: #2044537

    Change-Id: I5644ab2595a30cfff82f03d5ca4aa501a8b36ef8
    (cherry picked from commit 2a73c328d39c24772887031c6162b608a980e388)

tags: added: in-unmaintained-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kayobe (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/907928
Committed: https://opendev.org/openstack/kayobe/commit/4427530c015cf4b1ee94456a427d8a0539492f62
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 4427530c015cf4b1ee94456a427d8a0539492f62
Author: Bartosz Bezak <email address hidden>
Date: Mon Feb 5 14:53:17 2024 +0100

    Reload NetworkManager on DNS config change

    Initial fix [1] was not reloading NetworkManager config, which caused
    MichaelRigart.interfaces role to clean up resolv.conf after interface
    bounce.

    [1] https://review.opendev.org/c/openstack/kayobe/+/902561
    Related-Bug: #2044537

    Change-Id: I5644ab2595a30cfff82f03d5ca4aa501a8b36ef8
    (cherry picked from commit 2a73c328d39c24772887031c6162b608a980e388)

tags: added: in-stable-zed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kayobe (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/907927
Committed: https://opendev.org/openstack/kayobe/commit/31ad39de5350c01cf5d0c98990597c46dfcb437c
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 31ad39de5350c01cf5d0c98990597c46dfcb437c
Author: Bartosz Bezak <email address hidden>
Date: Mon Feb 5 14:53:17 2024 +0100

    Reload NetworkManager on DNS config change

    Initial fix [1] was not reloading NetworkManager config, which caused
    MichaelRigart.interfaces role to clean up resolv.conf after interface
    bounce.

    [1] https://review.opendev.org/c/openstack/kayobe/+/902561
    Related-Bug: #2044537

    Change-Id: I5644ab2595a30cfff82f03d5ca4aa501a8b36ef8
    (cherry picked from commit 2a73c328d39c24772887031c6162b608a980e388)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kayobe (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/907926
Committed: https://opendev.org/openstack/kayobe/commit/58627e5e7d2a659e97b49da966870148508ca7c5
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 58627e5e7d2a659e97b49da966870148508ca7c5
Author: Bartosz Bezak <email address hidden>
Date: Mon Feb 5 14:53:17 2024 +0100

    Reload NetworkManager on DNS config change

    Initial fix [1] was not reloading NetworkManager config, which caused
    MichaelRigart.interfaces role to clean up resolv.conf after interface
    bounce.

    [1] https://review.opendev.org/c/openstack/kayobe/+/902561
    Related-Bug: #2044537

    Change-Id: I5644ab2595a30cfff82f03d5ca4aa501a8b36ef8
    (cherry picked from commit 2a73c328d39c24772887031c6162b608a980e388)

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.