Merge ~ahasenack/ubuntu/+source/frr:kinetic-syslog-user-not-present into ubuntu/+source/frr:ubuntu/kinetic-devel
Proposed by
Andreas Hasenack
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | git-ubuntu bot | ||||
Approved revision: | not available | ||||
Merged at revision: | 641e1301cf43ad05cf1245c5965ea3e632adf961 | ||||
Proposed branch: | ~ahasenack/ubuntu/+source/frr:kinetic-syslog-user-not-present | ||||
Merge into: | ubuntu/+source/frr:ubuntu/kinetic-devel | ||||
Diff against target: |
69 lines (+30/-20) 2 files modified
debian/changelog (+8/-0) debian/frr.postinst (+22/-20) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
git-ubuntu bot | Approve | ||
Lucas Kanashiro (community) | Approve | ||
Canonical Server Reporter | Pending | ||
Review via email: mp+432330@code.launchpad.net |
Description of the change
Don't take any action if the syslog user does not exist, as that is a strong indication of local configuration changes, and our chown (later on) would not work anyway.
PPA: https:/
The linked bug has the SRU details filled in, including test cases and other information like a justification.
Diff review hint: use "git show -w HEAD^" to ignore whitespace changes.
To post a comment you must log in.
Thanks for the fix Andreas. The SRU bug described well the issue and how to reproduce/test it. I am not sure what was your rationale to rule out the creation of syslog user in postinst which would be the other possible option, however, I agree with the proposed solution, being more cautious and checking if the user exists before using it seems reasonable to me.
I did test it in a kinetic container and the package in your PPA does fix the issue (following the Test Plan section of the bug). I am not testing all the others since the change is pretty much the same.
FWIW DEP-8 tests are also passing:
autopkgtest [16:23:45]: @@@@@@@ @@@@@@@ @@@@@@ summary
zebra-lo PASS
bgpd-snmp-rpki PASS
py-frr-reload PASS