Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cloud-init for openSUSE:Factory 
checked in at 2024-06-11 18:27:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cloud-init (Old)
 and      /work/SRC/openSUSE:Factory/.cloud-init.new.19518 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cloud-init"

Tue Jun 11 18:27:02 2024 rev:101 rq:1179854 version:23.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/cloud-init/cloud-init.changes    2024-05-11 
18:18:45.684890675 +0200
+++ /work/SRC/openSUSE:Factory/.cloud-init.new.19518/cloud-init.changes 
2024-06-11 18:27:03.975992196 +0200
@@ -1,0 +2,6 @@
+Mon Jun  3 19:53:46 UTC 2024 - Robert Schweikert <[email protected]>
+
+- Add cloud-init-skip-rename.patch (bsc#1219680)
+  + Brute force appraoch to skip renames if the device is already present
+
+-------------------------------------------------------------------

New:
----
  cloud-init-skip-rename.patch

BETA DEBUG BEGIN:
  New:
- Add cloud-init-skip-rename.patch (bsc#1219680)
  + Brute force appraoch to skip renames if the device is already present
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cloud-init.spec ++++++
--- /var/tmp/diff_new_pack.qESfsg/_old  2024-06-11 18:27:04.964028253 +0200
+++ /var/tmp/diff_new_pack.qESfsg/_new  2024-06-11 18:27:04.968028399 +0200
@@ -51,6 +51,8 @@
 Patch13:       cloud-init-no-nmcfg-needed.patch
 # FIXME https://github.com/canonical/cloud-init/pull/5161
 Patch14:       cloud-init-usr-sudoers.patch
+# FIXME https://github.com/canonical/cloud-init/issues/5075
+Patch15:       cloud-init-skip-rename.patch
 BuildRequires:  fdupes
 BuildRequires:  filesystem
 # pkg-config is needed to find correct systemd unit dir
@@ -163,6 +165,7 @@
 %patch -P 12
 %patch -P 13
 %patch -P 14
+%patch -P 15
 
 # patch in the full version to version.py
 version_pys=$(find . -name version.py -type f)

++++++ cloud-init-skip-rename.patch ++++++
--- cloudinit/net/__init__.py.orig
+++ cloudinit/net/__init__.py
@@ -7,6 +7,7 @@
 
 import errno
 import functools
+import glob
 import ipaddress
 import logging
 import os
@@ -702,6 +703,13 @@ def _rename_interfaces(
         LOG.debug("no interfaces to rename")
         return
 
+    net_devs = glob.glob('/sys/class/net/*')
+    for dev in net_devs:
+        dev_name = dev.split('/')[-1]
+        for dev_data in renames:
+            if dev_name in dev_data:
+                del renames[renames.index(dev_data)]
+
     if current_info is None:
         current_info = _get_current_rename_info()
 

Reply via email to