← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1567634] Re: tox -e py34 is not working in horizon

 

Reviewed:  https://review.openstack.org/303323
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=d6afbac57f8982b981ad5afbcbf1a6434d4e4d01
Submitter: Jenkins
Branch:    master

commit d6afbac57f8982b981ad5afbcbf1a6434d4e4d01
Author: Rob Cresswell <robert.cresswell@xxxxxxxxxxx>
Date:   Fri Apr 8 10:43:16 2016 +0100

    Fix time in Nova test data
    
    A recent update to python-novaclient seems to have highlighted some
    incorrect test data, causing our tests to fail. This patch fixes the
    time format.
    
    Change-Id: I32a1e54205dd31176c0b7798597b63df544f8d38
    Closes-Bug: 1567634


** Changed in: horizon
       Status: In Progress => 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/1567634

Title:
  tox -e py34 is not working in horizon

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  when i got the lasted horizon code and run tox -e py34.

  It got a lot of errors like bellow.

  It seem it is connected with novaclient.

  novaclient release 3.4 version on 2016-04-08.

  ======================================================================
  ERROR: openstack_dashboard.test.test_data.utils.load_test_data
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/chenpengzi/timetest/horizon/.tox/py34/lib/python3.4/site-packages/nose/case.py", line 198, in runTest
      self.test(*self.arg)
    File "/home/chenpengzi/timetest/horizon/openstack_dashboard/test/test_data/utils.py", line 44, in load_test_data
      return TestData(*loaders)
    File "/home/chenpengzi/timetest/horizon/openstack_dashboard/test/test_data/utils.py", line 70, in __init__
      data_func(self)
    File "/home/chenpengzi/timetest/horizon/openstack_dashboard/test/test_data/nova_data.py", line 570, in data
      TEST.usages.add(usage_obj_2)
    File "/home/chenpengzi/timetest/horizon/openstack_dashboard/test/test_data/utils.py", line 90, in add
      if obj not in self._objects:
    File "/home/chenpengzi/timetest/horizon/.tox/py34/lib/python3.4/site-packages/novaclient/base.py", line 204, in __eq__
      if hasattr(self, 'id') and hasattr(other, 'id'):
    File "/home/chenpengzi/timetest/horizon/.tox/py34/lib/python3.4/site-packages/novaclient/base.py", line 173, in __getattr__
      self.get()
    File "/home/chenpengzi/timetest/horizon/.tox/py34/lib/python3.4/site-packages/novaclient/v2/usage.py", line 35, in get
      start = oslo_utils.timeutils.parse_strtime(self.start, fmt=fmt)
    File "/home/chenpengzi/timetest/horizon/.tox/py34/lib/python3.4/site-packages/oslo_utils/timeutils.py", line 97, in parse_strtime
      return datetime.datetime.strptime(timestr, fmt)
    File "/usr/lib/python3.4/_strptime.py", line 500, in _strptime_datetime
      tt, fraction = _strptime(data_string, format)
    File "/usr/lib/python3.4/_strptime.py", line 337, in _strptime
      (data_string, format))
  ValueError: time data '2012-01-01 00:00:00' does not match format '%Y-%m-%dT%H:%M:%S.%f'

  Slowest 5 tests took 1.23 secs:
      0.35    NeutronApiTests.test_port_create_with_policy_profile
      0.28    VPNTests.test_add_ipsecpolicy_get
      0.24    NetworkSubnetTests.test_subnet_create_post_invalid_pools_ip_network_with_subnetpool
      0.19    InstanceAjaxTests.test_row_update
      0.16    SecurityGroupsNeutronTests.test_detail_delete_rule_exception
  ----------------------------------------------------------------------
  Ran 1549 tests in 8.361s

  FAILED (SKIP=11, errors=1538)
  Destroying test database for alias 'default'...
  ERROR: InvocationError: '/home/chenpengzi/timetest/horizon/.tox/py34/bin/python -u manage.py test --settings=openstack_dashboard.test.settings --exclude-dir=openstack_dashboard/test/integration_tests openstack_dashboard'
  ___________________________________________________________________________________________ summary ___________________________________________________________________________________________
  ERROR:   py34: commands failed

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


References