Project

General

Profile

Actions

Bug #22060

open

file_augeas_commands method fails to detect failures and changes

Added by Félix DALLIDET about 2 years ago. Updated 5 months ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Generic methods
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
I dislike using that feature
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
47
Name check:
To do
Fix check:
To do
Regression:
No

Description

The method uses the execresult keyword to call augtool and captures its output to the given variable name.
But the method always return a success even when executing augeas commands with syntax errors.
execresult is not able to catch the exit code, we should at least properly document that the method only reports success and try to fix it in 7.3 when we should be able to
better interact with third-party tools using custom resources.

To reproduce, just try to execute the method with:

set /files/etc/network/interfaces/autooo[child::1 = 'vmbr0']/1 vmbr0
save

See how the report is still a success.


Related issues 1 (0 open1 closed)

Has duplicate Rudder - Bug #22059: file_augeas_commands method fails to detect failures and changesRejectedActions
Actions

Also available in: Atom PDF