Log notifications if assertion in _test_live_migration_force_complete fails

I'm seeing this check intermittently fail with:

  MismatchError: 6 != 7

Which is hard to debug without knowing what the other
unexpected notification is, so if we fails this assertion
log the notifications that we got.

Change-Id: I4b6a7edeb59d447543498e68a0571696764010a3
Related-Bug: #1823215
This commit is contained in:
Matt Riedemann 2019-04-04 17:58:00 -04:00
parent 8856009445
commit 78e04bbe2e
1 changed files with 2 additions and 1 deletions

View File

@ -308,7 +308,8 @@ class TestInstanceNotificationSampleWithMultipleCompute(
# 3. instance.live_migration_pre.end
# 4. instance.live_migration_force_complete.start
# 5. instance.live_migration_force_complete.end
self.assertEqual(6, len(fake_notifier.VERSIONED_NOTIFICATIONS))
self.assertEqual(6, len(fake_notifier.VERSIONED_NOTIFICATIONS),
fake_notifier.VERSIONED_NOTIFICATIONS)
self._verify_notification(
'instance-live_migration_force_complete-start',
replacements={