export dir and host__*.cfg created read-only

Bug #1695108 reported by Paul Collins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NRPE Charm
Fix Released
Undecided
Unassigned

Bug Description

    dr-xr-xr-x 2 root root 4096 Jun 1 22:53 /var/lib/nagios/export/
    -r--r--r-- 1 root root 294 Jun 1 22:53 host__is-stagingstack-mojo-is-vault-ps45-vault-0.cfg

This makes them awkward to manage as the sync processes we're using do not run as root.

Please consider setting "perms" to include write bits in the appropriate mkdir/render_template calls; the defaults are for read-only:

hooks/charmhelpers/core/host.py:467:def mkdir(path, owner='root', group='root', perms=0o555, force=False):
hooks/charmhelpers/core/services/helpers.py:236:class TemplateCallback(ManagerCallback):
hooks/charmhelpers/core/services/helpers.py:254: def __init__(self, source, target,
hooks/charmhelpers/core/services/helpers.py:255: owner='root', group='root', perms=0o444,

Related branches

Paul Gear (paulgear)
Changed in nrpe-charm:
status: New → Triaged
Revision history for this message
Paul Gear (paulgear) wrote :

Merged fix; will push to cs:~nrpe-charmers/nrpe candidate channel shortly.

Changed in nrpe-charm:
status: Triaged → Fix Committed
Revision history for this message
Paul Gear (paulgear) wrote :

Released to candidate channel as https://jujucharms.com/u/nrpe-charmers/nrpe/13

Revision history for this message
Paul Collins (pjdc) wrote :

Per IRC, nrpe-13 LGTM.

Revision history for this message
Tom Haddon (mthaddon) wrote :

Confirmed this is in cs:nrpe, marking fix released.

Changed in nrpe-charm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.