diff --git a/hooks/quantum_utils.py b/hooks/quantum_utils.py index d369d9ca..3be8aa2b 100644 --- a/hooks/quantum_utils.py +++ b/hooks/quantum_utils.py @@ -854,7 +854,7 @@ def git_pre_install(): add_user_to_group('neutron', 'neutron') for d in dirs: - mkdir(d, owner='neutron', group='neutron', perms=0700, force=False) + mkdir(d, owner='neutron', group='neutron', perms=0755, force=False) for l in logs: write_file(l, '', owner='neutron', group='neutron', perms=0644) diff --git a/unit_tests/test_quantum_utils.py b/unit_tests/test_quantum_utils.py index 63bfbde0..9d7615a3 100644 --- a/unit_tests/test_quantum_utils.py +++ b/unit_tests/test_quantum_utils.py @@ -723,19 +723,19 @@ class TestQuantumAgentReallocation(CharmTestCase): add_user_to_group.assert_called_with('neutron', 'neutron') expected = [ call('/etc/neutron', owner='neutron', - group='neutron', perms=0700, force=False), + group='neutron', perms=0755, force=False), call('/etc/neutron/rootwrap.d', owner='neutron', - group='neutron', perms=0700, force=False), + group='neutron', perms=0755, force=False), call('/etc/neutron/plugins', owner='neutron', - group='neutron', perms=0700, force=False), + group='neutron', perms=0755, force=False), call('/etc/nova', owner='neutron', - group='neutron', perms=0700, force=False), + group='neutron', perms=0755, force=False), call('/var/lib/neutron', owner='neutron', - group='neutron', perms=0700, force=False), + group='neutron', perms=0755, force=False), call('/var/lib/neutron/lock', owner='neutron', - group='neutron', perms=0700, force=False), + group='neutron', perms=0755, force=False), call('/var/log/neutron', owner='neutron', - group='neutron', perms=0700, force=False), + group='neutron', perms=0755, force=False), ] self.assertEquals(mkdir.call_args_list, expected) expected = [