Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1917461

Summary: etckeeper dnf plugin doesn't halt dnf on unclean /etc
Product: [Fedora] Fedora EPEL Reporter: David Allsopp <David.Allsopp>
Component: etckeeperAssignee: Thomas Moschny <thomas.moschny>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: epel8CC: thomas.moschny
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Allsopp 2021-01-18 14:28:19 UTC
Description of problem:

When configured to avoid committing changes to /etc before installation, the etckeeper dnf plugin warns that /etc is not clean but allows dnf to proceed anyway. It should abort the dnf install, as the EPEL 7 (yum) version does.

Version-Release number of selected component (if applicable): 1.18.14-1

How reproducible: Every time.

Steps to Reproduce:
1. Ensure AVOID_COMMIT_BEFORE_INSTALL=1 uncommented in /etc/etckeeper/etckeeper.conf
2. Touch a new file or edit something in /etc - etckeeper unclean should exit with code 0
3. Run dnf install for a package

Actual results:

Last metadata expiration check: 0:27:06 ago on Mon 18 Jan 2021 13:59:04 GMT.
"etckeeper pre-install" failed (exit code 1)

and dnf proceeds as normal with the installation.

Expected results:

Equivalent behaviour of the yum plugin in EPEL 7:

etckeeper: pre transaction commit

** etckeeper detected uncommitted changes in /etc prior to yum run
** Aborting yum run. Manually commit and restart.

Additional info:

Looks like something's wrong with the python3 translation of the plugin?