pool_mgm requires /etc/haproxy directory in daemon mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libra |
Fix Released
|
Medium
|
David Shrewsbury |
Bug Description
I see this error when running pool_mgm in daemon mode, but not with the -n argument.
The directory is not specified in any config file / it doesn't seem an obvious choice as the pool_mgm doesn't directly manipulate haproxy, but rather spins nodes and registers them with the api server.
Not necessarily a bug, but documenting this as it seems like odd behavior.
libra_pool_mgm -c /etc/libra.cfg
Traceback (most recent call last):
File "/usr/local/
load_
File "/usr/local/
with context:
File "/usr/local/
self.open()
File "/usr/local/
change_
File "/usr/local/
raise error
daemon.
Changed in libra: | |
milestone: | none → 2.0 |
Changed in libra: | |
status: | Fix Committed → Fix Released |
Pool mgr should be setting a different working directory in mgm.py:
context = daemon. DaemonContext(
working_ directory= '/etc/haproxy' ,
umask= 0o022,
pidfile= daemon. pidfile. TimeoutPIDLockF ile(args. pid),
files_ preserve= [logger. handlers[ 0].stream]
)