TypeError: can't compare offset-naive and offset-aware datetimes (cinder-volume-usage-audit)

asked 2016-12-18 06:52:20 -0500

kelepirci gravatar image

Hello All,

I am having bit a problem. I need to get "volume.create.start" and "volume.create.end" events from cinder to ceilometer.

When I try to run "cinder-volume-usage-audit" I am getting following error:

<154>Dec 18 12:42:42 node-9 cinder-volume-usage-audit: 2016-12-18 12:42:42.594 24907 CRITICAL cinder [req-160267c7-8b79-4921-af99-322261d8a856 - - - - -] TypeError: can't compare offset-naive and offset-aware datetimes
2016-12-18 12:42:42.594 24907 ERROR cinder Traceback (most recent call last):
2016-12-18 12:42:42.594 24907 ERROR cinder   File "/usr/bin/cinder-volume-usage-audit", line 10, in <module>
2016-12-18 12:42:42.594 24907 ERROR cinder     sys.exit(main())
2016-12-18 12:42:42.594 24907 ERROR cinder   File "/usr/lib/python2.7/dist-packages/cinder/cmd/volume_usage_audit.py", line 195, in main
2016-12-18 12:42:42.594 24907 ERROR cinder     snapshot_ref.created_at > begin and
2016-12-18 12:42:42.594 24907 ERROR cinder TypeError: can't compare offset-naive and offset-aware datetimes
2016-12-18 12:42:42.594 24907 ERROR cinder

Any feedback is appreciated.

edit retag flag offensive close merge delete