Bug 1002482

Summary: missing = in apc.ini causes warnings in augeas
Product: Red Hat Enterprise Linux 6 Reporter: Niek Beernink <n.beernink>
Component: php-pecl-apcAssignee: Remi Collet <rcollet>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.4CC: chabotc, fedora, rcollet, rpm, sander
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-03 07:16:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
apc.ini diff none

Description Niek Beernink 2013-08-29 09:58:47 UTC
Created attachment 791672 [details]
apc.ini diff

Description of problem:
We manage php-pecl-apc using puppet and modify apc.ini via augeas. Because the ini file is missing 2 = characters for two of the options, augeas can't make sense of the file.

Warning: Augeas[PHP settings](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output
Debug: Augeas[PHP settings](provider=augeas): /augeas/files/etc/php.d/apc.ini/error/pos = 1421
Debug: Augeas[PHP settings](provider=augeas): /augeas/files/etc/php.d/apc.ini/error/line = 33
Debug: Augeas[PHP settings](provider=augeas): /augeas/files/etc/php.d/apc.ini/error/char = 0
Debug: Augeas[PHP settings](provider=augeas): /augeas/files/etc/php.d/apc.ini/error/lens = /usr/share/augeas/lenses/dist/php.aug:44.13-.35:
Debug: Augeas[PHP settings](provider=augeas): /augeas/files/etc/php.d/apc.ini/error/message = Get did not match entire input
Debug: Augeas[PHP settings](provider=augeas): Will attempt to save and only run if files changed

line 33 of apc.ini contains: apc.filters
appending an = fixed the augeas warning. After that auges also complained about line 70: apc.preload_path
appending an = fixed all the warnings for that line as well.

Attached is a diff of the file that causes no augeas warnings.

Can this be fixed in a next release?

Version-Release number of selected component (if applicable):
php-pecl-apc-3.1.9-2.el6.src.rpm

Comment 1 Remi Collet 2013-08-29 10:07:49 UTC
php-pecl-apc is not part of EPEL-6 but of base repository.

So closing as CANTFIX (in Fedora EPEL)

Feel free to open a bug against RHEL, or raise a ticket through your regular Red Hat support channels to make certain  it receives the proper attention and prioritization to assure a timely resolution.

Comment 3 Remi Collet 2013-09-03 07:16:55 UTC
The current APC provided configuration is correctly parsed by PHP. The apc.filters and apc.preload_path directives are set to default values.

The configuration have been fixed in more recent products.
Changing configuration can create issue for people already using this extension.

If I read correctly the problem description, this are only warnings, raised by augeas parser, which can be ignored.

If this issue is critical or in any way time sensitive, please raise a ticket through your regular Red Hat support channels to make certain  it receives the proper attention and prioritization to assure a timely resolution. 

For information on how to contact the Red Hat production support team, please visit:
https://www.redhat.com/support/process/production/#howto