Bug 1174680 - [Build 20200728] yast sudo - syntax error in /etc/sudoers.YaST2.new
[Build 20200728] yast sudo - syntax error in /etc/sudoers.YaST2.new
Status: CONFIRMED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: YaST2
Current
Other Other
: P2 - High : Normal (vote)
: ---
Assigned To: YaST Team
Jiri Srain
https://trello.com/c/Wj8zx82g
https://openqa.opensuse.org/tests/134...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-07-29 13:50 UTC by Dominique Leuenberger
Modified: 2022-10-26 15:55 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Leuenberger 2020-07-29 13:50:49 UTC
## Observation

openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-yast2_gui@64bit fails in
[yast2_control_center](https://openqa.opensuse.org/tests/1346585/modules/yast2_control_center/steps/44)

The log file contains this (hopefully relevant) excerpt

>2020-07-29 08:55:45 <0> susetest(10814) [libscr] SCR.cc(SCRWrite2):67 Running SCR::Write (2 args)  on SCR agent 0x55c9153b35e0
2020-07-29 08:55:45 <0> susetest(10814) [scr] ScriptingAgent.cc(executeSubagentCommand):589 ScriptingAgent::executeSubagentCommand: Write
2020-07-29 08:55:45 <0> susetest(10814) [scr] ScriptingAgent.cc(executeSubagentCommand):590 path: .sudo
2020-07-29 08:55:45 <0> susetest(10814) [scr] ScriptingAgent.cc(executeSubagentCommand):591 arg: nil
2020-07-29 08:55:45 <0> susetest(10814) [scr] ScriptingAgent.cc(executeSubagentCommand):592 opt: null
2020-07-29 08:55:46 <3> susetest(10822) [ag_etc_sudoers] Syntax error in /etc/sudoers.YaST2.new
2020-07-29 08:55:46 <0> susetest(10814) [libycp] parser.yy(yyparse):404 


## Test suite description
Maintainer: qsf-y

Test for yast2 UI, GUI only. Running on created gnome images which provides both text console for ncurses UI tests as well as the gnome environment for the GUI tests.

Temporarily added YAST2_GUI_TERMINATE_PREVIOUS_INSTANCES to see if helps. This variable triggers code which terminates all yast2 processes before starting new one. (see poo#26104).


## Reproducible

Fails since (at least) Build [20200728](https://openqa.opensuse.org/tests/1346327)


## Expected result

Last good: [20200727](https://openqa.opensuse.org/tests/1345093) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=opensuse&flavor=DVD&machine=64bit&test=yast2_gui&version=Tumbleweed)
Comment 1 Ancor Gonzalez Sosa 2020-07-29 13:53:26 UTC
Maybe another reason/excuse to work on this?
https://trello.com/c/Wj8zx82g/3852-yast-sudo-new-better-parser
Comment 2 Steffen Winterfeldt 2020-07-30 10:21:45 UTC
There's a new @include (instead of #include) in sudo 1.9.1. This means we can
no longer ingnore it.


Adding to YaST Scrum board (using the mentioned trello board).
Comment 14 Dominique Leuenberger 2022-10-26 15:55:09 UTC
This was fixed by yast2-sudo from what I can see (bug ref was not mentioned though)

Thu Oct  8 14:43:17 UTC 2020 - Josef Reidinger <jreidinger@suse.com>

- Support @include(-dir) directives
- Support alternative name Cmd_Alias
- report properly if yast2-sudo cannot read some configuration
- improve error report if syntax failed after write
  (related to bsc#1156929)
- 4.3.0