]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VNX: Fix metadata get overriden issue
authorpeter_wang <peter.wang13@emc.com>
Tue, 17 Nov 2015 07:44:58 +0000 (02:44 -0500)
committerpeter_wang <peter.wang13@emc.com>
Wed, 18 Nov 2015 03:14:52 +0000 (22:14 -0500)
commite32aaf82a37ac09c3180dbe7476287db24237452
treeeaa6e6e618e04d075aec91d18691c3bc3c887a92
parent536bc42564ca9ccbf41722720bbb63b5c06c3437
VNX: Fix metadata get overriden issue

Cinder is using 'metadata' or 'volume_metadata' to return
volume metadata since versionedobjects is not fully merged,
so VNX could not get the correct existing
metadata, only append VNX specific metadata so existing
metadata get overridden.
In this fix, VNX will first try 'volume_metadata' if not exists,
try 'metadata' when getting metadata.

Change-Id: I1215883a6076e9b15b1ced19aa40aae43c66a00c
Closes-bug: 1516903
cinder/tests/unit/test_emc_vnxdirect.py
cinder/volume/drivers/emc/emc_vnx_cli.py