diff --git a/nova/keymgr/conf_key_mgr.py b/nova/keymgr/conf_key_mgr.py index 97f8a788ec87..a9fe53cf26ff 100644 --- a/nova/keymgr/conf_key_mgr.py +++ b/nova/keymgr/conf_key_mgr.py @@ -129,3 +129,13 @@ class ConfKeyManager(key_manager.KeyManager): reason="cannot delete non-existent key") LOG.warning("Not deleting key %s", managed_object_id) + + def add_consumer(self, context, managed_object_id, consumer_data): + raise NotImplementedError( + 'ConfKeyManager does not implement adding consumers' + ) + + def remove_consumer(self, context, managed_object_id, consumer_data): + raise NotImplementedError( + 'ConfKeyManager does not implement removing consumers' + ) diff --git a/nova/tests/functional/libvirt/test_vtpm.py b/nova/tests/functional/libvirt/test_vtpm.py index 3b5ae9a60f0d..8c0fd9dbe148 100644 --- a/nova/tests/functional/libvirt/test_vtpm.py +++ b/nova/tests/functional/libvirt/test_vtpm.py @@ -109,6 +109,16 @@ class FakeKeyManager(key_manager.KeyManager): del self._passphrases[managed_object_id] + def add_consumer(self, context, managed_object_id, consumer_data): + raise NotImplementedError( + 'FakeKeyManager does not implement adding consumers' + ) + + def remove_consumer(self, context, managed_object_id, consumer_data): + raise NotImplementedError( + 'FakeKeyManager does not implement removing consumers' + ) + class VTPMServersTest(base.ServersTestBase):