Bug 1249454 - munin-cron fails to copy /etc/munin/static to web directory
munin-cron fails to copy /etc/munin/static to web directory
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: munin (Show other bugs)
21
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: d. johnson
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-02 23:24 EDT by Alex Regan
Modified: 2015-08-03 22:23 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-03 22:23:45 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Alex Regan 2015-08-02 23:24:32 EDT
Description of problem:
munin-cron (/usr/share/munin/munin-html, actually) prints the following:

[ERROR] Could not copy contents from /etc/munin/static to /var/www/webhost/html/munin at /usr/share/perl5/vendor_perl/Munin/Master/HTMLOld.pm line 719.

Version-Release number of selected component (if applicable):

# rpm -qva|grep munin
munin-node-2.0.25-2.fc21.noarch
munin-common-2.0.25-2.fc21.noarch
munin-2.0.25-2.fc21.noarch

How reproducible:
Every five minutes

Steps to Reproduce:
1. Prints from /etc/cron.d/munin
2.
3.

Actual results:


Expected results:
It should not print anything, and the webhost should be updated properly.

Additional info:
Comment 1 d. johnson 2015-08-03 01:11:59 EDT
Did you also change your selinux contexts when you moved the munin directory?

The above uses non-default paths, so I would expect you to have policy issues.
Comment 2 Alex Regan 2015-08-03 11:19:17 EDT
You mean the /etc/static/munin is not the default? It's what I find in the original /etc/munin/munin.conf.

If you mean, /var/www/webhost, then what is the standard path to add new webhosts, or how do I change the selinux context?

Thanks! Really appreciate your help. When it worked in fc20, I figured it was a bug, but apparently the update re-enabled selinux.
Comment 3 d. johnson 2015-08-03 21:42:43 EDT
No, what you are using is /var/www/webhost/html/munin -- this is not the default.

https://docs.fedoraproject.org/en-US/Fedora/22/html-single/SELinux_Users_and_Administrators_Guide/index.html#chap-Managing_Confined_Services-The_Apache_HTTP_Server

Long url, but that is the chapter dealing specifically with selinux and apache.

Ex:

$ matchpathcon /var/www/html/munin/static /var/www/webhost/html/munin
/var/www/html/munin/static      system_u:object_r:httpd_munin_content_t:s0
/var/www/webhost/html/munin     system_u:object_r:httpd_sys_content_t:s0

The above shows the context for the default location, as well as the location you are using.  Different context for both.
Comment 4 Alex Regan 2015-08-03 22:22:58 EDT
Thanks very much.

Note You need to log in before you can comment on or make changes to this bug.