~raharper/curtin/trunk.fix-iscsi-shutdown

Viewing all changes in revision 528.

  • Committer: Ryan Harper
  • Date: 2017-08-30 19:25:46 UTC
  • Revision ID: ryan.harper@canonical.com-20170830192546-792ypq44qhv40gar
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).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: