This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cinder-volume-l 0 | |
cinder-volume-v 0 | |
cinder-volume-m 0 | |
cinder-volume-2 0 | |
cinder-volume-, 0 | |
cinder-volume-l.ubuntu 0 | |
cinder-volume-v.ubuntu 0 | |
cinder-volume-m.ubuntu 0 | |
cinder-volume-2.ubuntu 0 | |
cinder-volume-,.ubuntu 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2013-01-24 17:40:29 | 2013-01-24 17:45:48 | NULL | 0 | 3 | ubuntu | cinder-volume-lvm1 | cinder-volume-lvm1 | 25 | 0 | nova | | |
| 2013-01-24 17:40:29 | 2013-01-24 17:45:48 | NULL | 0 | 4 | ubuntu | cinder-volume-lvm2 | cinder-volume-lvm2 | 25 | 0 | nova | | |
| 2013-01-24 17:41:48 | 2013-01-24 17:45:48 | NULL | 0 | 5 | ubuntu | cinder-volume-lvm3 | cinder-volume-lvm3 | 24 | 0 | nova | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tox.ini b/tox.ini | |
index 6a6593a..a092c59 100644 | |
--- a/tox.ini | |
+++ b/tox.ini | |
@@ -25,7 +25,8 @@ commands = | |
coverage run -m subunit.run discover ./reddwarf/tests/unittests | |
# replace with above line once the python path issue is resolved | |
# python setup.py testr --coverage | |
- coverage run -a --timid run_tests.py | |
+ coverage run -a --timid -p run_tests.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEFORE############################## | |
.tox/cover/lib/python2.7/site-packages/reddwarf/taskmanager/models 347 268 43 43 20% | |
.tox/cover/lib/python2.7/site-packages/reddwarf/taskmanager/service 5 5 0 0 0% | |
.tox/cover/lib/python2.7/site-packages/reddwarf/version 17 17 2 2 0% | |
.tox/cover/lib/python2.7/site-packages/reddwarf/versions 71 1 6 1 97% | |
--------------------------------------------------------------------------------------------------------------------------------------------------------- | |
TOTAL 4791 2607 754 607 42% | |
______________________________________________________________ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -50,6 +50,7 @@ from cinder.openstack.common import log as logging | |
from cinder.openstack.common import timeutils | |
from cinder.openstack.common import uuidutils | |
from cinder import quota | |
+from cinder.volume.configuration import Configuration | |
from cinder.volume import utils as volume_utils | |
@@ -108,8 +109,12 @@ class VolumeManager(manager.SchedulerDependentManager): | |
def __init__(self, volume_driver=None, service_name=None, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Column('volume_type_id', | |
String(length=36, | |
convert_unicode=True, | |
assert_unicode=None, | |
unicode_error=None, | |
_warn_on_bytestring=False), | |
ForeignKey('volume_types.id'), | |
nullable=False), | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#enabled_backends=lvm1,test1 | |
enabled_backends=lvm1,lvm2 | |
# Define the groups as above | |
[lvm1] | |
backend_volume_type=lvm | |
volume_group=stack-volumes | |
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver | |
[lvm2] | |
backend_volume_type=lvm | |
volume_group=stack-volumes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BackendFilter(filters.BaseHostFilter): | |
"""MultiBackendFilter for determining the backend to send to.""" | |
def host_passes(self, host_state, filter_properties): | |
"""Return True if host has sufficient capacity.""" | |
vol_type = host_state.volume_type | |
return filter_properties['volume_type']['name'] == vol_type |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[lvmdriver] | |
volume_group=stack-volumes | |
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver | |
backend_volume_type=lvm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the names of the groups for multiple volume backends | |
#enabled_backends=fakedriver,lvmdriver | |
# Define the groups as above | |
#[lvmdriver] | |
#volume_group=lvm-group-1 | |
#volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver | |
#backend_volume_type=lvm | |
#[fakedriver] | |
#volume_driver=cinder.volume.driver.FakeISCSIDriver |