Hello Douglas Schilling Landgraf, Eli Mesika,
I'd like you to do a code review. Please visit
http://gerrit.ovirt.org/24343
to review the following change.
Change subject: fencing: stop using a deprecated command
......................................................................
fencing: stop using a deprecated command
Recently, fence-agents stopped supporting the "option" alias for its
"action" STDIN command.
https://lists.fedorahosted.org/pipermail/cluster-commits/2013-February/0030…
Let us conform to the new option name. The "action" name has been long
supported by el6 and f19's fence-agents, so it can be safely used.
Thanks to John Taylor for reporting the issue.
Bug-Url: https://bugzilla.redhat.com/1063472
Change-Id: Ia0e167e493412f95eda2325e0b028eb7c29c18bc
Signed-off-by: Dan Kenigsberg <danken(a)redhat.com>
Reviewed-on: http://gerrit.ovirt.org/24303
Reviewed-by: Eli Mesika <emesika(a)redhat.com>
Reviewed-by: Douglas Schilling Landgraf <dougsland(a)redhat.com>
---
M vdsm/API.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/43/24343/1
diff --git a/vdsm/API.py b/vdsm/API.py
index 8c5b9cb..7cff71b 100644
--- a/vdsm/API.py
+++ b/vdsm/API.py
@@ -1142,7 +1142,7 @@
return errCode['fenceAgent']
raise
- inp = ('agent=fence_%s\nipaddr=%s\nlogin=%s\noption=%s\n'
+ inp = ('agent=fence_%s\nipaddr=%s\nlogin=%s\naction=%s\n'
'passwd=%s\n') % (agent, addr, username, action, password)
if port != '':
inp += 'port=%s\n' % (port,)
--
To view, visit http://gerrit.ovirt.org/24343
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0e167e493412f95eda2325e0b028eb7c29c18bc
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.4
Gerrit-Owner: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Douglas Schilling Landgraf <dougsland(a)redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika(a)redhat.com>
Daniel Erez has uploaded a new change for review.
Change subject: vm: Update LUN size when starting a vm
......................................................................
vm: Update LUN size when starting a vm
In order to handle resize of DirectLUN disks
(i.e. when a LUN volume is extended by user),
relevant data should be retrieved when invoking getVmStats.
Hence, added the following information to disks stats for
DirectLUN disks: truesize, apparentsize and lunGUID
(the sizes values already exist but are zeroed).
Using these values, the engine could keep the DB updated.
The following changes are introduced:
* hsm:
appropriateDevice method now fetches LUN's device size
using 'multipath -> getDeviceSize'.
* clientIF:
For LUN devices, updated drive's truesize/apparentsize
using hsm's getVolumeSize method.
* vm:
_getDiskStats -> in order to identify each LUN
(e.g. on engine side), added 'lunGUID' to dStats
when vmDrive.GUID exists (applicable for DirectLUN disks).
Change-Id: Ia4988212f7f96078e774d2a4e7b5cd1681383cb0
Bug-Url: https://bugzilla.redhat.com/1026868
Signed-off-by: Daniel Erez <derez(a)redhat.com>
---
M vdsm/clientIF.py
M vdsm/storage/hsm.py
M vdsm/vm.py
3 files changed, 11 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/35/24235/1
diff --git a/vdsm/clientIF.py b/vdsm/clientIF.py
index 894a5d7..d0095e4 100644
--- a/vdsm/clientIF.py
+++ b/vdsm/clientIF.py
@@ -263,6 +263,10 @@
if res['status']['code']:
raise vm.VolumeError(drive)
+ # Update size for LUN volume
+ drive["truesize"] = res['truesize']
+ drive["apparentsize"] = res['apparentsize']
+
volPath = os.path.join("/dev/mapper", drive["GUID"])
# UUID drive format
diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index 53c9dd0..15485e2 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -3107,6 +3107,11 @@
expectedException=OSError,
timeout=QEMU_READABLE_TIMEOUT)
+ # Get the size of the logical unit volume.
+ size = str(multipath.getDeviceSize(devicemapper.getDmId(guid)))
+
+ return dict(truesize=size, apparentsize=size)
+
@public
def inappropriateDevices(self, thiefId):
"""
diff --git a/vdsm/vm.py b/vdsm/vm.py
index aae8bd6..295814e 100644
--- a/vdsm/vm.py
+++ b/vdsm/vm.py
@@ -631,6 +631,8 @@
'apparentsize': str(vmDrive.apparentsize)}
if isVdsmImage(vmDrive):
dStats['imageID'] = vmDrive.imageID
+ else:
+ dStats['lunGUID'] = vmDrive.GUID
dStats['readRate'] = ((eInfo[dName][1] - sInfo[dName][1]) /
sampleInterval)
dStats['writeRate'] = ((eInfo[dName][3] - sInfo[dName][3]) /
--
To view, visit http://gerrit.ovirt.org/24235
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia4988212f7f96078e774d2a4e7b5cd1681383cb0
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <derez(a)redhat.com>
Francesco Romani has uploaded a new change for review.
Change subject: client: update the help of `create` command
......................................................................
client: update the help of `create` command
This patch updates the help of the `create` command
to keep up with last changes.
Change-Id: I8a1f755d3586a232e3645afc2ebe6613814225cc
Signed-off-by: Francesco Romani <fromani(a)redhat.com>
---
M client/vdsClient.py
1 file changed, 1 insertion(+), 3 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/50/24150/1
diff --git a/client/vdsClient.py b/client/vdsClient.py
index beae673..5638ca8 100644
--- a/client/vdsClient.py
+++ b/client/vdsClient.py
@@ -1806,13 +1806,11 @@
'o acpiEnable : If present will remove the default '
'-no-acpi switch',
'o qgaEnable : use qemu-ga as guest agent',
- 'o irqChip : If false, add the -no-kvm-irqchip '
- 'switch',
'o spiceSecureChannels : comma-separated list of '
'spice channel that will be encrypted',
'o spiceMonitors : number of emulated screen heads',
'o soundDevice : emulated sound device',
- 'o launchPaused : If "true", start qemu paused',
+ 'o launchPaused : If "true", start the VM paused',
'o vmName : human-readable name of new VM',
'o tabletEnable : If "true", enable tablet input',
'o timeOffset : guest\'s start date, relative to '
--
To view, visit http://gerrit.ovirt.org/24150
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8a1f755d3586a232e3645afc2ebe6613814225cc
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani(a)redhat.com>
Francesco Romani has uploaded a new change for review.
Change subject: schema: document the launchPaused parameter
......................................................................
schema: document the launchPaused parameter
add documentation for the launchPaused param,
which was missing from the API schema.
Change-Id: I279e68c7e6b2cca8496a5dbec6e3895d531bce97
Signed-off-by: Francesco Romani <fromani(a)redhat.com>
---
M vdsm_api/vdsmapi-schema.json
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/44/24144/1
diff --git a/vdsm_api/vdsmapi-schema.json b/vdsm_api/vdsmapi-schema.json
index 6d8c333..1ac45b5 100644
--- a/vdsm_api/vdsmapi-schema.json
+++ b/vdsm_api/vdsmapi-schema.json
@@ -2921,6 +2921,8 @@
#
# @vmType: The type of VM
#
+# @launchPaused: #optional If present, launch the VM in pause mode.
+#
# Since: 4.10.0
##
{'type': 'VmParameters',
@@ -2930,7 +2932,7 @@
'nice': 'int', 'smp': 'uint', '*smpCoresPerSocket': 'uint',
'*smpThreadsPerCore': 'uint', 'timeOffset': 'uint',
'transparentHugePages': 'bool', 'vmId': 'UUID', 'vmName': 'str',
- 'vmType': 'VmType'}}
+ 'vmType': 'VmType', '*launchPaused': 'bool'}}
##
# @VmInfo:
--
To view, visit http://gerrit.ovirt.org/24144
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I279e68c7e6b2cca8496a5dbec6e3895d531bce97
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani(a)redhat.com>