Created by Ryan Harper and last modified
Get this branch:
bzr branch lp:~raharper/curtin/trunk.fix-iscsi-shutdown
Only Ryan Harper can upload to this branch. If you are Ryan Harper please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Ryan Harper

Recent revisions

533. By Ryan Harper

Add unittest for parsing storage config for iscsi disks

532. By Ryan Harper

Clean up logging messages

531. By Ryan Harper

config is a list

530. By Ryan Harper

Parse storage config for reconstructing iscsi disk objects for disconnect operations

529. By Ryan Harper

Don't use iscsi globals, not available across stages

The iscsi global is not available across stages due to use of
subprocess to run curtin commands. Revert back to finding
on-disk sessions that curtin configured to run iscsi disconnects.

528. By Ryan Harper

Switch back to unmounting all paths, and then disconnecting iscsi

In general, the typical cleanup of an in-use of block device involves
unmounting the filesystem/block device, and then perform any block
device specific actions. In this case, curtin will recursively unmount
any devices mounted under the install target directory (iscsi disks included)
And then we query the curtin iscsi layer for any connected iscsi devices it
created and invoke disconnect on each device. This should avoid shutting down
any other sessions which may be active but are not created/owned by curtin.

In addition, add some logging to some of the iscsi paths which previously
would silently exit without performing the requested action (disconnect for
example returns if the target iscsi node dir is not present).

527. By Ryan Harper

Don't rely on ephemeral env, use target iscsi config, disconnect before unmount

526. By Ryan Harper

Add unittests for iscsi.disconnect_target_disks

525. By Ryan Harper

Check if target is in active session, else skip disconnect

524. By Ryan Harper

iscsi: disconnect prior to unmounting target

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
This branch contains Public information 
Everyone can see this information.