]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Create structure of flows' packages
authorAnastasia Karpinska <akarpinska@griddynamics.com>
Wed, 18 Dec 2013 11:34:23 +0000 (13:34 +0200)
committerAnastasia Karpinska <akarpinska@griddynamics.com>
Fri, 24 Jan 2014 10:44:56 +0000 (12:44 +0200)
commit6a28603f48feb682ed23ce5da4bdace12dc581fd
tree59b28dc7e4ad0a4640ce2edba82eb2ebe391ea36
parent0653475f499d59fd41e40648802f7577e664a20e
Create structure of flows' packages

1. Create_volume flows were moved to separate files from __init__.py.
   In future each flow should be implemented in a separate file.

2. Add flows.common package for tasks that could be used by different flows.

3. Proposed file structure for flows is more clean and helps to find and reuse
common code.

4. _exception_to_unicode function and tests were removed because never used.

Partially implements: blueprint create-volume-flow

Change-Id: I63473f549f0c501fe0f373830bc1080239d01892
12 files changed:
cinder/flow_utils.py [moved from cinder/volume/flows/base.py with 95% similarity]
cinder/scheduler/flows/__init__.py [new file with mode: 0644]
cinder/scheduler/flows/create_volume.py [new file with mode: 0644]
cinder/scheduler/manager.py
cinder/tests/test_create_volume_flow.py
cinder/tests/test_rbd.py
cinder/volume/api.py
cinder/volume/flows/api/create_volume.py
cinder/volume/flows/common.py [new file with mode: 0644]
cinder/volume/flows/manager/__init__.py [new file with mode: 0644]
cinder/volume/flows/manager/create_volume.py [new file with mode: 0644]
cinder/volume/manager.py