Bug 553385
Summary: | Failure trying to set configuration parameters on Postfix child resource "Access File" | ||||||
---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Jeff Weiss <jweiss> | ||||
Component: | Configuration | Assignee: | RHQ Project Maintainer <rhq-maint> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Jeff Weiss <jweiss> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 1.4 | CC: | dajohnso, hbrock, hrupp, jshaughn | ||||
Target Milestone: | --- | Keywords: | SubBug | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: |
RHEL5.3, git hash 9adb2903b6f19aaaf09c4b837acaf574409ff998 (on rhq-linux-config branch)
|
|||||
Last Closed: | 2014-05-23 20:50:02 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 545537, 565628 | ||||||
Attachments: |
|
Created attachment 382313 [details]
My existing /etc/postfix/access file
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs. keyword: new = Tracking + FutureFeature + SubBug making sure we're not missing any bugs in rhq_triage Lowering severity/priority - not an enterprise plugin |
Description of problem: Looks to be an augeas related problem trying to save a config change to postfix's access file. Version-Release number of selected component (if applicable): [jonqa@jweiss-rhel3 bin]$ rpm -q augeas augeas-0.6.0-2.el5 How reproducible: Always (with this environment) Steps to Reproduce: 1. Take postfix server into inventory 2. Navigate to Postfix server's "Access File" child. 3. Edit the configuration, add a new property set, the 3 fields set to: "Ip address 1.2.3" "ACCEPT" [not set] 4. Save the configuration Actual results: The configuration update fails. Clicking on the "Failure" link shows (after unescaping the bad encoding): > java.lang.RuntimeException: File "/etc/postfix/access/error/path":/files/etc/postfix/access/00File "/etc/postfix/access/error/lens":/usr/share/augeas/lenses/dist/postfix_access.aug:22.17-25.70:File "/etc/postfix/access/error/message":Failed to match { /pattern/ = /[^- > #] / }{ /action/ = /[^- > #] / }{ /parameters/ = /[^- > #]|[^- > #]([^- > #]| > [ ] )*[^- > #]/ }? with tree { "pattern" = "Ip address 1.2.3" } { "action" = "ACCEPT" }at org.rhq.plugins.augeas.AugeasConfigurationComponent.saveConfigurationFiles(AugeasConfigurationComponent.java:615)at org.rhq.plugins.augeas.AugeasConfigurationComponent.updateResourceConfiguration(AugeasConfigurationComponent.java:179)at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:616)at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)at java.util.concurrent.FutureTask.run(FutureTask.java:166)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)at java.lang.Thread.run(Thread.java:636)Caused by: net.augeas.AugeasException: save failedat net.augeas.Augeas.processLastCall(Augeas.java:396)at net.augeas.Augeas.save(Augeas.java:338)at org.rhq.plugins.augeas.AugeasConfigurationComponent.saveConfigurationFiles(AugeasConfigurationComponent.java:613)... 10 more Expected results: Configuration update completes successfully. Additional info: See RHQ-665 for the bug on error message text encoding problem.