cinder/cinder
Eric Harney 99d79431e3 LVM: Activate LV before creating exports
In some circumstances (such as after a reboot),
especially with thin LVM, the LV may not be activated, so
creating a target from it will fail.

Activate the LV before creating a target.

When using permanent=True for activation, don't supply
the -K/ignoreskipactivation argument.  This is rejected
by LVM 2.02.171, and is not a reasonable request, since
it asks to simultaneously unset a flag, and also to ignore
the flag (which should now be unset) during the same
activation operation.

This fixes a failure to clone a volume from another thin
LVM volume in the same pool.

Closes-Bug: #1701545

Change-Id: I925ece8833cc99a95c4cf693804ca3698f8cb114
2017-07-21 11:22:31 -04:00
..
api Merge "Fix python 3.6 escape char warnings in strings" 2017-07-17 21:32:21 +00:00
backup Keep consistent of naming convention 2017-07-10 10:46:44 +08:00
brick LVM: Activate LV before creating exports 2017-07-21 11:22:31 -04:00
cmd Merge "Remove deprecated 'host' option for cinder-volume" 2017-06-27 14:38:20 +00:00
common Add service dynamic log change/query 2017-05-16 13:37:35 +02:00
compute Add ability to extend 'in-use' volume 2017-07-12 11:48:32 -04:00
config Move driver options to "backend_defaults" section 2017-07-03 16:42:03 +02:00
consistencygroup Merge "Add quota limit check and enhance roll back for cg create" 2017-03-20 13:13:08 +00:00
db [DOC BLD FIX] Correct :returns: in db/api.py 2017-07-14 15:28:51 -05:00
group Tiramisu: Add groups param to failover_host 2017-07-10 09:30:13 -07:00
hacking Update log translation hacking rule 2017-06-29 04:05:52 -04:00
image Fix image cache db query when limits are enabled 2017-06-30 11:22:19 -07:00
interface Rename method 'delete' to 'delete_backup' in backup drivers 2017-07-04 13:35:03 +03:00
keymgr Remove log translations 2017-03-19 14:59:57 +00:00
locale Imported Translations from Zanata 2016-10-15 07:34:30 +00:00
message Optimize: Replace 'fields.Enum' with 'object' 2017-07-04 16:34:42 +08:00
objects Pop "consistencygroup" from volume object 2017-07-14 05:03:55 -07:00
scheduler Merge "Enable H904 check" 2017-07-08 16:37:08 +00:00
tests Merge "VNX: wrong size of volume from image cache" 2017-07-18 03:40:55 +00:00
transfer Trivial fix typos while reading code 2017-05-04 10:27:57 +07:00
volume LVM: Activate LV before creating exports 2017-07-21 11:22:31 -04:00
wsgi Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
zonemanager Fix python 3.6 escape char warnings in strings 2017-07-11 17:04:54 -04:00
__init__.py Set EVENTLET_NO_GREENDNS for IPv6 and dnspython compat 2016-11-11 13:19:07 -06:00
context.py Remove log translations 2017-03-19 14:59:57 +00:00
coordination.py coordination: remove custom Lock object 2017-07-17 19:35:57 +02:00
exception.py Keep consistent of naming convention 2017-07-10 10:46:44 +08:00
flow_utils.py Fix logging traceback in service logs 2016-12-20 12:39:07 +05:30
i18n.py Remove log translations 2017-03-19 14:59:57 +00:00
manager.py Remove periodic_tasks method from base manager 2017-07-06 12:26:40 +03:00
opts.py Move driver options to "backend_defaults" section 2017-07-03 16:42:03 +02:00
policy.py Use to_policy_values for enforcing policy 2016-09-13 01:13:15 +00:00
quota_utils.py Add Generic Volume Group Into Quota Management 2017-05-26 01:43:23 +00:00
quota.py Periodic task to clean expired reservation 2017-05-30 22:21:38 +08:00
rpc.py Remove deprecated oslo_messaging.get_transport 2017-06-13 14:25:38 +07:00
service.py Remove periodic_tasks method from base manager 2017-07-06 12:26:40 +03:00
ssh_utils.py Fix SSHPool current_size not work correctly 2017-07-11 10:58:20 +08:00
test.py Tests: Disallow use of assertTrue(str) 2017-06-15 12:09:52 -04:00
utils.py Fix python 3.6 escape char warnings in strings 2017-07-11 17:04:54 -04:00
version.py