Fix incompatibility for python 2.6

datetime.timedelta has no attribute 'total_seconds' in Python 2.6
test_create_volume_permission_with_no_body for 2.6

Change-Id: Ib419643daa68bee634796904c79d45dbc2dad1d1