IndexError traceback in test_boot_reschedule_fill_provider_mapping_raises run

Bug #1829629 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Low
Chason Chan

Bug Description

Seeing this which is low priority but clutters up the logs so we should clean it up:

{7} nova.tests.functional.test_servers.PortResourceRequestReSchedulingTest.test_boot_reschedule_fill_provider_mapping_raises [6.791333s] ... ok

Captured stderr:
~~~~~~~~~~~~~~~~
    b'Traceback (most recent call last):'
    b' File "/home/osboxes/git/nova/.tox/functional-py36/lib/python3.6/site-packages/eventlet/hubs/hub.py", line 460, in fire_timers'
    b' timer()'
    b' File "/home/osboxes/git/nova/.tox/functional-py36/lib/python3.6/site-packages/eventlet/hubs/timer.py", line 59, in __call__'
    b' cb(*args, **kw)'
    b' File "/home/osboxes/git/nova/.tox/functional-py36/lib/python3.6/site-packages/eventlet/greenthread.py", line 219, in main'
    b' result = function(*args, **kwargs)'
    b' File "/home/osboxes/git/nova/nova/utils.py", line 800, in context_wrapper'
    b' return func(*args, **kwargs)'
    b' File "/home/osboxes/git/nova/nova/compute/manager.py", line 1508, in _allocate_network_async'
    b' six.reraise(*exc_info)'
    b' File "/home/osboxes/git/nova/.tox/functional-py36/lib/python3.6/site-packages/six.py", line 693, in reraise'
    b' raise value'
    b' File "/home/osboxes/git/nova/nova/compute/manager.py", line 1491, in _allocate_network_async'
    b' resource_provider_mapping=resource_provider_mapping)'
    b' File "/home/osboxes/git/nova/nova/network/neutronv2/api.py", line 1020, in allocate_for_instance'
    b" port['id']][0]"
    b'IndexError: list index out of range'
    b''

Chason Chan (chen-xing)
Changed in nova:
assignee: nobody → Chason Chan (chen-xing)
Revision history for this message
Chason Chan (chen-xing) wrote :

Hi Matt, just to be sure what I need do for this bug. As I find this job passed, I am confused what is the point of this bug.

Did you mean this job passed even it captured stderr including "IndexError"?

Thanks!

Revision history for this message
Matt Riedemann (mriedem) wrote :

Yes the test passes, but it clutters up the logs which makes loading the console take longer in a web page and it can also contribute to bug 1813147 where we have so much subunit test output that the parser fails so we try to mitigate that kind of output in tests.

Revision history for this message
Alexey Stupnikov (astupnikov) wrote :

This error is no longer raised:

2020-05-22 20:10:32.611471 | ubuntu-bionic | {0} nova.tests.functional.test_servers.PortResourceRequestReSchedulingTest.test_boot_reschedule_fill_provider_mapping_raises [2.532129s] ... ok
2020-05-22 20:10:32.976320 | ubuntu-bionic | {6} nova.tests.functional.test_policy.HostStatusPolicyTestCase.test_get_server_host_status_unknown_only [2.359683s] ... ok

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.