<html><body>
<h3>Evgheni Dereveanchin created OVIRT-1694:</h3>
<pre> Summary: puppet fails to set up sudo on CentOS 7.4
Key: OVIRT-1694
URL: https://ovirt-jira.atlassian.net/browse/OVIRT-1694
Project: oVirt - virtualization made easy
Issue Type: Bug
Components: Hosting
Reporter: Evgheni Dereveanchin
Assignee: infra</pre>
<p>puppet is unable to configure sudo on newly provisioned CentOS 7.4 systems due to changes in /etc/sudoers that augeas cannot parse:</p>
<p>Debug: Augeas[Allow sudo ederevea](provider=augeas): Augeas version 1.4.0 is installed Warning: Augeas[Allow sudo ederevea](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output Debug: Augeas[Allow sudo ederevea](provider=augeas): /augeas/files/etc/sudoers/error = parse_failed Debug: Augeas[Allow sudo ederevea](provider=augeas): /augeas/files/etc/sudoers/error/pos = 2308 Debug: Augeas[Allow sudo ederevea](provider=augeas): /augeas/files/etc/sudoers/error/line = 65 Debug: Augeas[Allow sudo ederevea](provider=augeas): /augeas/files/etc/sudoers/error/char = 12 Debug: Augeas[Allow sudo ederevea](provider=augeas): /augeas/files/etc/sudoers/error/lens = /usr/share/augeas/lenses/dist/sudoers.aug:529.10-.70: Debug: Augeas[Allow sudo ederevea](provider=augeas): /augeas/files/etc/sudoers/error/message = Iterated lens matched less than it should Debug: Augeas[Allow sudo ederevea](provider=augeas): Will attempt to save and only run if files changed Debug: Augeas[Allow sudo ederevea](provider=augeas): sending command ‘set’ with params ["/files/etc/sudoers/spec[user = ‘ederevea']/user", “ederevea”] Debug: Augeas[Allow sudo ederevea](provider=augeas): sending command ‘set’ with params ["/files/etc/sudoers/spec[user = ‘ederevea']/host_group/host", “ALL”] Debug: Augeas[Allow sudo ederevea](provider=augeas): sending command ‘set’ with params ["/files/etc/sudoers/spec[user = 'ederevea']/host_group/command", “ALL”] Debug: Augeas[Allow sudo ederevea](provider=augeas): sending command 'set’ with params ["/files/etc/sudoers/spec[user = 'ederevea']/host_group/command/runas_user", “root”] Debug: Augeas[Allow sudo ederevea](provider=augeas): sending command 'set’ with params ["/files/etc/sudoers/spec[user = 'ederevea']/host_group/command/tag", “PASSWD”] Debug: Augeas[Allow sudo ederevea](provider=augeas): Closed the augeas connection Error: /Stage[main]/Ovirt_infra::User::Ederevea/Ovirt_infra::User[ederevea]/Augeas[Allow sudo ederevea]: Could not evaluate: Saving failed, see debug</p>
<p>commenting out the following line in /etc/sudoers fixes the issue: Defaults match_group_by_gid</p>
<p>The following version is installed: augeas-libs-1.4.0-2.el7_4.1.x86_64</p>
<p>— This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100065)</p>
<img src="https://u4043402.ct.sendgrid.net/wf/open?upn=i5TMWGV99amJbNxJpSp2-2BCmpYLyzYS3r1Q939T2sgz1wikXmRG5w6oX9rTsN7sdmqOkUirF2-2Fze8JDQSRcsCqQVpQROgpylC-2FglHG87E36PZm8oeMjTVbBcNMbwUpJfXfxj9c2eLVy54CcNLhLp8ZhDIULZdekurJYamwDsGtnu5v0-2FHUctpjJvogUEmx9tC-2By-2FWyvboV4EYYhmaTC8ElUBJWpPu-2BnZ5qI1VIuuAwnI-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>