Unity: force delete lun by default

The option `force_delete_lun_in_storagegroup` was set to `False` by
default before. Customers should change it to `True` in `cinder.conf` to
make sure luns can be deleted even when they are still in storage
groups.

This fix enables the option's default value to `True`.

Change-Id: I5507d280a5a68debd1f055988aa8c233b2147d09
Closes-bug: #1825469
This commit is contained in:
Ryan Liang 2019-06-14 10:50:12 +08:00
parent 6cbc53b718
commit 850013325b
3 changed files with 18 additions and 4 deletions

View File

@ -102,9 +102,8 @@ VNX_OPTS = [
'to maximum number of pool LUNs is reached. '
'By default, the value is False.'),
cfg.BoolOpt('force_delete_lun_in_storagegroup',
default=False,
help='Delete a LUN even if it is in Storage Groups. '
'By default, the value is False.'),
default=True,
help='Delete a LUN even if it is in Storage Groups.'),
cfg.BoolOpt('ignore_pool_full_threshold',
default=False,
help='Force LUN creation even if '

View File

@ -318,7 +318,7 @@ section, the driver will move the volumes out of the storage groups and then
delete them if the user tries to delete the volumes that remain in the storage
group on the VNX array.
The default value of ``force_delete_lun_in_storagegroup`` is ``False``.
The default value of ``force_delete_lun_in_storagegroup`` is ``True``.
Over subscription in thin provisioning
--------------------------------------

View File

@ -0,0 +1,15 @@
---
upgrade:
- |
DellEMC Unity: The fix of bug
`1825469 <https://bugs.launchpad.net/cinder/+bug/1825469>`_ changes the
default value of the ``force_delete_lun_in_storagegroup`` option from
``False`` to ``True``, which means luns will always be force deleted after
upgrade.
fixes:
- |
DellEMC Unity: Fix bug
`1825469 <https://bugs.launchpad.net/cinder/+bug/1825469>`_. The fix
enables the ``force_delete_lun_in_storagegroup`` option to ``True`` by
default, which makes sure that luns can deleted even when they are still in
storage groups.