os_vif.initialize() was previously executed during module load. This
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.
Reviewed: https:/ /review. openstack. org/374233 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=735f710ae0c 0e0037970796bea cd3527e2a8ca8a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 735f710ae0c0e00 37970796beacd35 27e2a8ca8a
Author: Sean Dague <email address hidden>
Date: Wed Sep 21 11:11:21 2016 -0400
move os_vif.initialize() to nova-compute start
os_ vif.initialize( ) was previously executed during module load. This
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 3a3238b587685df 85d15ee56c4