Merge ~rjschwei/cloud-init:savePermFallback into cloud-init:master

Proposed by Robert Schweikert
Status: Merged
Approved by: Scott Moser
Approved revision: d265168e405b23476f33a408b9d9b81c0a0ba0d6
Merge reported by: Server Team CI bot
Merged at revision: not available
Proposed branch: ~rjschwei/cloud-init:savePermFallback
Merge into: cloud-init:master
Diff against target: 28 lines (+4/-2)
2 files modified
cloudinit/cmd/tests/test_main.py (+3/-1)
cloudinit/settings.py (+1/-1)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
Ryan Harper Needs Information
Review via email: mp+355027@code.launchpad.net

Commit message

Fall back to root:root on syslog permissions if other options fail.

If the user has removed the default configuration file or does
not set the syslog_fix_perms config option the user still ends
up with a warning on SUSE distributions. Add root:root to the
default builtin config.

Description of the change

Add root:root to the default builtin config for syslog_fix_perms

To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

PASSED: Continuous integration, rev:1e9bf2e6e452158ff147888497b0ff11be62e33f
https://jenkins.ubuntu.com/server/job/cloud-init-ci/329/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Unit & Style Tests
    SUCCESS: Ubuntu LTS: Build
    SUCCESS: Ubuntu LTS: Integration
    IN_PROGRESS: Declarative: Post Actions

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/cloud-init-ci/329/rebuild

review: Approve (continuous-integration)
Revision history for this message
Ryan Harper (raharper) wrote :

"save" or "safe" ?

review: Needs Information
Revision history for this message
Scott Moser (smoser) wrote :

> "save" or "safe" ?

@Robert,

If you just change this to 'safe', then i approve.

If you meant 'save', then please explain.

Revision history for this message
Robert Schweikert (rjschwei) wrote :

Fixed, thanks

Revision history for this message
Server Team CI bot (server-team-bot) wrote :

PASSED: Continuous integration, rev:d265168e405b23476f33a408b9d9b81c0a0ba0d6
https://jenkins.ubuntu.com/server/job/cloud-init-ci/331/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Unit & Style Tests
    SUCCESS: Ubuntu LTS: Build
    SUCCESS: Ubuntu LTS: Integration
    IN_PROGRESS: Declarative: Post Actions

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/cloud-init-ci/331/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/cloudinit/cmd/tests/test_main.py b/cloudinit/cmd/tests/test_main.py
2index e2c54ae..a1e534f 100644
3--- a/cloudinit/cmd/tests/test_main.py
4+++ b/cloudinit/cmd/tests/test_main.py
5@@ -125,7 +125,9 @@ class TestMain(FilesystemMockingTestCase):
6 updated_cfg.update(
7 {'def_log_file': '/var/log/cloud-init.log',
8 'log_cfgs': [],
9- 'syslog_fix_perms': ['syslog:adm', 'root:adm', 'root:wheel'],
10+ 'syslog_fix_perms': [
11+ 'syslog:adm', 'root:adm', 'root:wheel', 'root:root'
12+ ],
13 'vendor_data': {'enabled': True, 'prefix': []}})
14 updated_cfg.pop('system_info')
15
16diff --git a/cloudinit/settings.py b/cloudinit/settings.py
17index ea367cb..b1ebaad 100644
18--- a/cloudinit/settings.py
19+++ b/cloudinit/settings.py
20@@ -44,7 +44,7 @@ CFG_BUILTIN = {
21 ],
22 'def_log_file': '/var/log/cloud-init.log',
23 'log_cfgs': [],
24- 'syslog_fix_perms': ['syslog:adm', 'root:adm', 'root:wheel'],
25+ 'syslog_fix_perms': ['syslog:adm', 'root:adm', 'root:wheel', 'root:root'],
26 'system_info': {
27 'paths': {
28 'cloud_dir': '/var/lib/cloud',

Subscribers

People subscribed via source and target branches