When creating a cloned volume (using the Blockbridge driver), pass the
new volume capacity to the backend. After a successful clone, the
backend extends the new volume to the requested size.
Update unit test to ensure capacity param is supplied to the backend
API.
Change-Id: I5e9527691b4575e355143e61fd8ed0354ac2c3d9
Closes-Bug: #
1554750
volume_id=self.snapshot['volume_id'])
create_params = dict(
name=self.volume_name,
+ capacity=self.volume_size * units.Gi,
src=vol_src)
kwargs = dict(
method='PUT',
volume_id=self.snapshot['volume_id'])
create_params = dict(
name=self.volume_name,
+ capacity=self.volume_size * units.Gi,
src=vol_src)
kwargs = dict(
method='PUT',
create_params = dict(
name=self.volume_name,
+ capacity=self.volume_size * units.Gi,
src=dict(volume_id=src_vref['id']))
kwargs = dict(
method='PUT',
create_params = dict(
name=self.volume_name,
+ capacity=self.volume_size * units.Gi,
src=dict(volume_id=src_vref['id']))
kwargs = dict(
method='PUT',
create_params = {
'name': self._get_dbref_name(volume),
+ 'capacity': int(volume['size'] * units.Gi),
'src': {
'volume_id': src_vref['id'],
},
create_params = {
'name': self._get_dbref_name(volume),
+ 'capacity': int(volume['size'] * units.Gi),
'src': {
'volume_id': snapshot['volume_id'],
'snapshot_id': snapshot['id'],