rsync config can be overwritten by cs:nrpe, losing max connections, etc.

Bug #1890760 reported by Paul Collins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Mirror Charm
New
Undecided
Unassigned

Bug Description

cs:nrpe clobbers /etc/rsyncd.conf, which is where the connection limit is set by ubuntu-mirror, as well as timeout and motd file.

Related branches

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

After a lot of close reading of rsyncd.conf and, finally, rsync's code, worked out that a) max connections is a per-module parameter, BUT b) by default it uses a *shared* lock file, which makes it a global limit.

Since it's a module parameter, we can set it in each module (see linked ubuntu-mirror-charm MP).

This leaves the problem of our other rsyncd.conf setting, the genuinely global "motd file". Global options cannot be set from files that are &included. However, they *can* be set from files that are &merged! (See linked nrpe-charm MP.)

description: updated
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.