Merge lp:~verterok/charms/trusty/haproxy/restart-rsyslog-after-install into lp:charms/trusty/haproxy
Proposed by
Guillermo Gonzalez
Status: | Merged |
---|---|
Merged at revision: | 99 |
Proposed branch: | lp:~verterok/charms/trusty/haproxy/restart-rsyslog-after-install |
Merge into: | lp:charms/trusty/haproxy |
Diff against target: |
196 lines (+54/-17) 8 files modified
Makefile (+3/-3) config.yaml (+1/-1) hooks/hooks.py (+7/-1) hooks/tests/test_config_changed_hooks.py (+31/-5) hooks/tests/test_install.py (+5/-5) hooks/tests/test_reverseproxy_hooks.py (+2/-1) hooks/tests/test_website_hooks.py (+1/-1) tests/10_deploy_test.py (+4/-0) |
To merge this branch: | bzr merge lp:~verterok/charms/trusty/haproxy/restart-rsyslog-after-install |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kevin W Monroe | Approve | ||
Andrew McLeod (community) | Approve | ||
Review Queue (community) | automated testing | Approve | |
Cory Johns (community) | Needs Fixing | ||
Review via email: mp+268981@code.launchpad.net |
Commit message
Update default global_log and add a restart of rsyslog at the end of install_hook to make logging work by default.
Description of the change
Due to bug: https:/
This branch restarts rsyslog service at the end of install_hook.
Also, for logging to work out of the box, I had to change the default global_log config to use /dev/log instead of 127.0.0.1
To post a comment you must log in.
Hi Guillermo,
I manually deployed as per the amulet test and: haproxy restart worked, socketfile defined in /etc/rsyslog. d/haproxy. conf exists, /var/log/ haproxy. log exists,
However, I ran into problems with running bundletester against this update:
Checking for Python syntax... er-DsZsMg/ haproxy/ hooks/tests/ test_reversepro xy_hooks. py:17:80: E501 line too long (101 > 79 characters)
/tmp/bundletest
make: *** [lint] Error 1
I fixed this manually and then ran into this:
http:// pastebin. ubuntu. com/12207030/
I managed to get past these issues once (randomly), and although 49-haproxy.conf exists and the restart occurs according to debug logs, there is no socketfile and no /var/log/ haproxy. log.
http:// pastebin. ubuntu. com/12207109/ (clock differences in container and local machine)
Looks like its probably just a test problem which needs to be resolved