Details
-
Type:
Bug
-
Status: Done
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.7.2
-
Component/s: Promise type: files
-
Labels:None
Description
I have these promises...
<pre>
range_class_cf3_promises_all_syslog.linux::
"ingress_windows_exists" expression => fileexists("/var/log/ingress-windows");
!ingress_windows_exists.range_class_cf3_promises_all_syslog.linux::
"/usr/bin/mkfifo /var/log/ingress-windows"
comment => "configure_syslog_ng_conf mkfifo ingress-windows";
</pre>
This creates a named pipe if it doesn't exist.
<pre>
- ls -l /var/log/ingress-windows
prw------- 1 root root 0 Jan 14 06:47 /var/log/ingress-windows
</pre>
I then have this promise to change ownership of the named pipe. This hangs cf-agent execution.
<pre>
files:
range_class_cf3_promises_all_syslog.linux::
"/var/log/ingress-windows"
handle => "linux_syslog_ingress_windows",
create => "false",
perms => mog("0644", "root", "uucp");
</pre>
Executing the bundle, showing the hang. cf-exced kills the agent here. The agent is never able to "get past" this promise.
<pre>
- /var/cfengine/bin/cf-agent -I -K -b configure_syslog_ng_conf
2015-03-04T16:45:17+0000 info: Using command line specified bundlesequence
2015-03-04T16:45:17+0000 info: /default/configure_syslog_ng_conf/files/'/var/log/ingress-windows'[0]: Group of '/var/log/ingress-windows' was 0, setting to 14
^C
#
</pre>
Attachments
Issue Links
- is duplicated by
-
CFE-1782 cant change permission on file socket or owner
-
- Done
-