augeas icon indicating copy to clipboard operation
augeas copied to clipboard

yum lens fails for exclude with "Failed to match tree under /files/etc/yum.conf/main"

Open timmooney opened this issue 4 years ago • 1 comments

When trying to use augeas via puppet to add a new 'exclude' line with multiple entries to /etc/yum.conf's main section, augeas fails with the message:

Failed to match tree under /files/etc/yum.conf/main

I've reviewed old yum-related augeas issues #487 and #654 , and though closely related, I don't think this is quite the same issue.

This exact same issue has been reported by other people, but they've reported it against other products or in other forums, rather than here:

same issue reported against voxpupuli/puppet-yum same issue asked about on stackoverflow

The Stackoverflow link is especially interesting, because the person asking the question tested using an invalid keyword (excludes, rather than exclude) and augeas can set that.

I think this was working at one point in the past; we've used augeas with puppet for more than 5 years, and my recollection is that setting an 'exclude' with multiple items was possible in the past.

The version of augeas we have (for RHEL 6.x and 7.x) is 1.12.0, bundled with OpenSource puppet 6.14.0.

Please let me know if there's anything else I can provide that would be at all helpful. I'm happy to provide any other information you need, but both of the links I referenced have provided quite good info already.

timmooney avatar Apr 01 '20 20:04 timmooney

Any update? Problem confirmed on RHEL 8 with OpenSOurce Puppet 6.22.1

Falkor avatar Jun 17 '21 07:06 Falkor