diff options
author | Arne Wiebalck <Arne.Wiebalck@cern.ch> | 2021-02-22 13:38:01 +0100 |
---|---|---|
committer | Ruby Loo <rloo@verizonmedia.com> | 2021-04-12 20:22:32 +0000 |
commit | 7096baea780b3f858977cbe69fb3595d58d29f67 (patch) | |
tree | 93663745222614658438379e5465a5227a02472e /ironic/tests/unit/conductor/test_manager.py | |
parent | c72df98dafcc046d70dd98a777b80e1e79c31ba6 (diff) | |
download | ironic-7096baea780b3f858977cbe69fb3595d58d29f67.tar.gz |
Lazy-load node details from the DBstein-eolstable/stein
In order to reduce the load on the database backend, only lazy-load
a node's ports, portgroups, volume_connectors, and volume_targets.
With the power-sync as the main user, this change should reduce the
number of DB operations by two thirds roughly.
Change-Id: Id9a9a53156f7fd866d93569347a81e27c6f0673c
(cherry picked from commit 82cab603bbb21d81769cdc4f50d4fa445d026e5c)
Diffstat (limited to 'ironic/tests/unit/conductor/test_manager.py')
-rw-r--r-- | ironic/tests/unit/conductor/test_manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic/tests/unit/conductor/test_manager.py b/ironic/tests/unit/conductor/test_manager.py index 496d12119..3271be1c3 100644 --- a/ironic/tests/unit/conductor/test_manager.py +++ b/ironic/tests/unit/conductor/test_manager.py @@ -5135,9 +5135,9 @@ class ConsoleTestCase(mgr_utils.ServiceSetUpMixin, db_base.DbTestCase): console_enabled=True) self._start_service() self.service.set_console_mode(self.context, node.uuid, True) - self._stop_service() self.assertFalse(mock_sc.called) self.assertFalse(mock_notify.called) + self._stop_service() @mock.patch.object(fake.FakeConsole, 'stop_console', autospec=True) @mock.patch.object(notification_utils, 'emit_console_notification') |