]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Optimize 3PAR array ID retrieval
authorAlex O'Rourke <alex.orourke@hpe.com>
Mon, 4 Jan 2016 17:06:10 +0000 (09:06 -0800)
committerAlex O'Rourke <alex.orourke@hpe.com>
Tue, 5 Jan 2016 17:14:51 +0000 (09:14 -0800)
commit4e4870936165fc1927a646e7fa3972df06ee0606
tree9da2c5c18644f12fefc3226103d7d6e060658afa
parent7df01a599ac40b28ad8bd753660d9a466cec6250
Optimize 3PAR array ID retrieval

Currently, we are making a call to the 3PAR array every time the
common driver is initialized, which is inefficient considering the
call is already made in get_volume_stats. Instead of making the call
every time, we can pass in the driver stats to common's do_setup and
use the array ID from there.

If the stats are not yet available, we will ask the array directly for
the ID.

Change-Id: Iff065cd9debfc899b1d88475c63c7b2cb1e5e1b6
cinder/tests/unit/test_hpe3par.py
cinder/volume/drivers/hpe/hpe_3par_common.py
cinder/volume/drivers/hpe/hpe_3par_fc.py
cinder/volume/drivers/hpe/hpe_3par_iscsi.py