Description of problem: Some warning message is seen when embedding 10gen-mms-agent-0.1 to app. The following is from mcollective log message: D, [2012-03-16T01:38:06.333764 #4844] DEBUG -- : libra.rb:61:in `cartridge_do_action' cartridge_do_action validation = embedded/10gen-mms-agent-0.1 configure 'phptest' 'jialiu' '3cb10c7f29eb4afd90f8c95aae22e4fa' D, [2012-03-16T01:38:06.783265 #4844] DEBUG -- : libra.rb:102:in `cartridge_do_action' cartridge_do_action (0) ------ sed: warning: failed to set default file creation context to unconfined_u:object_r:libra_var_lib_t:s0:c0,c1000: Permission deniedsed: warning: failed to set default file creation context to unconfined_u:object_r:libra_var_lib_t:s0:c0,c1000: Permission deniedCLIENT_RESULT: CLIENT_RESULT: 10gen-mms-agent-0.1 added. CLIENT_RESULT: Please configure your mongodb host at https://mms.10gen.com/ to start monitoring performance data. CLIENT_RESULT: CLIENT_RESULT: Monitoring URL: https://mms.10gen.com/ APP_INFO: Monitoring URL: https://mms.10gen.com/ ------) Try to do some git commit, this warning is also printed out. Version-Release number of selected component (if applicable): devenv_stage_144 How reproducible: Always Steps to Reproduce: 1. Create app 2. Embed mongodb 3. Embed 10gen-mms-agent-0.1 4. Do some git push. Actual results: Some warning message is seen: $ echo aa>>README ; git commit -a -mx; git push [master 8d6f2d5] x 1 files changed, 1 insertions(+), 0 deletions(-) <--snip> remote: Stopping application... remote: Waiting for stop to finish remote: Waiting for stop to finish remote: Done remote: ~/git/phptest.git ~/git/phptest.git remote: ~/git/phptest.git remote: Running .openshift/action_hooks/pre_build remote: Running .openshift/action_hooks/build remote: Running .openshift/action_hooks/deploy remote: Starting application... remote: MongoDB already running remote: sed: warning: failed to set default file creation context to unconfined_u:object_r:libra_var_lib_t:s0:c0,c1000: Permission deniedsed: warning: failed to set default file creation context to unconfined_u:object_r:libra_var_lib_t:s0:c0,c1000: Permission deniedDone remote: Running .openshift/action_hooks/post_deploy To ssh://3cb10c7f29eb4afd90f8c95aae22e4fa.rhcloud.com/~/git/phptest.git/ 7b1e34e..8d6f2d5 master -> master Expected results: No any warning message. Additional info:
The selinux policies have been modified by Dan Walsh to allow setting the context for the file being modified by the sed command.
Verified this bug with devenv_1679, and PASS. No warning message is seen now.