← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1533290] Re: nova unit tests failing with os-win 0.1.0

 

Reviewed:  https://review.openstack.org/266495
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=6248dd0ae5ed16a690dfb34909e82f1ee49b4b3e
Submitter: Jenkins
Branch:    master

commit 6248dd0ae5ed16a690dfb34909e82f1ee49b4b3e
Author: Claudiu Belu <cbelu@xxxxxxxxxxxxxxxxxxxxxx>
Date:   Tue Jan 12 09:19:14 2016 -0800

    Fixes Hyper-V unit tests for latest os_win release
    
    os_win release 0.1.0 causes unit tests to fail, as the wmi
    module does not exist. Mocking it will fix the issue.
    
    Change-Id: Iad91cd280e04db0000b58e1194350489b2044506
    Closes-Bug: #1533290


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1533290

Title:
  nova unit tests failing with os-win 0.1.0

Status in OpenStack Compute (nova):
  Fix Released
Status in os-win:
  Fix Released

Bug description:
  2016-01-12 16:30:52.921 | Captured traceback:
  2016-01-12 16:30:52.921 | ~~~~~~~~~~~~~~~~~~~
  2016-01-12 16:30:52.921 |     Traceback (most recent call last):
  2016-01-12 16:30:52.921 |       File "nova/tests/unit/virt/hyperv/test_imagecache.py", line 59, in setUp
  2016-01-12 16:30:52.921 |         self.imagecache = imagecache.ImageCache()
  2016-01-12 16:30:52.922 |       File "nova/virt/hyperv/imagecache.py", line 39, in __init__
  2016-01-12 16:30:52.922 |         self._pathutils = pathutils.PathUtils()
  2016-01-12 16:30:52.922 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/os_win/utils/pathutils.py", line 46, in __init__
  2016-01-12 16:30:52.922 |         super(PathUtils, self).__init__()
  2016-01-12 16:30:52.922 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/os_win/utils/storage/smbutils.py", line 35, in __init__
  2016-01-12 16:30:52.922 |         self._smb_conn = wmi.WMI(moniker=r"root\Microsoft\Windows\SMB")
  2016-01-12 16:30:52.922 |     NameError: global name 'wmi' is not defined

  https://jenkins05.openstack.org/job/gate-nova-python27/15232/console

  os-win 0.1.0 was released today which is causing the regression:

  http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%5C%22NameError%3A%20global%20name%20'wmi'%20is%20not%20defined%5C%22%20AND%20tags%3A%5C%22console%5C%22

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1533290/+subscriptions


References