Nir Soffer has uploaded a new change for review.
Change subject: sp: Remove vol_extend_policy option
......................................................................
sp: Remove vol_extend_policy option
We had a vol_extend_policy option disabling the mailbox. This option is
not useful for anything but causing vms using thin block disks to pause
without a way to recover.
This option was added in commit 73adfc489e6e (Add spmProtect, release
lock and toggle lock functionality. Add toggle lvextend functionality)
in 2009. I did not find why this option was added.
Change-Id: Ib067c09a985a633a452c476e21d8c2c073e6ca50
Signed-off-by: Nir Soffer <nsoffer(a)redhat.com>
---
M lib/vdsm/config.py.in
M vdsm/storage/sp.py
2 files changed, 2 insertions(+), 8 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/53/65053/1
diff --git a/lib/vdsm/config.py.in b/lib/vdsm/config.py.in
index 94640b2..55ce6f3 100644
--- a/lib/vdsm/config.py.in
+++ b/lib/vdsm/config.py.in
@@ -329,8 +329,6 @@
'NFS mount options, comma-separated list (NB: no white space '
'allowed!)'),
- ('vol_extend_policy', 'ON', None),
-
('lock_util_path', '@LIBEXECDIR@', None),
('lock_cmd', 'spmprotect.sh', None),
diff --git a/vdsm/storage/sp.py b/vdsm/storage/sp.py
index 8f98205..febd444 100644
--- a/vdsm/storage/sp.py
+++ b/vdsm/storage/sp.py
@@ -68,7 +68,6 @@
log = logging.getLogger('storage.StoragePool')
storage_repository = config.get('irs', 'repository')
- lvExtendPolicy = config.get('irs', 'vol_extend_policy')
def __init__(self, spUUID, domainMonitor, taskManager):
self._secured = threading.Event()
@@ -315,9 +314,7 @@
# commands are allowed to run to prevent a race between the
# mailbox and the "self._setSecure() call"
- # FIXME : Use a system wide grouping mechanism
- if (self.lvExtendPolicy == "ON" and
- self.masterDomain.supportsMailbox):
+ if self.masterDomain.supportsMailbox:
self.masterDomain.prepareMailbox()
self.spmMailer = storage_mailbox.SPM_MailMonitor(self,
maxHostID)
@@ -450,8 +447,7 @@
if self.hsmMailer:
return
- if (self.lvExtendPolicy == "ON" and
- self.masterDomain.supportsMailbox):
+ if self.masterDomain.supportsMailbox:
self.hsmMailer = storage_mailbox.HSM_Mailbox(self.id, self.spUUID)
self.log.debug("HSM mailbox ready for pool %s on master "
"domain %s", self.spUUID, self.masterDomain.sdUUID)
--
To view, visit https://gerrit.ovirt.org/65053
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib067c09a985a633a452c476e21d8c2c073e6ca50
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <nsoffer(a)redhat.com>
Nir Soffer has uploaded a new change for review.
Change subject: sp: Remove double dict key
......................................................................
sp: Remove double dict key
Commit f9cf58b7bced (Make getRepoStats() a hsm method) added a second
"pool_status" key in the same dictionary. Turns out that this is well
defined, and the second key overrides the first one. Remove the old
unused key.
For more info see:
https://docs.python.org/2/reference/expressions.html#dictionary-displays
Change-Id: I05f6aeda1858e85b8660d972593e82bcb7e3bff3
Signed-off-by: Nir Soffer <nsoffer(a)redhat.com>
---
M vdsm/storage/sp.py
1 file changed, 0 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/51/65051/1
diff --git a/vdsm/storage/sp.py b/vdsm/storage/sp.py
index dabe892..dbc89c9 100644
--- a/vdsm/storage/sp.py
+++ b/vdsm/storage/sp.py
@@ -1367,7 +1367,6 @@
'master_ver': self._backend.getMasterVersion(),
'lver': LVER_INVALID,
'spm_id': SPM_ID_FREE,
- 'pool_status': 'uninitialized',
'version': str(msdInfo['version']),
'isoprefix': '',
'pool_status': 'connected',
--
To view, visit https://gerrit.ovirt.org/65051
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I05f6aeda1858e85b8660d972593e82bcb7e3bff3
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <nsoffer(a)redhat.com>