_nova_to_osvif_vif_bridge: 'module' object has no attribute 'vif'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Markus Zoeller (markus_z) |
Bug Description
Description
===========
The unit-test "nova.tests.
move os_vif.initialize() to nova-compute start
os_
means it was entirely possible that it was run before things like
logging were actually set up in the expected way. Move this back into
execution time instead of load time to ensure that logging is actually
setup.
Changes need to be made to tests which make assumptions about os_vif
objects to manually initialize os_vif when it will be used. os_vif
objects can't be created until it is initialized, so some delayed
object creation is also done in test_vif.py.
Closes-Bug: #1615676
Change-Id: I89fe5c5b3d762f
Steps to reproduce
==================
A chronological list of steps which will bring off the
issue you noticed:
* Clone/pull nova
* tox -e py27 nova.tests.
Expected result
===============
Test should succeed
Actual result
=============
===
Failed 1 tests - output below:
===
nova.
---
Captured traceback:
~~~
Traceback (most recent call last):
File "nova/tests/
return f(self, *args, **kwargs)
File "/home/
return func(*args, **keywargs)
File "nova/tests/
File "nova/tests/
[], 'herp', network_
File "nova/virt/
File "nova/virt/
File "nova/virt/
flavor, virt_type, self._host)
File "nova/virt/
vif_obj = os_vif_
File "nova/network/
vifobj = func(vif)
File "nova/network/
Captured pythonlogging:
~~~
2016-10-13 10:12:16,176 INFO [248_add_
2016-10-13 10:12:18,153 INFO [os_brick.
2016-10-13 10:12:18,153 WARNING [os_brick.
2016-10-13 10:12:18,209 INFO [nova.virt.osinfo] Cannot load Libosinfo: (No module named gi.repository.
2016-10-13 10:12:18,209 INFO [nova.virt.
2016-10-13 10:12:18,258 INFO [nova.virt.
2016-10-13 10:12:18,260 INFO [nova.virt.
<host>
<cpu>
</cpu>
</host>
<guest>
<arch name='i686'>
</arch>
<acpi default='on' toggle='yes'/>
<apic default='on' toggle='no'/>
</guest>
<guest>
<arch name='x86_64'>
</arch>
<acpi default='on' toggle='yes'/>
<apic default='on' toggle='no'/>
</guest>
<guest>
<arch name='armv7l'>
</arch>
</guest>
<guest>
<arch name='mips'>
</arch>
</guest>
<guest>
<arch name='mipsel'>
</arch>
</guest>
<guest>
<arch name='sparc'>
</arch>
</guest>
<guest>
<arch name='ppc'>
</arch>
</guest>
======
Totals
======
Ran: 1 tests in 30.0000 sec.
- Passed: 0
- Skipped: 0
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 1
Sum of execute time for each test: 3.6373 sec.
==============
Worker Balance
==============
- Worker 0 (1 tests) => 0:00:03.637283
No tests were successful during the run
ERROR: InvocationError: '/usr/bin/bash tools/pretty_tox.sh nova.tests.
___
ERROR: py27: commands failed
Environment
===========
1. Nova master (Ocata dev cycle)
[10:13:39 markus@oc5730007623 ~/git/nova ] $ git log -1
commit bc1b11fdc2c140b
Merge: 9be53df 0fafb81
Author: Jenkins <email address hidden>
Date: Thu Oct 13 03:04:45 2016 +0000
Merge "libvirt: cleanup never used migratable flag checking"
Logs & Configs
==============
N/A
Changed in nova: | |
importance: | Undecided → Medium |
tags: | added: testing |
Fix proposed to branch: master /review. openstack. org/385822
Review: https:/