nova.tests.functional.notification_sample_tests.test_instance.TestInstanceNotificationSample.test_volume_swap_server_with_error intermittently fails with IndexError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Matt Riedemann | ||
Rocky |
Fix Committed
|
Medium
|
Matt Riedemann |
Bug Description
Seen here:
2019-01-31 20:37:18.641058 | ubuntu-xenial | 2019-01-31 20:37:17,911 ERROR [nova.compute.
2019-01-31 20:37:18.641191 | ubuntu-xenial | Traceback (most recent call last):
2019-01-31 20:37:18.641370 | ubuntu-xenial | File "nova/compute/
2019-01-31 20:37:18.641508 | ubuntu-xenial | bdm, new_attachment_id, mountpoint)
2019-01-31 20:37:18.641707 | ubuntu-xenial | File "nova/compute/
2019-01-31 20:37:18.641850 | ubuntu-xenial | new_cinfo['serial'] = new_volume_id
2019-01-31 20:37:18.642025 | ubuntu-xenial | TypeError: 'tuple' object does not support item assignment
2019-01-31 20:37:18.642275 | ubuntu-xenial | 2019-01-31 20:37:18,369 ERROR [oslo_messaging
2019-01-31 20:37:18.642402 | ubuntu-xenial | Traceback (most recent call last):
2019-01-31 20:37:18.642783 | ubuntu-xenial | File "/home/
2019-01-31 20:37:18.642931 | ubuntu-xenial | res = self.dispatcher
2019-01-31 20:37:18.643307 | ubuntu-xenial | File "/home/
2019-01-31 20:37:18.643490 | ubuntu-xenial | return self._do_
2019-01-31 20:37:18.643874 | ubuntu-xenial | File "/home/
2019-01-31 20:37:18.644007 | ubuntu-xenial | result = func(ctxt, **new_args)
2019-01-31 20:37:18.644175 | ubuntu-xenial | File "nova/exception
2019-01-31 20:37:18.644314 | ubuntu-xenial | function_name, call_dict, binary, tb)
2019-01-31 20:37:18.644739 | ubuntu-xenial | File "/home/
2019-01-31 20:37:18.644850 | ubuntu-xenial | self.force_
2019-01-31 20:37:18.645209 | ubuntu-xenial | File "/home/
2019-01-31 20:37:18.645365 | ubuntu-xenial | six.reraise(
2019-01-31 20:37:18.645532 | ubuntu-xenial | File "nova/exception
2019-01-31 20:37:18.645668 | ubuntu-xenial | return f(self, context, *args, **kw)
2019-01-31 20:37:18.645864 | ubuntu-xenial | File "nova/compute/
2019-01-31 20:37:18.646051 | ubuntu-xenial | return function(self, context, *args, **kwargs)
2019-01-31 20:37:18.646263 | ubuntu-xenial | File "nova/compute/
2019-01-31 20:37:18.646406 | ubuntu-xenial | kwargs['instance'], e, sys.exc_info())
2019-01-31 20:37:18.646755 | ubuntu-xenial | File "/home/
2019-01-31 20:37:18.646864 | ubuntu-xenial | self.force_
2019-01-31 20:37:18.647224 | ubuntu-xenial | File "/home/
2019-01-31 20:37:18.647379 | ubuntu-xenial | six.reraise(
2019-01-31 20:37:18.647564 | ubuntu-xenial | File "nova/compute/
2019-01-31 20:37:18.647721 | ubuntu-xenial | return function(self, context, *args, **kwargs)
2019-01-31 20:37:18.647894 | ubuntu-xenial | File "nova/compute/
2019-01-31 20:37:18.647997 | ubuntu-xenial | is_cinder_
2019-01-31 20:37:18.648170 | ubuntu-xenial | File "nova/compute/
2019-01-31 20:37:18.648288 | ubuntu-xenial | context, new_attachment_id)
2019-01-31 20:37:18.648676 | ubuntu-xenial | File "/home/
2019-01-31 20:37:18.648784 | ubuntu-xenial | self.force_
2019-01-31 20:37:18.649144 | ubuntu-xenial | File "/home/
2019-01-31 20:37:18.649298 | ubuntu-xenial | six.reraise(
2019-01-31 20:37:18.649473 | ubuntu-xenial | File "nova/compute/
2019-01-31 20:37:18.649606 | ubuntu-xenial | bdm, new_attachment_id, mountpoint)
2019-01-31 20:37:18.649809 | ubuntu-xenial | File "nova/compute/
2019-01-31 20:37:18.649966 | ubuntu-xenial | new_cinfo['serial'] = new_volume_id
2019-01-31 20:37:18.650149 | ubuntu-xenial | TypeError: 'tuple' object does not support item assignment
2019-01-31 20:37:18.650208 | ubuntu-xenial |
2019-01-31 20:37:18.650254 | ubuntu-xenial |
2019-01-31 20:37:18.650337 | ubuntu-xenial | Captured traceback:
2019-01-31 20:37:18.650423 | ubuntu-xenial | ~~~~~~~~~~~~~~~~~~~
2019-01-31 20:37:18.650545 | ubuntu-xenial | Traceback (most recent call last):
2019-01-31 20:37:18.650846 | ubuntu-xenial | File "nova/tests/
2019-01-31 20:37:18.651028 | ubuntu-xenial | tb2 = fake_notifier.
2019-01-31 20:37:18.651153 | ubuntu-xenial | IndexError: list index out of range
The TypeError is expected, it's part of the swap.volume.error notification test. The bug is the IndexError in the expected notifications. We should probably debug that with a patch to check the length and dump the notifications if the length isn't what we expect.
6 hits in 10 days, check and gate, all failures.
Looks like we already hit this once with bug 1704392.