Hi, i have difficulties removing/adding a wlan0 interface in OMV5. Bevorehand i followed the guides linked below to enable wlan on my rpi4 and it helped but my guess is that those changes won't work well with omv5.
https://www.raspberrypi.org/do…/wireless/wireless-cli.md
https://www.raspberrypi.org/do…ss/access-point-routed.md
I reverted all changes to the best of my abilities but now i get this error whenever i try to remove the wlan0 interface.
I dont think i made any changes to the direcotries or files listed in the error message
Code
Error #0:
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color systemd-networkd 2>&1' with exit code '1': raspberrypi:
----------
ID: remove_systemd_networkd_config_files
Function: module.run
Result: True
Comment: file.find: []
Started: 09:24:44.904407
Duration: 3.833 ms
Changes:
----------
file.find:
----------
ID: remove_empty_systemd_networkd_config_files
Function: module.run
Result: True
Comment: file.find: []
Started: 09:24:44.908605
Duration: 6.112 ms
Changes:
----------
file.find:
----------
ID: remove_netplan_config_files
Function: module.run
Result: True
Comment: file.find: ['/etc/netplan/10-openmediavault-default.yaml', '/etc/netplan/20-openmediavault-eth0.yaml']
Started: 09:24:44.915078
Duration: 4.002 ms
Changes:
----------
file.find:
- /etc/netplan/10-openmediavault-default.yaml
- /etc/netplan/20-openmediavault-eth0.yaml
----------
ID: configure_etc_network_interfaces
Function: file.managed
Name: /etc/network/interfaces
Result: True
Comment: File /etc/network/interfaces is in the correct state
Started: 09:24:44.924289
Duration: 86.454 ms
Changes:
----------
ID: symlink_systemd_resolvconf
Function: file.symlink
Name: /etc/resolv.conf
Result: True
Comment: Symlink /etc/resolv.conf is present and owned by root:root
Started: 09:24:45.011122
Duration: 4593.996 ms
Changes:
----------
ID: configure_netplan_default
Function: file.managed
Name: /etc/netplan/10-openmediavault-default.yaml
Result: True
Comment: File /etc/netplan/10-openmediavault-default.yaml updated
Started: 09:24:49.605782
Duration: 39.866 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: configure_netplan_ethernet_eth0
Function: file.managed
Name: /etc/netplan/20-openmediavault-eth0.yaml
Result: True
Comment: File /etc/netplan/20-openmediavault-eth0.yaml updated
Started: 09:24:49.646016
Duration: 78.94 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: configure_netplan_wifi_wlan0
Function: file.managed
Name: /etc/netplan/30-openmediavault-wlan0.yaml
Result: True
Comment: File /etc/netplan/30-openmediavault-wlan0.yaml updated
Started: 09:24:49.725326
Duration: 74.071 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: apply_netplan_config
Function: cmd.run
Name: netplan apply
Result: False
Comment: Command "netplan apply" run
Started: 09:24:49.799784
Duration: 326.483 ms
Changes:
----------
pid:
25478
retcode:
1
stderr:
Traceback (most recent call last):
File "/sbin/netplan", line 23, in <module>
netplan.main()
File "/usr/share/netplan/netplan/cli/core.py", line 50, in main
self.run_command()
File "/usr/share/netplan/netplan/cli/utils.py", line 130, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/apply.py", line 43, in run
self.run_command()
File "/usr/share/netplan/netplan/cli/utils.py", line 130, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/apply.py", line 93, in command_apply
stderr=subprocess.DEVNULL)
File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['udevadm', 'test-builtin', 'net_setup_link', '/sys/class/net/lo']' returned non-zero exit status 1.
stdout:
Summary for raspberrypi
------------
Succeeded: 8 (changed=7)
Failed: 1
------------
Total states run: 9
Total run time: 5.214 s in /usr/share/php/openmediavault/system/process.inc:195
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(167): OMV\Engine\Module\ServiceAbstract->deploy()
#2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatus4l...', '/tmp/bgoutputDZ...')
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#7 /usr/share/openmediavault/engined/rpc/config.inc(189): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)
#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
#11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#12 {main}
Display More