Skip to content

RHEL 9.6+ Azure: enable the dataloss warning service and add unmanaged devices to the NetworkManager config - #1447

Merged
achilleas-k merged 4 commits into
osbuild:mainfrom
achilleas-k:el9/azure/network-config+enable-service
Apr 22, 2025
Merged

achilleas-k merged 4 commits into
osbuild:mainfrom
achilleas-k:el9/azure/network-config+enable-service

Conversation

@achilleas-k

@achilleas-k achilleas-k commented Apr 17, 2025 •

Copy link
Copy Markdown
Member
  1. Enable the dataloss warning service
  2. Add org.osbuild.nm.conf stage
  3. Add NetworkManager config to set unmanaged devices

Part of #1396
These came up after a review of the currently merged changes from QE.

@achilleas-k
achilleas-k requested a review from a team as a code owner April 17, 2025 17:24

@ondrejbudai ondrejbudai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor nitpick, otherwise lgtm. :)

Comment thread pkg/osbuild/nm_conf_stage.go Outdated
return fmt.Errorf("%s: main.no-auto-default %s", nmConfStageType, err)
}
if err := validateArrayHasItems(main.Plugins); err != nil {
return fmt.Errorf("%s: main.no-auto-default %s", nmConfStageType, err)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot found out that this error message should mention main.plugins. It also suggested a test for it, as the empty-main test case only covers the first condition.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Fixed.

thozza
thozza previously approved these changes Apr 22, 2025

@thozza thozza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The stage has been in osbuild for a while now, but we never used it in
images.
Add NMConfStageOptions (as NetworkManager) to ImageConfig and
OSCustomizations and wire them up into the OS pipeline.
Add two unmanaged devices to the NetworkManager config for RHEL 9.6+
Azure images.

Closes osbuild#1445.
@achilleas-k
achilleas-k force-pushed the el9/azure/network-config+enable-service branch from 530dede to cc4de5d Compare April 22, 2025 10:06
@achilleas-k
achilleas-k enabled auto-merge April 22, 2025 10:27

@ondrejbudai ondrejbudai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@achilleas-k
achilleas-k added this pull request to the merge queue Apr 22, 2025
Merged via the queue into osbuild:main with commit 1de7f28 Apr 22, 2025
@achilleas-k
achilleas-k deleted the el9/azure/network-config+enable-service branch April 22, 2025 11:30
achilleas-k added a commit to achilleas-k/osbuild-composer that referenced this pull request Apr 22, 2025
Includes

tag v0.134.0
Tagger: imagebuilder-bot <[email protected]>

Changes with 0.134.0

----------------
  * Distro/el10/ec2/modprobe: blacklist 'i2c_piix4' (RHEL-71926) (osbuild/image-builder#1395)
    * Author: Tomáš Hozza, Reviewers: Achilleas Koutsou, Michael Vogt
  * Update osbuild dependency commit ID to latest (osbuild/image-builder#1391)
    * Author: SchutzBot, Reviewers: Achilleas Koutsou, Tomáš Hozza
  * distro/rhel9/azure: blacklist more modules on 9.6+ (RHEL-79065) (osbuild/image-builder#1394)
    * Author: Achilleas Koutsou, Reviewers: Michael Vogt, Simon de Vlieger
  * distro/rhel9/azure: exclude microcode_ctl on 9.6+ (RHEL-79065) (osbuild/image-builder#1405)
    * Author: Achilleas Koutsou, Reviewers: Michael Vogt, Tomáš Hozza
  * test: add configs for Azure that match official builds (osbuild/image-builder#1411)
    * Author: Achilleas Koutsou, Reviewers: Michael Vogt, Tomáš Hozza
  * test: fix description of `build-image` (osbuild/image-builder#1420)
    * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Simon de Vlieger
  * tools/gen-manifest-checksums: sort by image name (osbuild/image-builder#1406)
    * Author: Achilleas Koutsou, Reviewers: Michael Vogt, Simon de Vlieger

— Somewhere on the Internet, 2025-04-14

---

tag v0.135.0
Tagger: imagebuilder-bot <[email protected]>

Changes with 0.135.0

----------------
  * RHEL 9.6+ & 10.0+: install system-reinstall-bootc AWS and Azure [COMPOSER-2502] (osbuild/image-builder#1435)
    * Author: Achilleas Koutsou, Reviewers: Ondřej Budai
  * RHEL 9.6+/Azure: systemd service and script for dataloss warning on temporary resource disk (osbuild/image-builder#1434)
    * Author: Achilleas Koutsou, Reviewers: Tomáš Hozza
  * Set refclock in chrony config for Azure images on RHEL 9.6+ (RHEL-79065) (osbuild/image-builder#1400)
    * Author: Achilleas Koutsou, Reviewers: Tomáš Hozza
  * Update snapshots to 20250415 (osbuild/image-builder#1431)
    * Author: SchutzBot, Reviewers: Achilleas Koutsou
  * WSL: add packages for podman and proc utilities (COMPOSER-2455) (osbuild/image-builder#1425)
    * Author: Sanne Raymaekers, Reviewers: Tomáš Hozza
  * [RHEL-9.6+/Azure]: update waagent.conf and add nvme_core.io_timeout kernel arg (osbuild/image-builder#1430)
    * Author: Achilleas Koutsou, Reviewers: Ondřej Budai, Sanne Raymaekers
  * [RHEL/Azure RHUI] Disable `auto_enable_yum_plugins` in the RHSM config as a BP customization (osbuild/image-builder#1415)
    * Author: Tomáš Hozza, Reviewers: Achilleas Koutsou
  * ci: dependency updater gobump golang fix (osbuild/image-builder#1441)
    * Author: Lukáš Zapletal, Reviewers: Ondřej Budai
  * ci: dependency updater gobump typo (osbuild/image-builder#1439)
    * Author: Lukáš Zapletal, Reviewers: Achilleas Koutsou
  * ci: dependency updater via gobump (osbuild/image-builder#1385)
    * Author: Lukáš Zapletal, Reviewers: Achilleas Koutsou
  * distro: almalinux and almalinux_kitten (osbuild/image-builder#1375)
    * Author: Simon de Vlieger, Reviewers: Neal Gompa (ニール・ゴンパ), Ondřej Budai
  * fedora: bump branched and rawhide (osbuild/image-builder#1440)
    * Author: Simon de Vlieger, Reviewers: Achilleas Koutsou, Ondřej Budai
  * github: don't run manifest checksum validation on main (osbuild/image-builder#1437)
    * Author: Achilleas Koutsou, Reviewers: Ondřej Budai, Simon de Vlieger
  * manifesttest: add helper to find stages in a pipeline (osbuild/image-builder#1418)
    * Author: Michael Vogt, Reviewers: Lukáš Zapletal, Simon de Vlieger
  * rhsm: support for podman secrets (osbuild/image-builder#1414)
    * Author: Lukáš Zapletal, Reviewers: Simon de Vlieger

— Somewhere on the Internet, 2025-04-16

---

tag v0.136.0
Tagger: imagebuilder-bot <[email protected]>

Changes with 0.136.0

----------------
  * ci: dependency updater gobump git fix (osbuild/image-builder#1442)
    * Author: Lukáš Zapletal, Reviewers: Achilleas Koutsou

— Somewhere on the Internet, 2025-04-21

---

tag v0.137.0
Tagger: imagebuilder-bot <[email protected]>

Changes with 0.137.0

----------------
  * RHEL 9.6+ Azure: enable the dataloss warning service and add unmanaged devices to the NetworkManager config (osbuild/image-builder#1447)
    * Author: Achilleas Koutsou, Reviewers: Ondřej Budai, Tomáš Hozza

— Somewhere on the Internet, 2025-04-22

---
achilleas-k added a commit to osbuild/osbuild-composer that referenced this pull request Apr 22, 2025
Includes

tag v0.134.0
Tagger: imagebuilder-bot <[email protected]>

Changes with 0.134.0

----------------
  * Distro/el10/ec2/modprobe: blacklist 'i2c_piix4' (RHEL-71926) (osbuild/image-builder#1395)
    * Author: Tomáš Hozza, Reviewers: Achilleas Koutsou, Michael Vogt
  * Update osbuild dependency commit ID to latest (osbuild/image-builder#1391)
    * Author: SchutzBot, Reviewers: Achilleas Koutsou, Tomáš Hozza
  * distro/rhel9/azure: blacklist more modules on 9.6+ (RHEL-79065) (osbuild/image-builder#1394)
    * Author: Achilleas Koutsou, Reviewers: Michael Vogt, Simon de Vlieger
  * distro/rhel9/azure: exclude microcode_ctl on 9.6+ (RHEL-79065) (osbuild/image-builder#1405)
    * Author: Achilleas Koutsou, Reviewers: Michael Vogt, Tomáš Hozza
  * test: add configs for Azure that match official builds (osbuild/image-builder#1411)
    * Author: Achilleas Koutsou, Reviewers: Michael Vogt, Tomáš Hozza
  * test: fix description of `build-image` (osbuild/image-builder#1420)
    * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Simon de Vlieger
  * tools/gen-manifest-checksums: sort by image name (osbuild/image-builder#1406)
    * Author: Achilleas Koutsou, Reviewers: Michael Vogt, Simon de Vlieger

— Somewhere on the Internet, 2025-04-14

---

tag v0.135.0
Tagger: imagebuilder-bot <[email protected]>

Changes with 0.135.0

----------------
  * RHEL 9.6+ & 10.0+: install system-reinstall-bootc AWS and Azure [COMPOSER-2502] (osbuild/image-builder#1435)
    * Author: Achilleas Koutsou, Reviewers: Ondřej Budai
  * RHEL 9.6+/Azure: systemd service and script for dataloss warning on temporary resource disk (osbuild/image-builder#1434)
    * Author: Achilleas Koutsou, Reviewers: Tomáš Hozza
  * Set refclock in chrony config for Azure images on RHEL 9.6+ (RHEL-79065) (osbuild/image-builder#1400)
    * Author: Achilleas Koutsou, Reviewers: Tomáš Hozza
  * Update snapshots to 20250415 (osbuild/image-builder#1431)
    * Author: SchutzBot, Reviewers: Achilleas Koutsou
  * WSL: add packages for podman and proc utilities (COMPOSER-2455) (osbuild/image-builder#1425)
    * Author: Sanne Raymaekers, Reviewers: Tomáš Hozza
  * [RHEL-9.6+/Azure]: update waagent.conf and add nvme_core.io_timeout kernel arg (osbuild/image-builder#1430)
    * Author: Achilleas Koutsou, Reviewers: Ondřej Budai, Sanne Raymaekers
  * [RHEL/Azure RHUI] Disable `auto_enable_yum_plugins` in the RHSM config as a BP customization (osbuild/image-builder#1415)
    * Author: Tomáš Hozza, Reviewers: Achilleas Koutsou
  * ci: dependency updater gobump golang fix (osbuild/image-builder#1441)
    * Author: Lukáš Zapletal, Reviewers: Ondřej Budai
  * ci: dependency updater gobump typo (osbuild/image-builder#1439)
    * Author: Lukáš Zapletal, Reviewers: Achilleas Koutsou
  * ci: dependency updater via gobump (osbuild/image-builder#1385)
    * Author: Lukáš Zapletal, Reviewers: Achilleas Koutsou
  * distro: almalinux and almalinux_kitten (osbuild/image-builder#1375)
    * Author: Simon de Vlieger, Reviewers: Neal Gompa (ニール・ゴンパ), Ondřej Budai
  * fedora: bump branched and rawhide (osbuild/image-builder#1440)
    * Author: Simon de Vlieger, Reviewers: Achilleas Koutsou, Ondřej Budai
  * github: don't run manifest checksum validation on main (osbuild/image-builder#1437)
    * Author: Achilleas Koutsou, Reviewers: Ondřej Budai, Simon de Vlieger
  * manifesttest: add helper to find stages in a pipeline (osbuild/image-builder#1418)
    * Author: Michael Vogt, Reviewers: Lukáš Zapletal, Simon de Vlieger
  * rhsm: support for podman secrets (osbuild/image-builder#1414)
    * Author: Lukáš Zapletal, Reviewers: Simon de Vlieger

— Somewhere on the Internet, 2025-04-16

---

tag v0.136.0
Tagger: imagebuilder-bot <[email protected]>

Changes with 0.136.0

----------------
  * ci: dependency updater gobump git fix (osbuild/image-builder#1442)
    * Author: Lukáš Zapletal, Reviewers: Achilleas Koutsou

— Somewhere on the Internet, 2025-04-21

---

tag v0.137.0
Tagger: imagebuilder-bot <[email protected]>

Changes with 0.137.0

----------------
  * RHEL 9.6+ Azure: enable the dataloss warning service and add unmanaged devices to the NetworkManager config (osbuild/image-builder#1447)
    * Author: Achilleas Koutsou, Reviewers: Ondřej Budai, Tomáš Hozza

— Somewhere on the Internet, 2025-04-22

---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants