]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Added 'bootable volume' filter for non-admin user
authorSheel Rana <ranasheel2000@gmail.com>
Fri, 15 Jan 2016 20:23:49 +0000 (01:53 +0530)
committerSheel Rana <ranasheel2000@gmail.com>
Tue, 19 Jan 2016 16:23:02 +0000 (16:23 +0000)
commit7ac7413ae31f1298af3d50f5b3e017f2af572ecd
treed063c86489ddcf776d25fb9b81de07b0af588d0d
parentadf35d0ee1b3c309a1722648de781b9e024899ff
Added 'bootable volume' filter for non-admin user

During launch instance from Horizon, if non-admin
user selects volume as source for launching
instance, drop down list for volumes will also
show non-bootable volumes. It is wrong behaviour.

To fix this, 'bootable volume' search filter is
enabled so that only bootable volumes get
displayed in drop down list of volume.

APIImpact

DocImpact:Need to add bootable against
query_volume_filters in OpenStack Configuration
Reference

Closes-Bug: #1524450

Change-Id: If5bfbd73bbe02b13b76d7169ea16424493ac5fca
cinder/api/v2/volumes.py
cinder/tests/unit/api/v2/test_volumes.py