This needs an update to work with volume objects.
Currently, manage existing can fail here.
Change-Id: I9197220be201cbbb1cd8266ebb58b57641fc216f
Closes-Bug: #
1518050
model_update = {}
model_update.update({'size': size})
try:
- volume_ref = self.db.volume_update(context, volume_ref['id'],
- model_update)
+ volume_ref.update(model_update)
+ volume_ref.save()
except exception.CinderException:
LOG.exception(_LE("Failed updating model of volume %(volume_id)s"
" with creation provided model %(model)s") %