novaclient: type object 'datetime.datetime' has no attribute 'tomorrow'

Bug #923475 reported by Dan Prince on 2012-01-29
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Dan Prince

Bug Description

root@nova1:~# nova --debug usage-list
connect: (login, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: login:5000\r\nContent-Length: 107\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "AABBCC112233"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json; charset=UTF-8
header: Content-Length: 991
header: Date: Sun, 29 Jan 2012 20:23:13 GMT
Traceback (most recent call last):
  File "/usr/bin/nova", line 9, in <module>
    load_entry_point('python-novaclient==2012.1', 'console_scripts', 'nova')()
  File "/usr/lib/python2.7/dist-packages/novaclient/", line 357, in main
  File "/usr/lib/python2.7/dist-packages/novaclient/", line 308, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/", line 1375, in do_usage_list
    end = datetime.datetime.tomorrow()
AttributeError: type object 'datetime.datetime' has no attribute 'tomorrow'

Dan Prince (dan-prince) on 2012-01-29
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
importance: Undecided → Low
status: New → In Progress

Submitter: Jenkins
Branch: master

commit f512f54bcccfa78b6bb77b691987cdde3ee98f35
Author: Dan Prince <email address hidden>
Date: Sun Jan 29 15:34:20 2012 -0500

    Fix datetime issue with usage_data.

    Fixes LP Bug #923475.

    Change-Id: I663629142a8bd3ca8384ef8759d9138f8604db50

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-02-29
Changed in nova:
milestone: none → essex-4
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-4 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers