]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use pbr entry_points to setup the cinder scripts
authorThang Pham <thang.g.pham@gmail.com>
Fri, 20 Jun 2014 04:30:36 +0000 (00:30 -0400)
committerThang Pham <thang.g.pham@gmail.com>
Mon, 8 Dec 2014 14:53:22 +0000 (09:53 -0500)
commit5fb266a0dac0c4c6538ee2661cb186a5c0fe6d6a
tree6f3776396f440613343c1ae0f3b6c2e1142aff08
parent83bc931790d895c4c1617931a69ac5b8294db642
Use pbr entry_points to setup the cinder scripts

The following patch changes how cinder scripts are
installed and unit tested. This patch moves all the
cinder scripts from bin into cinder/cmd and creates
entry_points for those scripts in setup.cfg. When
cinder is installed, these scripts will be installed
under /usr/local/bin by pbr.

DocImpact: 'host' config option for multiple-storage backends
in cinder.conf is renamed to 'backend_host' in order to avoid
a naming conflict with the 'host' to locate redis
Change-Id: If82cf0c58d765bf79dbf721ca95c10a468940cab
Implements: blueprint unit-test-cases-for-cinder-scripts
14 files changed:
cinder/cmd/__init__.py [new file with mode: 0644]
cinder/cmd/all.py [moved from bin/cinder-all with 87% similarity]
cinder/cmd/api.py [moved from bin/cinder-api with 82% similarity]
cinder/cmd/backup.py [moved from bin/cinder-backup with 74% similarity]
cinder/cmd/manage.py [moved from bin/cinder-manage with 97% similarity]
cinder/cmd/rtstool.py [moved from bin/cinder-rtstool with 99% similarity]
cinder/cmd/scheduler.py [moved from bin/cinder-scheduler with 75% similarity]
cinder/cmd/volume.py [moved from bin/cinder-volume with 75% similarity]
cinder/cmd/volume_usage_audit.py [moved from bin/cinder-volume-usage-audit with 95% similarity]
cinder/test.py
cinder/tests/test_cmd.py [new file with mode: 0755]
run_tests.sh
setup.cfg
tox.ini