]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
rbd: add volume_id to connection_info in initialize_connection
authorMatt Riedemann <mriedem@us.ibm.com>
Sat, 20 Jun 2015 19:43:34 +0000 (12:43 -0700)
committerMatt Riedemann <mriedem@us.ibm.com>
Sat, 20 Jun 2015 19:43:34 +0000 (12:43 -0700)
commitde09563ce25743ae3debce961e99196caed19daa
tree7b97392d4adbe39d9bbe8d0aee38f502a148f51f
parente957066dd713da3d8564f133adfd308eefb8211c
rbd: add volume_id to connection_info in initialize_connection

Most other volume drivers have a 'volume_id' key in the
connection_info['data'] dict returned from initialize_connection, this
adds it to the rbd volume driver.

This is part of a bigger effort to standardize the connection_info dict
so that consumers like Nova can rely on a common set of keys when
processing connection_info.

Change-Id: I7aed56a93c4cc3be5e0e49da6ddc1f009fed3c18
cinder/tests/unit/test_rbd.py
cinder/volume/drivers/rbd.py