]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
[LVM] Restore target config during ensure_export
authorMitsuhiro Tanino <mitsuhiro.tanino@hds.com>
Fri, 22 Jan 2016 16:31:25 +0000 (11:31 -0500)
committerMitsuhiro Tanino <mitsuhiro.tanino@hds.com>
Fri, 19 Feb 2016 19:13:53 +0000 (14:13 -0500)
commit5cec4056eb061004b400c1dc5b946bf890b4bab0
tree4623a24617d9528f1ee3ec6b2d460d5abdfc102e
parent61985202dd5a7aed6139a8dc0f40a1aa8c85b4dd
[LVM] Restore target config during ensure_export

If server crash or reboot happened, LIO target configuration
will be initialized after boot up a server. Currently, Cinder
has a functionality to save LIO target configuration to save
file at several checkpoint.

If LIO target service is configured properly, LIO target
configuration is restored by this service during boot up
a server, but if not, existing in-use volumes would become
inconsistent status after c-vol service starts.

If there is no iSCSI target configuration during
ensure_export, LIO dirver should restore the saved
configuration file to avoid the problem.

Closes-Bug: #1536248
Change-Id: I74d300ba26a08b6f423f5ed3e13495b73cfbbd52
cinder/cmd/rtstool.py
cinder/tests/unit/targets/test_lio_driver.py
cinder/tests/unit/test_cmd.py
cinder/volume/targets/lio.py