]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix service-list filter
authorYuriy Nesenenko <ynesenenko@mirantis.com>
Mon, 4 Jan 2016 13:14:15 +0000 (15:14 +0200)
committerYuriy Nesenenko <ynesenenko@mirantis.com>
Mon, 15 Feb 2016 12:52:19 +0000 (14:52 +0200)
commit3899e0b4b52c03e9a9f190e5aa5b994ffcf6dc75
treea1c0162412ba3baa7fd57e8477a6389571b3bb28
parent55744deafb3fd8b4c7ba093626836d5a92255996
Fix service-list filter

Currently cinder service list --host=<hostname> will not show any
results for the volume services. This is because the volume-services
append an internal pool name to the hostname and as a result there
won't be a match for the specific filter. This patch fixes the
incorrect work of service-list with '--host' argument. Also it filters
data on the DB side to improve performance.

APIImpact
Closes-Bug: 1530144
Change-Id: I21775106693176ca128dbfd9db0d43cfc58de00a
Depends-On: I4044ab15078ecf54447e1c6e67c27fc8d7c9d6f7
cinder/api/contrib/hosts.py
cinder/api/contrib/services.py
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/tests/unit/api/contrib/test_hosts.py
cinder/tests/unit/api/contrib/test_services.py
cinder/tests/unit/objects/test_service.py
cinder/tests/unit/test_db_api.py