Bug 1185524

Summary: Changing to NetworkManager via Yast Network throws an internal error
Product: [openSUSE] openSUSE Tumbleweed Reporter: Michael <sbmichael>
Component: NetworkAssignee: Michal Filka <mfilka>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: bwiedemann, citizen, dimstar, jsikes, kanderssen, mfilka
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
URL: https://trello.com/c/un8hpdfr
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: screenshot
y2log

Description Michael 2021-05-01 12:43:59 UTC
Created attachment 848939 [details]
screenshot

I installed current Tumbleweed 20210429 on a laptop and the installer proposed NetworkManager. However, at the end, the installer reported this error (and then defaulted to wicked), which is the same error that is reported if I try to change from wicked to NetworkManager from Yast Network. 

To my recollection, there was no issue with NetworkManager previous to the latest NetworkManager update (NetworkManager 1.30.4).

The output is below and the logs attached.

---

Internal error. Please report a bug report with logs.
Run save_y2logs to get complete logs.

Caller: /usr/lib64/ruby/gems/2.7.0/gems/cfa-1.0.2/lib/cfa/augeas_parser.rb:461:in `report_activity_error!'

Details: Augeas serializing error: Failed to match tree under /store/wifi-security

{ "key-mgmt" = "wpa-psk" }
{ "auth-alg" = "open" }
{ "psk" = "xxxxxxxxxxx" }

with pattern

( { /[.0-9A-Z_a-z-]+([].0-9@-[_a-z-]+)?/ = /(([^\t\n\r #][^\n\r#]*[^\t\n\r #]|[^\t\n\r #]))?/ }
| { /#comment/ = /[^\t\n\r ].*[^\t\n\r ]|[^\t\n\r ]/ }
| { })*
for /etc/NetworkManager/system-connections/MEONW.nmconnection with lens /usr/share/augeas/lenses/dist/inifile.aug:459.27-460.17:
Comment 1 Michael 2021-05-01 12:45:59 UTC
Created attachment 848941 [details]
y2log
Comment 2 Bernhard Wiedemann 2021-05-02 06:05:13 UTC
Last NM update entered Factory already 7d ago:
https://github.com/bmwiedemann/openSUSE/commit/cc4156c0745e470233a529a594f677bf507aba7a

So my guess is, it broke from the yast2 or yast2-network update released 2021-05-01
Comment 3 Michael 2021-05-02 13:37:00 UTC
I forgot to add that switching to NetworkManager works fine via systemctl (systemctl disable wicked && systemctl enable NetworkManager), so as Bernhard said the likely culprit is yast2.
Comment 4 Steffen Winterfeldt 2021-05-03 12:17:19 UTC
Knut, is this a known issue?
Comment 5 Knut Alejandro Anderssen González 2021-05-03 19:57:17 UTC
(In reply to Steffen Winterfeldt from comment #4)
> Knut, is this a known issue?

It is not a problem with NM but with YaST.

Since https://github.com/yast/yast-network/pull/1149, YaST is able to translate the current configuration to NetworkManager.

The problem described is a is a problem with the Desktop augeas lens when a '#' is used as a value.

We chose the Desktop lens because a problem when writing the config but it seems it has the same problem it was fixed in the NetworkManger lens https://github.com/hercules-team/augeas/commit/bf25803ba4b3aa4e81feefb8fc217753ab6005c4

Lets try to move this issue https://github.com/hercules-team/augeas/issues/719 forward
Comment 6 Steffen Winterfeldt 2021-05-12 08:38:22 UTC
*** Bug 1185936 has been marked as a duplicate of this bug. ***
Comment 8 Jason Sikes 2021-06-02 15:50:11 UTC
created request id 895613
Comment 9 Michal Filka 2021-06-07 07:19:23 UTC
Should be fixed since yast2-network 4.4.13. However depends on an (at the time suse specific) augeas networkmanager lens patch to be present. The patch was provided for augeas 1.12.0 and was accepted by the upstream already.
Comment 22 Swamp Workflow Management 2021-10-20 13:19:15 UTC
openSUSE-RU-2021:3480-1: An update that has 10 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1185016,1185524,1186910,1187270,1187512,1188344,1190645,1190739,1190915,1190933
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap 15.3 (src):    augeas-1.10.1-3.3.1, yast2-network-4.3.77-3.16.1
Comment 23 Swamp Workflow Management 2021-10-20 13:21:47 UTC
SUSE-RU-2021:3480-1: An update that has 10 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1185016,1185524,1186910,1187270,1187512,1188344,1190645,1190739,1190915,1190933
CVE References: 
JIRA References: 
Sources used:
SUSE MicroOS 5.1 (src):    augeas-1.10.1-3.3.1
SUSE MicroOS 5.0 (src):    augeas-1.10.1-3.3.1
SUSE Linux Enterprise Module for Basesystem 15-SP3 (src):    augeas-1.10.1-3.3.1, yast2-network-4.3.77-3.16.1
SUSE Linux Enterprise Module for Basesystem 15-SP2 (src):    augeas-1.10.1-3.3.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 24 Swamp Workflow Management 2021-10-31 20:25:56 UTC
openSUSE-RU-2021:1414-1: An update that has 10 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1185016,1185524,1186910,1187270,1187512,1188344,1190645,1190739,1190915,1190933
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap 15.2 (src):    augeas-1.10.1-lp152.4.3.1