]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Make lio iSCSI changes persistent to avoid lost
authorGorka Eguileor <geguileo@redhat.com>
Mon, 2 Mar 2015 14:51:07 +0000 (15:51 +0100)
committerGorka Eguileor <geguileo@redhat.com>
Wed, 25 Mar 2015 16:45:18 +0000 (17:45 +0100)
commit706878deaaa5acbb8a577942a5a774c58fe16332
treea38d8f35857e350936ab3abd37ecbc14503a26cb
parent5d3a14da424a3b506447c116b4149368bbca5695
Make lio iSCSI changes persistent to avoid lost

To avoid losing iSCSI configuration when target.service is
started/restarted we make persistent any change Cinder makes to the
configuration.

This will allow us to coordinate access from multiple rtslib users
(target daemon, targetcli, cinder...)

This patch changes rtstool and adds an additional command "save" with
optional parameter the filename where we want to save current
configuration. If no parameter is provided it saves to default location
defined by rtslib.

Closes-Bug: #1427301
Change-Id: I74bd09ed16a2e0e584d3e04762aec8cbdf101f6d
cinder/cmd/rtstool.py
cinder/tests/targets/test_lio_driver.py
cinder/tests/test_cmd.py
cinder/volume/targets/lio.py