API mismatch between VolumeManager and driver

Bug #872466 reported by Nachi Ueno
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Medium
RonenKat
OpenStack Quality Assurance
Invalid
Medium
Unassigned

Bug Description

There are some mismatch between volume driver and the Volume manager.

- Volume manger checks return value of self.driver.create_volume_from_snapshot, however no volume driver returns value.
http://paste.openstack.org/show/2677/

- nova.volume.api didn't check snapshot_id and size. They are checked, or a default value set in driver module.
nova.volume.api should check input parameters.

Nachi Ueno (nati-ueno)
summary: - API mismatch between VolumeManager and
- driver.create_volume_from_snapshot
+ API mismatch between VolumeManager and driver
description: updated
Nachi Ueno (nati-ueno)
Changed in openstack-qa:
assignee: nobody → Nachi Ueno (nati-ueno)
status: New → Confirmed
importance: Undecided → Medium
Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
Nachi Ueno (nati-ueno)
Changed in openstack-qa:
assignee: Nachi Ueno (nati-ueno) → nobody
Revision history for this message
Hengqing Hu (hudayou) wrote :

I think this is not really a bug, model_update will be none when no function return and db will not be updated.

RonenKat (ronenkat)
Changed in nova:
assignee: nobody → RonenKat (ronenkat)
Revision history for this message
RonenKat (ronenkat) wrote :

1st Item in bug report is not a bug - the manager allow the driver not to return model_update (be none), and disregards if so.

2nd, Size is checked by the low-level driver and gets a default if not valid. snapshot_id is used to get snapshot info from the DB. So an invalid value here would result in an exception on the snapshot in the volume manager code.

I don't see what extra validations should be done.

Revision history for this message
RonenKat (ronenkat) wrote :

1st Item in bug report is not a bug - the manager allow the driver not to return model_update (be none), and disregards if so.

2nd, Size is checked by the low-level driver and gets a default if not valid. snapshot_id is used to get snapshot info from the DB. So an invalid value here would result in an exception on the snapshot in the volume manager code.

I don't see what extra validations should be done.

Changed in nova:
status: Confirmed → Invalid
Nachi Ueno (nati-ueno)
Changed in openstack-qa:
status: Confirmed → Fix Released
status: Fix Released → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.