diff --git a/hooks/neutron_api_utils.py b/hooks/neutron_api_utils.py index 4edc2785..0739e33e 100644 --- a/hooks/neutron_api_utils.py +++ b/hooks/neutron_api_utils.py @@ -357,7 +357,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=0600) diff --git a/unit_tests/test_neutron_api_utils.py b/unit_tests/test_neutron_api_utils.py index af0083b5..b5760c0c 100644 --- a/unit_tests/test_neutron_api_utils.py +++ b/unit_tests/test_neutron_api_utils.py @@ -228,11 +228,11 @@ class TestNeutronAPIUtils(CharmTestCase): add_user_to_group.assert_called_with('neutron', 'neutron') expected = [ 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 = [