Move hugepages mount point to apparmor profile good location

This commit is contained in:
james.page@ubuntu.com 2015-08-13 15:39:13 +01:00
parent f1b4c3ff3f
commit 3aa8c56b4c
2 changed files with 4 additions and 4 deletions

View File

@ -812,7 +812,7 @@ def install_hugepages():
hugepages = int((mem.total * hugepage_multiplier) / hugepage_size)
else:
hugepages = int(hugepage_config)
mnt_point = '/mnt/huge'
mnt_point = '/run/hugepages/kvm'
hugepage_support(
'nova',
mnt_point=mnt_point,

View File

@ -727,7 +727,7 @@ class NovaComputeUtilsTests(CharmTestCase):
utils.install_hugepages()
self.hugepage_support.assert_called_with(
'nova',
mnt_point='/mnt/huge',
mnt_point='/run/hugepages/kvm',
group='root',
nr_hugepages=488,
mount=False,
@ -737,7 +737,7 @@ class NovaComputeUtilsTests(CharmTestCase):
call(['update-rc.d', 'qemu-hugefsdir', 'defaults']),
]
_check_call.assert_has_calls(check_call_calls)
self.fstab_mount.assert_called_with('/mnt/huge')
self.fstab_mount.assert_called_with('/run/hugepages/kvm')
@patch('psutil.virtual_memory')
@patch('subprocess.check_call')
@ -748,7 +748,7 @@ class NovaComputeUtilsTests(CharmTestCase):
utils.install_hugepages()
self.hugepage_support.assert_called_with(
'nova',
mnt_point='/mnt/huge',
mnt_point='/run/hugepages/kvm',
group='root',
nr_hugepages=2048,
mount=False,