AttributeError: 'NoneType' object has no attribute 'utcoffset'

Bug #1495938 reported by Thomas Bechtold
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Michal Dulko

Bug Description

When running "cinder-manage service list", directly after a fresh deployment, I get:

cloudy:~ # cinder-manage service list
No handlers could be found for logger "oslo_config.cfg"
/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py:241: NotSupportedWarning: Configuration option(s) ['use_tpool'] not supported
  exception.NotSupportedWarning
Binary Host Zone Status State Updated At
2015-09-15 11:47:00.014 17011 CRITICAL cinder [req-48bba867-297b-4928-8175-6f427b1e3c9d - - - - -] AttributeError: 'NoneType' object has no attribute 'utcoffset'
2015-09-15 11:47:00.014 17011 ERROR cinder Traceback (most recent call last):
2015-09-15 11:47:00.014 17011 ERROR cinder File "/usr/bin/cinder-manage", line 10, in <module>
2015-09-15 11:47:00.014 17011 ERROR cinder sys.exit(main())
2015-09-15 11:47:00.014 17011 ERROR cinder File "/usr/lib/python2.7/site-packages/cinder/cmd/manage.py", line 590, in main
2015-09-15 11:47:00.014 17011 ERROR cinder fn(*fn_args)
2015-09-15 11:47:00.014 17011 ERROR cinder File "/usr/lib/python2.7/site-packages/cinder/cmd/manage.py", line 456, in list
2015-09-15 11:47:00.014 17011 ERROR cinder timeutils.normalize_time(svc.updated_at)))
2015-09-15 11:47:00.014 17011 ERROR cinder File "/usr/lib/python2.7/site-packages/oslo_utils/timeutils.py", line 101, in normalize_time
2015-09-15 11:47:00.014 17011 ERROR cinder offset = timestamp.utcoffset()
2015-09-15 11:47:00.014 17011 ERROR cinder AttributeError: 'NoneType' object has no attribute 'utcoffset'
2015-09-15 11:47:00.014 17011 ERROR cinder

cinderclient is version 1.4.1, oslo_utils is 2.5.0 .

Revision history for this message
Michal Dulko (michal-dulko-f) wrote :

This is probably related to Service object change which got in recently. I'm taking a look and will fix it if possible.

Changed in python-cinderclient:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Michal Dulko (michal-dulko-f)
Revision history for this message
Michal Dulko (michal-dulko-f) wrote :

https://review.openstack.org/219700 - here's the fix, I don't know why it wasn't detected by launchpad.

Changed in python-cinderclient:
status: Confirmed → In Progress
Changed in python-cinderclient:
status: In Progress → Fix Committed
affects: python-cinderclient → cinder
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → liberty-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: liberty-rc1 → 7.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.