]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add create & attach times to SolidFire attributes.
authorJohn Griffith <john.griffith@solidfire.com>
Fri, 19 Jul 2013 23:05:55 +0000 (17:05 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Mon, 22 Jul 2013 15:06:00 +0000 (09:06 -0600)
commit5d8a457c4e91a7cfe1ab5a09cdb2ca48ec6aa977
tree2e8fc0eac9adf8242fc2f858d8e95b6f06ae5c6e
parent6e95e1ab3e737d1de356b4542d9f408e5bce2324
Add create & attach times to SolidFire attributes.

This change simply adds create_time and attach_time to
the SolidFire devices attributes.

Times are taken from the volume-ref object, attach_time
is only set/present after an attach, and is also removed
from the attributes list on a detach.

This also required that we actually set attach_time on the
volume in the db.  We have the column, but we weren't actually
setting it, so this change required that be fixed.

In the future we should also look at changing the attach_time
from a string to a proper date-time object.

Change-Id: Ib9577ac160596a6878d1729f6022885b6cfa90e2
cinder/db/sqlalchemy/api.py
cinder/tests/test_solidfire.py
cinder/volume/driver.py
cinder/volume/drivers/scality.py
cinder/volume/drivers/solidfire.py
cinder/volume/manager.py