|
Bugzilla – Full Text Bug Listing |
| Summary: | Yast2 Disk masks all systemd x.mount units | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Distribution | Reporter: | itteam itteam <itteam> |
| Component: | YaST2 | Assignee: | YaST Team <yast-internal> |
| Status: | RESOLVED FIXED | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | ancor, aschnell, dgonzalez |
| Version: | Leap 15.3 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | openSUSE Leap 15.3 | ||
| URL: | https://trello.com/c/Cs2LigI1 | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
journal
y2log |
||
|
Description
itteam itteam
2021-10-05 16:54:08 UTC
(In reply to itteam itteam from comment #0) > > So a few questions are raised, namely why is yast2 disk masking the x.mount > units, is this expected, and is it supposed to leave them in this state? No, is not supposed to leave them in that state. It should have unmasked them on quitting. Please attach the YaST logs to debug why that didn't happen. Created attachment 853015 [details]
y2log
YaST2 log as requested
(In reply to itteam itteam from comment #2) > Created attachment 853015 [details] > y2log > > YaST2 log as requested Relevant parts. When the Partitioner starts: > y2storage/inhibitors.rb(inhibit):32 inhibit > set udev ANACONDA property > Executing "/usr/bin/udevadm control --property\=ANACONDA\=yes". > Status: 0 > > inhibitors/udisks.rb(inhibit):30 inhibit udisks > inhibit udisks failed The name org.freedesktop.UDisks was not provided by any .service files; caused by 3 sender=org.freedesktop.DBus -> dest=:1.18 serial=3 reply_serial=3 path=; interface=; member= error_name=org.freedesktop.DBus.Error.ServiceUnknown > > inhibitors/systemd_units.rb(inhibit):28 mask systemd units > Executing "/usr/lib/YaST2/bin/mask-systemd-units --mask". > Error output: /usr/bin/systemctl --runtime mask -- '\x2esnapshots.mount' 'boot-grub2-i386\x2dpc.mount' 'boot-grub2-x86_64\x2defi.mount' ��� home.mount opt.mount root.mount srv.mount ��� tmp.mount usr-local.mount ��� ��� ��� var-lock.mount var-run.mount var.mount 'dev-disk-by\x2did-dm\x2dname\x2dsystem\x2dswap.swap' 'dev-disk-by\x2did-dm\x2duuid\x2dLVM\x2dPnp3nScjnUuDzX0DYgfil6F0lPEn549s3JgyVwLOp4GUeNfLLmxBU6neU7IpkVOc.swap' 'dev-disk-by\x2duuid-09c0242a\x2d58b9\x2d4867\x2dac0b\x2df9b2e20092bc.swap' 'dev-dm\x2d1.swap' 'dev-mapper-system\x2dswap.swap' dev-system-swap.swap > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Unit \xe2\x97\x8f.service does not exist, proceeding anyway. > Error output: Unit \xe2\x97\x8f.service does not exist, proceeding anyway. > Error output: Unit \xe2\x97\x8f.service does not exist, proceeding anyway. > Error output: Unit \xe2\x97\x8f.service does not exist, proceeding anyway. > Error output: Unit \xe2\x97\x8f.service does not exist, proceeding anyway. > Error output: Created symlink /run/systemd/system/\x2esnapshots.mount ��� /dev/null. > Error output: Created symlink /run/systemd/system/boot-grub2-i386\x2dpc.mount ��� /dev/null. > Error output: Created symlink /run/systemd/system/boot-grub2-x86_64\x2defi.mount ��� /dev/null. > Error output: Created symlink /run/systemd/system/\xe2\x97\x8f.service ��� /dev/null. > Error output: Created symlink /run/systemd/system/home.mount ��� /dev/null. > Error output: Created symlink /run/systemd/system/opt.mount ��� /dev/null. > Error output: Created symlink /run/systemd/system/root.mount ��� /dev/null. > Error output: Created symlink /run/systemd/system/srv.mount ��� /dev/null. > Error output: Created symlink /run/systemd/system/tmp.mount ��� /dev/null. > Error output: Created symlink /run/systemd/system/usr-local.mount ��� /dev/null. > Error output: Created symlink /run/systemd/system/var-lock.mount ��� /dev/null. > Error output: Created symlink /run/systemd/system/var-run.mount ��� /dev/null. > Error output: Created symlink /run/systemd/system/var.mount ��� /dev/null. > Error output: Created symlink /run/systemd/system/dev-disk-by\x2did-dm\x2dname\x2dsystem\x2dswap.swap ��� /dev/null. > Error output: Created symlink /run/systemd/system/dev-disk-by\x2did-dm\x2duuid\x2dLVM\x2dPnp3nScjnUuDzX0DYgfil6F0lPEn549s3JgyVwLOp4GUeNfLLmxBU6neU7IpkVOc.swap ��� /dev/null. > Error output: Created symlink /run/systemd/system/dev-disk-by\x2duuid-09c0242a\x2d58b9\x2d4867\x2dac0b\x2df9b2e20092bc.swap ��� /dev/null. > Error output: Created symlink /run/systemd/system/dev-dm\x2d1.swap ��� /dev/null. > Error output: Created symlink /run/systemd/system/dev-mapper-system\x2dswap.swap ��� /dev/null. > Error output: Created symlink /run/systemd/system/dev-system-swap.swap ��� /dev/null. > Status: 0 When the Partitioner quits: > y2storage/inhibitors.rb(uninhibit):40 uninhibit > unmask systemd units > Executing "/usr/lib/YaST2/bin/mask-systemd-units --unmask". > Error output: /usr/bin/systemctl --runtime unmask -- ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Invalid unit name "���" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). > Error output: Removed /run/systemd/system/\xe2\x97\x8f.service. > Status: 0 > > inhibitors/mdadm_auto_assembly.rb(uninhibit):41 unset udev ANACONDA property > Executing "/usr/bin/udevadm control --property\=ANACONDA\=". > Status: 0 (In reply to Ancor Gonzalez Sosa from comment #3) > > Error output: /usr/bin/systemctl --runtime unmask -- ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� ��� That's a clearly malformed command! Hi there! It looks like a problem with the systemctl list-units output, which (in some cases) includes some glyphs to represent the status of the unit. Thus, when a unit is `masked` or `not-found` a ● (dot) is shown (at least when using systemd >= 246). > > $ systemctl list-units --full --all --type mount --no-legend > -.mount loaded active mounted Root Mount > ● boot-efi.mount masked active mounted /boot/efi > Thus, `systemctl --runtime (un)mask` call at [1] is receiving the glyph instead the unit name, which cause the issue. I found a patch in systemd repository [2] which should fix the issue by hiding the glyph when --no-legend flag is provided, but I'm not sure if it has arrived to SLE yet. According to my tests, I'd say no. Fortunately, adding the --plain flag to the command makes the output looks like before. I have tested it in SLE-15-SP3 and Tumbleweed and it works. Patch [3] is on the way, under review. [1] https://github.com/yast/yast-storage-ng/blob/5a02f4a9cf8750d1a8a2859498042a06968e2454/src/bin/mask-systemd-units#L41 [2] https://github.com/systemd/systemd/pull/15081 [3] https://github.com/yast/yast-storage-ng/pull/1234 SUSE-RU-2021:3536-1: An update that has three recommended fixes can now be installed. Category: recommended (low) Bug References: 1187270,1191109,1191347 CVE References: JIRA References: Sources used: SUSE Linux Enterprise Module for Basesystem 15-SP3 (src): yast2-storage-ng-4.3.56-3.12.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. openSUSE-RU-2021:3536-1: An update that has three recommended fixes can now be installed. Category: recommended (low) Bug References: 1187270,1191109,1191347 CVE References: JIRA References: Sources used: openSUSE Leap 15.3 (src): yast2-storage-ng-4.3.56-3.12.1 This is already fixed, just the bug was never closed. |