"netplan apply" produces ovsdb-server.service WARNING even when openvswitch-switch not installed
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Netplan |
Fix Released
|
Undecided
|
Unassigned | |||
netplan.io (Ubuntu) | Status tracked in Oracular | |||||
Mantic |
Won't Fix
|
Undecided
|
Unassigned | |||
Noble |
Fix Released
|
Undecided
|
Unassigned | |||
Oracular |
Fix Released
|
Low
|
Unassigned |
Bug Description
Example:
bfinley@flashmq2:~$ sudo netplan apply
WARNING:root:Cannot call Open vSwitch: ovsdb-server.
bfinley@flashmq2:~$ apt-file search ovsdb-server.
openvswitch-switch: /lib/systemd/
bfinley@flashmq2:~$ dpkg -l openvswitch-switch
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
un openvswitch-switch <none> <none> (no description available)
Possible resolution:
If the package isn't installed, there's no reason to warn that a non-existent service can't be restarted.
Therefore, in "/usr/share/
Here's a patch that does just that:
bfinley@
--- cli/commands/
+++ cli/commands/
@@ -414,4 +414,5 @@
if exit_on_error:
except OvsDbServerNotR
- logging.
+ if utils.systemctl
+ logging.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: netplan.io 0.106.1-
ProcVersionSign
Uname: Linux 5.15.0-87-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CloudArchitecture: x86_64
CloudID: none
CloudName: none
CloudPlatform: none
CloudSubPlatform: config
Date: Sat Oct 28 16:54:18 2023
InstallationDate: Installed on 2023-10-24 (4 days ago)
InstallationMedia: Ubuntu-Server 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230810)
ProcEnviron:
TERM=tmux-256color
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: netplan.io
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in netplan.io (Ubuntu): | |
status: | Triaged → In Progress |
Changed in netplan.io (Ubuntu): | |
status: | In Progress → Confirmed |
Changed in netplan: | |
status: | New → In Progress |
Changed in netplan.io (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in netplan: | |
status: | In Progress → Fix Committed |
Thanks for your report.
> If the package isn't installed, there's no reason to warn that a non-existent service can't be restarted.
That's very true! Would you mind transforming your patch into a pull-request at our GitHub repository? /github. com/canonical/ netplan
https:/