diff options
author | Stanislaw Pitucha <stanislaw.pitucha@hp.com> | 2013-03-27 16:17:38 +0000 |
---|---|---|
committer | Stanislaw Pitucha <stanislaw.pitucha@hp.com> | 2013-03-28 13:51:35 +0000 |
commit | 2da5ea6e5685ae5c349fc1d175594aecbe0a0e23 (patch) | |
tree | 2f3d1c897f2e28c3f7c995f672acdf273690136d /nova/utils.py | |
parent | f281afd2ba30c6efa0fb64737a5cb93e1dd28b8c (diff) | |
download | nova-2da5ea6e5685ae5c349fc1d175594aecbe0a0e23.tar.gz nova-2da5ea6e5685ae5c349fc1d175594aecbe0a0e23.tar.xz nova-2da5ea6e5685ae5c349fc1d175594aecbe0a0e23.zip |
Ensure only pickle-able objects live in metadata
Conductor api has been added to InstanceMetadata object, but it cannot
be serialised. This breaks storing metadata in memcache, because the
information needs to be passed through pickle.
Since the field was not used outside of the constructor, it can be
removed to fix the problem.
Also add a test that pickles a sample InstanceMetadata to catch similar
failures in the future.
Fixes bug 1160900
Change-Id: I7e8cef5a131290eaa1402d48295026bcac6baff6
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions