← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1423425] Re: Running unit tests against latest cinderclient and cinder will have a bunch of tests failed

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

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

Title:
  Running unit tests against latest cinderclient and cinder will have a
  bunch of  tests failed

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Use latest horizon with latest cinder/cindercliednt

  
  I am using devstack...the followings are what I did

  download cinder and python-cinderclient to /opt/stack

  cd horizon/.venv/bin
  source activate
  cd /opt/stack/python-cinderclient
  pip install .

  then go back to horizon to run_tests.sh

  
  There are quite  bit of tests are failing for the same reason, one of them is openstack_dashboard.dashboards.admin.volumes.tests:VolumeTests.test_index

  Error
  Traceback (most recent call last):
    File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/unittest2/case.py", line 67, in testPartExecutor
      yield
    File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/unittest2/case.py", line 601, in run
      testMethod()
    File "/home/stack/horizon/openstack_dashboard/test/helpers.py", line 109, in instance_stub_out
      return fn(self, *args, **kwargs)
    File "/home/stack/horizon/openstack_dashboard/dashboards/admin/volumes/tests.py", line 40, in test_index
      res = self.client.get(reverse('horizon:admin:volumes:index'))
    File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/test/client.py", line 473, in get
      response = super(Client, self).get(path, data=data, **extra)
    File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/test/client.py", line 280, in get
      return self.request(**r)
    File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/test/client.py", line 444, in request
      six.reraise(*exc_info)
    File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File "/home/stack/horizon/horizon/decorators.py", line 36, in dec
      return view_func(request, *args, **kwargs)
    File "/home/stack/horizon/horizon/decorators.py", line 84, in dec
      return view_func(request, *args, **kwargs)
    File "/home/stack/horizon/horizon/decorators.py", line 52, in dec
      return view_func(request, *args, **kwargs)
    File "/home/stack/horizon/horizon/decorators.py", line 36, in dec
      return view_func(request, *args, **kwargs)
    File "/home/stack/horizon/horizon/decorators.py", line 84, in dec
      return view_func(request, *args, **kwargs)
    File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
      return self.dispatch(request, *args, **kwargs)
    File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
      return handler(request, *args, **kwargs)
    File "/home/stack/horizon/horizon/tabs/views.py", line 146, in get
      context = self.get_context_data(**kwargs)
    File "/home/stack/horizon/horizon/tables/views.py", line 107, in get_context_data
      context = super(MultiTableMixin, self).get_context_data(**kwargs)
    File "/home/stack/horizon/horizon/tabs/views.py", line 56, in get_context_data
      exceptions.handle(self.request)
    File "/home/stack/horizon/horizon/exceptions.py", line 364, in handle
      six.reraise(exc_type, exc_value, exc_traceback)
    File "/home/stack/horizon/horizon/tabs/views.py", line 54, in get_context_data
      context["tab_group"].load_tab_data()
    File "/home/stack/horizon/horizon/tabs/base.py", line 122, in load_tab_data
      exceptions.handle(self.request)
    File "/home/stack/horizon/horizon/exceptions.py", line 364, in handle
      six.reraise(exc_type, exc_value, exc_traceback)
    File "/home/stack/horizon/horizon/tabs/base.py", line 119, in load_tab_data
      tab._data = tab.get_context_data(self.request)
    File "/home/stack/horizon/horizon/tabs/base.py", line 459, in get_context_data
      self.load_table_data()
    File "/home/stack/horizon/horizon/tabs/base.py", line 443, in load_table_data
      table.data = data_func()
    File "/home/stack/horizon/openstack_dashboard/dashboards/admin/volumes/tabs.py", line 44, in get_volumes_data
      search_opts={'all_tenants': True})
    File "/home/stack/horizon/openstack_dashboard/dashboards/project/volumes/tabs.py", line 62, in _get_volumes_ids_with_snapshots
      _("Unable to retrieve snapshot list."))
    File "/home/stack/horizon/horizon/exceptions.py", line 364, in handle
      six.reraise(exc_type, exc_value, exc_traceback)
    File "/home/stack/horizon/openstack_dashboard/dashboards/project/volumes/tabs.py", line 56, in _get_volumes_ids_with_snapshots
      self.request, search_opts=search_opts)
    File "/home/stack/horizon/openstack_dashboard/api/cinder.py", line 296, in volume_snapshot_list
      search_opts=search_opts)]
    File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/cinderclient/v2/volume_snapshots.py", line 131, in list
      "snapshots")
    File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/cinderclient/base.py", line 65, in _list
      resp, body = self.api.client.get(url)
    File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/cinderclient/client.py", line 288, in get
      return self._cs_request(url, 'GET', **kwargs)
    File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/cinderclient/client.py", line 245, in _cs_request
      self.authenticate()
    File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/cinderclient/client.py", line 360, in authenticate
      magic_tuple = urlparse.urlsplit(self.auth_url)
    File "/usr/lib/python2.7/urlparse.py", line 182, in urlsplit
      i = url.find(':')
  AttributeError: 'NoneType' object has no attribute 'find'

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


References