[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-04-15 Thread Launchpad Bug Tracker
This bug was fixed in the package netplan.io - 0.107.1-3ubuntu0.22.04.3

---
netplan.io (0.107.1-3ubuntu0.22.04.3) jammy; urgency=medium

  * 
debian/patches/lp2139598-execute-udev-rules-before-sriov-apply-service.patch:
execute udev rules before starting sriov apply service (LP: #2139598)

netplan.io (0.107.1-3ubuntu0.22.04.2) jammy; urgency=medium

  * debian/patches/lp1988018: VF-LAG activation
Fixes the order in which SR-IOV configuration is performed and
cooperates with VF-LAG activation (LP: #1988018).
  * debian/patches/lp2020409:
Enables setting the embedded-switch mode without having to define
virtual functions (LP: #2020409).
  * debian/libnetplan0.symbols: New symbol _netplan_netdef_get_bond_mode.

netplan.io (0.107.1-3ubuntu0.22.04.1) jammy; urgency=medium

  * Backport netplan.io 0.107.1-3 to 22.04 (LP: #2058031):
- Support for "dummy" (`dummy-devices`) interfaces (LP: 1774203) (!361)
- Support for "veth" (`virtual-ethernets`) interfaces (!368)
- Add Python bindings for libnetplan (!385)
- netplan: Handle command exceptions (!334)
- WPA3 (personal) support (LP: 2023238) (!369)
- Add all the commands to the bash completion file (LP: 1749869) (!326)
- New submodule for state manipulation (!379)
- commands/status: show routes from all routing tables (!390)
- cli:status: Make rich pretty printing optional (!388)
- libnetplan: expose dhcp4 and dhcp6 properties (!394)
- Expose macaddress and DNS configuration from the netdef (!395)
- libnetplan: expose the routes list in the netdef (!397)
- NetworkManager: Wireguard private key flag support (!371)
- Add a netplan_parser_load_keyfile() Python binding (!351)
- keyfile parser: add support for all tunnel types (LP: 2016473) (!360)
- parse-nm:wg: add support for reading the listen-port property (!372)
- parse-nm: add support for VRF devices (!398)
- Vlan keyfile parser support (!370)
- Netplan docs rework (!333 & !337)
- docs: Add a short netplan-everywhere howto (!325)
- doc: make us of sphinx copybutton plugin (!354)
- doc: Add Ubuntu Code of Conduct 2.0 (!355)
- doc: Explanation about 00-network-manager-all.yaml (!378)
- wifi: add support for WPA3-Enterprise (LP: 2029876) (!402)
- wifi: support WPA2 and WPA3 Personal simultaneously (!404)
- added mii-monitor-interval example (!411)
- docs: Add "Contribute Documentation" how-to
- auth: add support for LEAP and EAP-PWD (!415)
- tests: Add autopkgtest for (LP: 1959570) (!419)
- wifi: make it possible to have a psk and an eap password simultaneously
  (!416)
- doc: Set-up some basic Doxygen project (!423)
- doc: Make Sphinx to handle autodoxygen project, using breathe (!423)
- doc: create libnetplan apidoc structure (!423)
- inc: Start documenting public API (!423)
- doc: Update 'Netplan everywhere' for 23.10 (!418)
SECURITY UPDATE: weak permissions on secret files, command injection
- d/p/lp2065738/0014-libnetplan-use-more-restrictive-file-permissions.patch:
  Use more restrictive file permissions to prevent unprivileged users to
  read sensitive data from back end files (LP: 2065738, 1987842)
- CVE-2022-4968
- d/p/lp2066258/0015-libnetplan-escape-control-characters.patch:
  Escape control characters in the parser and double quotes in backend
  files.
- d/p/lp2066258/0016-backends-escape-file-paths.patch:
  Escape special characters in file paths.
- d/p/lp2066258/0017-backends-escape-semicolons-in-service-units.patch:
  Escape isolated semicolons in systemd service units. (LP: 2066258)
- debian/netplan-generator.postinst: Add a postinst maintainer script to
  call the generator. It's needed so the file permissions fixes will be
  applied automatically.
Bug fixes:
- Fix FTBFS on Fedora and refresh RPM packaging (!323)
- parser: validate lacp-rate properly (LP: 1745648) (!324)
- use meson-make-symlink.sh helper instead of install_symlink() (!327)
- netplan: cli: fix typo from 'unkown' to 'unknown' (!328)
- Handle duplication during parser second pass (LP: 2007682) (!329)
- parse:ovs: Ignore deprecated OpenFlow1.6 protocol (LP: 1963735) (!332)
- dbus: Build the copy path correctly (!331)
- tests: add new spread based snapd integration test (!330)
- Use controlled execution environment, to avoid failure if PATH is unset
  (LP: 1959570) (!336)
- Some refactoring (!338)
- netplan: adjust the maximum buffer size to 1MB (!340)
- parse: use "--" with systemd-escape (!347)
- docs: fix bridge parameters types and add examples (!346)
- vrfs: skip policies parsing if list is NULL (LP: 2016427) (!341)
- networkd: plug a memory leak (!344)
- libnetplan: don't try to read from a NULL file (!342)
- nm: return if write_routes() fails (!345)
- parse: plug a memory leak (!348)
- parse: set the backend on nm-de

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-31 Thread Launchpad Bug Tracker
This bug was fixed in the package netplan.io - 1.1.2-8ubuntu1~24.04.2

---
netplan.io (1.1.2-8ubuntu1~24.04.2) noble; urgency=medium

  * 
debian/patches/lp2139598-execute-udev-rules-before-sriov-apply-service.patch:
execute udev rules before starting sriov apply service (LP: #2139598)

 -- Robert Malz   Tue, 03 Mar 2026 12:37:33
+0100

** Changed in: netplan.io (Ubuntu Noble)
   Status: Fix Committed => Fix Released

** Changed in: netplan.io (Ubuntu Questing)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-31 Thread Launchpad Bug Tracker
This bug was fixed in the package netplan.io - 1.1.2-8ubuntu1~25.10.2

---
netplan.io (1.1.2-8ubuntu1~25.10.2) questing; urgency=medium

  * 
debian/patches/lp2139598-execute-udev-rules-before-sriov-apply-service.patch:
execute udev rules before starting sriov apply service (LP: #2139598)

 -- Robert Malz   Tue, 03 Mar 2026 12:41:47
+0100

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-27 Thread Robert Malz
Verified on Questing 1.1.2-8ubuntu1~25.10.2, the same config as in jammy

> sudo devlink dev eswitch show pci/:61:00.1
pci/:61:00.1: mode switchdev inline-mode none encap-mode basic
> sudo devlink dev eswitch show pci/:61:00.0
pci/:61:00.0: mode switchdev inline-mode none encap-mode basic

No issues detected.

** Tags removed: verification-needed-questing
** Tags added: verification-done-questing

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-27 Thread Robert Malz
Verified on Noble 1.1.2-8ubuntu1~24.04.2, the same config as in jammy

> sudo devlink dev eswitch show pci/:61:00.0
pci/:61:00.0: mode switchdev inline-mode none encap-mode basic
> sudo devlink dev eswitch show pci/:61:00.1
pci/:61:00.1: mode switchdev inline-mode none encap-mode basic

No issues detected.

** Tags removed: verification-needed-noble
** Tags added: verification-done-noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-20 Thread Robert Malz
Tested on jammy 0.107.1-3ubuntu0.22.04.3
with netplan config:
/etc/netplan/50-cloud-init.yaml
ens7f0:
match:
macaddress: b8:3f:d2:2d:68:7e
mtu: 1500
set-name: ens7f0

/etc/netplan/99-sriov.yaml 
 network:
  version: 2
  ethernets:
ens7f0:
  virtual-function-count: 16
  embedded-switch-mode: switchdev
  delay-virtual-functions-rebind: true

Results:
Interface was renamed as expected:
Mar 20 13:14:43 romano kernel: mlx5_core :61:00.0 ens7f0np0: renamed from 
eth2
Mar 20 13:14:44 romano kernel: mlx5_core :61:00.0 ens7f0: renamed from 
ens7f0np0

Mar 20 13:15:48 romano systemd[1]: netplan-sriov-apply.service: Deactivated 
successfully.
Mar 20 13:15:48 romano systemd[1]: Finished Apply SR-IOV configuration.
Mar 20 13:15:48 romano systemd[1]: netplan-sriov-apply.service: Consumed 1.577s 
CPU time.

ubuntu@romano:~$ systemctl show netplan-sriov-apply.service \
  -p ExecMainStartTimestamp \
  -p ExecMainExitTimestamp
ExecMainStartTimestamp=Fri 2026-03-20 13:14:44 UTC
ExecMainExitTimestamp=Fri 2026-03-20 13:15:48 UTC


Configuration was applied as expected:

ubuntu@romano:~$ sudo devlink dev eswitch show pci/:61:00.1
pci/:61:00.1: mode switchdev inline-mode none encap-mode basic
ubuntu@romano:~$ sudo devlink dev eswitch show pci/:61:00.0
pci/:61:00.0: mode switchdev inline-mode none encap-mode basic

System has been rebooted 3 times, each time results were positive.

Working on verifying noble/questing.
I have also reached PS6 team which reported issues in 
https://bugs.launchpad.net/netplan/+bug/2020409 to double check -proposed as 
well.

** Tags removed: verification-needed-jammy
** Tags added: verification-done-jammy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-18 Thread Nick Rosbrook
Hello Robert, or anyone else affected,

Accepted netplan.io into jammy-proposed. The package will build now and
be available at
https://launchpad.net/ubuntu/+source/netplan.io/0.107.1-3ubuntu0.22.04.3
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
jammy to verification-done-jammy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-jammy. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: netplan.io (Ubuntu Jammy)
   Status: New => Fix Committed

** Tags added: verification-needed-jammy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-18 Thread Lena Voytek
Reuploaded for jammy with all changes not yet in -updates included

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-18 Thread Nick Rosbrook
Hello Robert, or anyone else affected,

Accepted netplan.io into questing-proposed. The package will build now
and be available at
https://launchpad.net/ubuntu/+source/netplan.io/1.1.2-8ubuntu1~25.10.2
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
questing to verification-done-questing. If it does not fix the bug for
you, please add a comment stating that, and change the tag to
verification-failed-questing. In either case, without details of your
testing we will not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: netplan.io (Ubuntu Questing)
   Status: New => Fix Committed

** Tags added: verification-needed verification-needed-questing

** Changed in: netplan.io (Ubuntu Noble)
   Status: New => Fix Committed

** Tags added: verification-needed-noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-17 Thread Guilherme Puida Moreira
Thanks, Robert! FTR

https://code.launchpad.net/~puida/ubuntu/+source/netplan.io/+git/netplan.io/+merge/502088
https://code.launchpad.net/~puida/ubuntu/+source/netplan.io/+git/netplan.io/+merge/502089
https://code.launchpad.net/~puida/ubuntu/+source/netplan.io/+git/netplan.io/+merge/502090

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-17 Thread Launchpad Bug Tracker
** Merge proposal linked:
   
https://code.launchpad.net/~puida/ubuntu/+source/netplan.io/+git/netplan.io/+merge/502088

** Merge proposal linked:
   
https://code.launchpad.net/~puida/ubuntu/+source/netplan.io/+git/netplan.io/+merge/502089

** Merge proposal linked:
   
https://code.launchpad.net/~puida/ubuntu/+source/netplan.io/+git/netplan.io/+merge/502090

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-17 Thread Robert Malz
Hey Guilherme,
Changes introduced by 2020409 caused a regression which was reported in the 
same bug in comment  https://bugs.launchpad.net/netplan/+bug/2020409/comments/11

Team which reported these problems tested netplan with current patches
applied (ppa [0]) and since then they were not able to reproduce any
issues and as far as I know they are still running netplan from this
ppa.

Problem with a 100% statement that this patch fixed their problem is lack of 
logs from initial report, which means I'm not sure if they have more than one 
issue. Since then I have been working with the team which reported that issue, 
reproduced problem described in this LP and verified the fix from debdiffs.
Overall I'm highly confident that this patch fixes issues from [0].

> Would you like me to open MPs for the SRUs to the other releases?
Sure, goal is to push this patch to affected releases and finally unblock 
jammy-proposed.

[0] - https://launchpad.net/~rmalz/+archive/ubuntu/sf00397214

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-15 Thread Launchpad Bug Tracker
This bug was fixed in the package netplan.io - 1.2-1ubuntu3

---
netplan.io (1.2-1ubuntu3) resolute; urgency=medium

  * 
debian/patches/lp2139598-execute-udev-rules-before-sriov-apply-service.patch:
execute udev rules before starting sriov apply service (LP: #2139598)

 -- Robert Malz   Tue, 03 Mar 2026 12:44:43
+0100

** Changed in: netplan.io (Ubuntu Resolute)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-11 Thread Guilherme Puida Moreira
Thanks Robert! I have pushed jammy, noble and questing with the debdiffs
applied to my fork
(https://code.launchpad.net/~puida/ubuntu/+source/netplan.io/+git/netplan.io).
It seems like you have already uploaded this to devel.

Would you like me to open MPs for the SRUs to the other releases?

Also, do we have confirmation that this fixes #2020409?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-04 Thread Robert Malz
** Description changed:

  [ Impact ]
  
  * netplan-sriov-apply.service can sometimes fail to configure sriov
  interfaces.
  
  * Issue happens when netplan is performing per interface configuration and 
udev rules
    are modifying PF interface names. If that happens netplan will fail to get 
some PF related data
    as expected /sys/class/net// directory will no longer exist.
  
  * Depending on the timing between netplan-sriov-apply.service and udev rules 
execution, one or more
    PF interfaces might be unconfigured.
  
  * This issue might a be root cause for following netplan bugs:
    - https://bugs.launchpad.net/netplan/+bug/1988018
    - https://bugs.launchpad.net/netplan/+bug/2020409
  
  * A proposed solution is to make sure that udev rules are triggered and 
finished before netplan-sriov-apply.service
    starts executing.
  
  * Issue was most likely introduced by 
https://bugs.launchpad.net/netplan/+bug/1988018
    - this change introduced netplan-sriov-apply.service
    - jammy 0.107.1-3ubuntu0.22.04.2 is still in -proposed
    - noble/questing/resolute released it as part of v1.0
  
  * Issue is reproduced when user specifies set-name config value with a name 
different than what systemd networkd generated
    - During the boot process, interface will first be renamed to ethX, then 
networkd will apply its PCI address based naming,
  and only then udev will process rules created by using set-name config 
value.
    - If set-name is not used or name specified in set-name is the same as the 
one networkd generated, issue will not reproduce.
  
  [ Test Plan ]
  
   * Create a netplan config which modifies interface name and sets sriov 
config, for instance:
    50-if.yaml:
   network:
    ethernets:
  ens1f0:
    match:
  macaddress: b8:3f:d2:09:38:94
    mtu: 1500
    optional: true
    set-name: ens1f0
  ens1f1:
    match:
  macaddress: b8:3f:d2:09:38:94
    mtu: 1500
    optional: true
    set-name: ens1f1
  
   99-sriov.yaml:
   network:
    version: 2
    ethernets:
  ens1f0:
    virtual-function-count: 32
    embedded-switch-mode: switchdev
    delay-virtual-functions-rebind: true
    ethernets:
  ens1f1:
    virtual-function-count: 32
    embedded-switch-mode: switchdev
    delay-virtual-functions-rebind: true
  
  NOTE: name generated for these interfaces by networkd are ens1f0np0 and
  ens1f1np1
  
   * Reboot the host with above config
  
   * After reboot verify if sriov configuration was properly applied on the 
interface.
   Expected result:
  Config was properly applied by netplan-sriov-apply.service
  
   Actual results:
  Feb 02 12:15:49 doopliss netplan[1163]: ERROR:root:could not determine vendor 
and device ID of ens1f1np1: [Errno 2] No such file or directory: 
'/sys/class/net/ens1f1np1/device/vendor'
  Feb 02 12:15:49 doopliss systemd[1]: netplan-sriov-apply.service: Main 
process exited, code=exited, status=1/FAILURE
  Feb 02 12:15:49 doopliss systemd[1]: netplan-sriov-apply.service: Failed with 
result 'exit-code'.
  
  In this example, netplan-sriov-apply.service started around Feb 02 12:15:27, 
it properly configured first interface using old name ens1f0np0.
  Then second interface ens1f1np1 was renamed:
  Feb 02 12:15:37 doopliss kernel: mlx5_core :4b:00.1 ens1f1: renamed from 
ens1f1np1
  Netplan using name ens1f1np1 failed to get 
/sys/class/net/ens1f1np1/device/vendor, as new proper path should be 
/sys/class/net/ens1f1/device/vendor
  
  This is just an example, when interface name changes when 
netplan-sriov.apply.service is running, netplan can fail in different parts of 
the code which can result in similar Error log:
  "[Errno 2] No such file or directory" such as mentioned in LP1988018:
  Apr 16 15:44:44 romano netplan[1171]: failed parsing sriov_totalvfs for 
ens7f1np1: [Errno 2] No such file or directory: 
'/sys/class/net/ens7f1np1/device/sriov_totalvfs'
  
  [ Where problems could occur ]
  
   * Proposed change is making sure that udev rules are triggered and done 
before netplan-sriov-apply.service starts.
     Inspecting current `netplan apply` logic shows that this is already 
performed in the code for `netplan apply` command
     but is missing from `netplan apply --sriov-only` which is called by 
netplan-sriov-apply.service.
  
   * If there are any other processes which are modifying interface names,
  issue can still be reproduced.
  
   * With new change following commands will be executed:
     - udevadm control --reload
     - udevadm trigger --action=add --subsystem-match=net
     - udevadm settle
     If any of the commands hangs, service might not start properly and leave 
interfaces unconfigured.
  
  [ Other Info ]
  
   * Issue can be quite reliable reproduced on jammy-proposed
  
   * I was not able to reproduce issue on Noble, when applying the same 
configuration. Once netplan-sriov-apply.service starts interfaces are already 
set to prope

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-03 Thread Ubuntu Foundations Team Bug Bot
The attachment "questing.debdiff" seems to be a debdiff.  The ubuntu-
sponsors team has been subscribed to the bug report so that they can
review and hopefully sponsor the debdiff.  If the attachment isn't a
patch, please remove the "patch" flag from the attachment, remove the
"patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe
the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issue please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-03 Thread Robert Malz
** Patch added: "jammy.debdiff"
   
https://bugs.launchpad.net/netplan/+bug/2139598/+attachment/5949872/+files/jammy.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-03 Thread Robert Malz
** Patch added: "noble.debdiff"
   
https://bugs.launchpad.net/netplan/+bug/2139598/+attachment/5949871/+files/noble.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-03 Thread Robert Malz
** Patch removed: "resolute.debdiff"
   
https://bugs.launchpad.net/netplan/+bug/2139598/+attachment/5949832/+files/resolute.debdiff

** Patch removed: "questing.debdiff"
   
https://bugs.launchpad.net/netplan/+bug/2139598/+attachment/5949833/+files/questing.debdiff

** Patch removed: "noble.debdiff"
   
https://bugs.launchpad.net/netplan/+bug/2139598/+attachment/5949834/+files/noble.debdiff

** Patch removed: "jammy.debdiff"
   
https://bugs.launchpad.net/netplan/+bug/2139598/+attachment/5949835/+files/jammy.debdiff

** Patch added: "questing.debdiff"
   
https://bugs.launchpad.net/netplan/+bug/2139598/+attachment/5949869/+files/questing.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-03 Thread Robert Malz
** Patch added: "resolute.debdiff"
   
https://bugs.launchpad.net/netplan/+bug/2139598/+attachment/5949870/+files/resolute.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-03 Thread Robert Malz
** Description changed:

  [ Impact ]
  
  * netplan-sriov-apply.service can sometimes fail to configure sriov
  interfaces.
  
  * Issue happens when netplan is performing per interface configuration and 
udev rules
-   are modifying PF interface names. If that happens netplan will fail to get 
some PF related data
-   as expected /sys/class/net// directory will no longer exist.
-   
+   are modifying PF interface names. If that happens netplan will fail to get 
some PF related data
+   as expected /sys/class/net// directory will no longer exist.
+ 
  * Depending on the timing between netplan-sriov-apply.service and udev rules 
execution, one or more
-   PF interfaces might be unconfigured.
-   
+   PF interfaces might be unconfigured.
+ 
  * This issue might a be root cause for following netplan bugs:
-   - https://bugs.launchpad.net/netplan/+bug/1988018
-   - https://bugs.launchpad.net/netplan/+bug/2020409
-   
+   - https://bugs.launchpad.net/netplan/+bug/1988018
+   - https://bugs.launchpad.net/netplan/+bug/2020409
+ 
  * A proposed solution is to make sure that udev rules are triggered and 
finished before netplan-sriov-apply.service
-   starts executing.
+   starts executing.
  
  * Issue was most likely introduced by 
https://bugs.launchpad.net/netplan/+bug/1988018
-   - this change introduced netplan-sriov-apply.service
-   - jammy 0.107.1-3ubuntu0.22.04.2 is still in -proposed
-   - noble/questing/resolute released it as part of v1.0
-   
+   - this change introduced netplan-sriov-apply.service
+   - jammy 0.107.1-3ubuntu0.22.04.2 is still in -proposed
+   - noble/questing/resolute released it as part of v1.0
+ 
  * Issue is reproduced when user specifies set-name config value with a name 
different than what systemd networkd generated
-   - During the boot process, interface will first be renamed to ethX, then 
networkd will apply its PCI address based naming,
- and only then udev will process rules created by using set-name config 
value.
-   - If set-name is not used or name specified in set-name is the same as the 
one networkd generated, issue will not reproduce.
- 
+   - During the boot process, interface will first be renamed to ethX, then 
networkd will apply its PCI address based naming,
+ and only then udev will process rules created by using set-name config 
value.
+   - If set-name is not used or name specified in set-name is the same as the 
one networkd generated, issue will not reproduce.
  
  [ Test Plan ]
  
-  * Create a netplan config which modifies interface name and sets sriov 
config, for instance:
-   50-if.yaml:
-  network:
-   ethernets:
- ens1f0:
-   match:
- macaddress: b8:3f:d2:09:38:94
-   mtu: 1500
-   optional: true
-   set-name: ens1f0
- ens1f1:
-   match:
- macaddress: b8:3f:d2:09:38:94
-   mtu: 1500
-   optional: true
-   set-name: ens1f1
+  * Create a netplan config which modifies interface name and sets sriov 
config, for instance:
+   50-if.yaml:
+  network:
+   ethernets:
+ ens1f0:
+   match:
+ macaddress: b8:3f:d2:09:38:94
+   mtu: 1500
+   optional: true
+   set-name: ens1f0
+ ens1f1:
+   match:
+ macaddress: b8:3f:d2:09:38:94
+   mtu: 1500
+   optional: true
+   set-name: ens1f1
  
-  99-sriov.yaml:
-  network:
-   version: 2
-   ethernets:
- ens1f0:
-   virtual-function-count: 32
-   embedded-switch-mode: switchdev
-   delay-virtual-functions-rebind: true
-   ethernets:
- ens1f1:
-   virtual-function-count: 32
-   embedded-switch-mode: switchdev
-   delay-virtual-functions-rebind: true
+  99-sriov.yaml:
+  network:
+   version: 2
+   ethernets:
+ ens1f0:
+   virtual-function-count: 32
+   embedded-switch-mode: switchdev
+   delay-virtual-functions-rebind: true
+   ethernets:
+ ens1f1:
+   virtual-function-count: 32
+   embedded-switch-mode: switchdev
+   delay-virtual-functions-rebind: true
  
+ NOTE: name generated for these interfaces by networkd are ens1f0np0 and
+ ens1f1np1
  
- NOTE: name generated for these interfaces by networkd are ens1f0np0 and 
ens1f1np1
+  * Reboot the host with above config
  
-  * Reboot the host with above config
+  * After reboot verify if sriov configuration was properly applied on the 
interface.
+  Expected result:
+ Config was properly applied by netplan-sriov-apply.service
  
-  * After reboot verify if sriov configuration was properly applied on the 
interface.
-  Expected result:
- Config was properly applied by netplan-sriov-apply.service
-  
-  Actual results:
+  Actual results:
  Feb 02 12:15:49 doopliss netplan[1163]: ERROR:root:could not determine vendor 
and device ID of ens1f1np1: [Errno 2] No such file or directory: 
'/sys/class/net/ens1f1np1/device/vendor'
  Feb 02 12:15:49 doopliss systemd[1]: netplan-sriov-apply.service: Main 
process exited, code=exited, status=1/FAILURE
  Feb 02 12:15:49 doopliss systemd[1]: netplan-sriov-a

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-03 Thread Robert Malz
** Patch added: "noble.debdiff"
   
https://bugs.launchpad.net/netplan/+bug/2139598/+attachment/5949834/+files/noble.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-03 Thread Robert Malz
** Patch added: "jammy.debdiff"
   
https://bugs.launchpad.net/netplan/+bug/2139598/+attachment/5949835/+files/jammy.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-03 Thread Robert Malz
** Patch added: "questing.debdiff"
   
https://bugs.launchpad.net/netplan/+bug/2139598/+attachment/5949833/+files/questing.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-03-03 Thread Robert Malz
** Patch added: "resolute.debdiff"
   
https://bugs.launchpad.net/netplan/+bug/2139598/+attachment/5949832/+files/resolute.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2139598] Re: Netplan can crash when applying sriov config

2026-02-09 Thread Ben Hoyt
** Summary changed:

- Neplan can crash when applying sriov config
+ Netplan can crash when applying sriov config

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139598

Title:
  Netplan can crash when applying sriov config

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2139598/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs