]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Service object
authorMichal Dulko <michal.dulko@intel.com>
Wed, 8 Jul 2015 09:27:30 +0000 (11:27 +0200)
committerMichal Dulko <michal.dulko@intel.com>
Tue, 1 Sep 2015 07:09:08 +0000 (07:09 +0000)
commit94ab08577921e3accf7dcb21cf324dbf6838e10e
tree099ab01c5fe6f12f148a5cc5a9acc1e4b77b33d2
parenta68e8d8a4121a024c35f7f3b4b81c6052887d6da
Service object

Add versionedobjects abstraction layer to services. Distinguish time
zone aware DateTime fields. The object derives from
CinderObjectDictCompat, so it supports both object (obj.prop) and dict
(obj['prop']) syntax to access properties. Complete move to object
notation will be made in a follow up clean up patch.

Co-Authored-By: Michal Dulko <michal.dulko@intel.com>
Change-Id: I09f593f9f9aa8befa40d989b731159b78a429071
Partial-Implements: blueprint cinder-objects
23 files changed:
cinder/api/contrib/hosts.py
cinder/api/contrib/services.py
cinder/backup/api.py
cinder/cmd/manage.py
cinder/cmd/volume_usage_audit.py
cinder/objects/__init__.py
cinder/objects/base.py
cinder/objects/service.py [new file with mode: 0644]
cinder/scheduler/host_manager.py
cinder/service.py
cinder/tests/unit/api/contrib/test_hosts.py
cinder/tests/unit/api/contrib/test_services.py
cinder/tests/unit/api/v1/stubs.py
cinder/tests/unit/api/v2/stubs.py
cinder/tests/unit/fake_service.py [new file with mode: 0644]
cinder/tests/unit/objects/test_service.py [new file with mode: 0644]
cinder/tests/unit/scheduler/test_host_manager.py
cinder/tests/unit/test_cmd.py
cinder/tests/unit/test_service.py
cinder/tests/unit/test_volume.py
cinder/utils.py
cinder/volume/api.py
tools/lintstack.py