Antoni Segura Puimedon has uploaded a new change for review.
Change subject: Remove redundant ifupping of bonded ifaces.
......................................................................
Remove redundant ifupping of bonded ifaces.
ifup-eth of initscripts, when ifupping a bond checks which are
its slaves and ifups them. Thus, removing this two ifup places
we avoid a big source of FAILED messages in our logs while
keeping all the functionality and correctness.
Change-Id: I069ac2b60a2d591b5cc76484e0d7eee30b1429e2
Signed-off-by: Antoni S. Puimedon <asegurap(a)redhat.com>
---
M vdsm/configNetwork.py
1 file changed, 5 insertions(+), 9 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/09/10009/1
diff --git a/vdsm/configNetwork.py b/vdsm/configNetwork.py
index 711a0d4..def9f34 100755
--- a/vdsm/configNetwork.py
+++ b/vdsm/configNetwork.py
@@ -1004,11 +1004,11 @@
# Now we can run ifup for all interfaces
if bonding:
ifup(bonding, bondBootproto == 'dhcp' and not blockingDhcp)
-
- # NICs must be activated in the same order of boot time
- # to expose the correct MAC address.
- for nic in nicSort(nics):
- ifup(nic, options.get('bootproto') == 'dhcp' and not blockingDhcp)
+ else:
+ # NICs must be activated in the same order of boot time
+ # to expose the correct MAC address.
+ for nic in nicSort(nics):
+ ifup(nic, options.get('bootproto') == 'dhcp' and not blockingDhcp)
# Now we can ifup VLAN interface, because bond and nic already up
if vlan:
@@ -1266,10 +1266,6 @@
# Now we can run ifup for all interfaces
ifup(bond)
- # NICs must be activated in the same order of boot time
- # to expose the correct MAC address.
- for nic in nicSort(bondAttrs['nics']):
- ifup(nic)
def _removeBondings(bondings, configWriter):
--
To view, visit http://gerrit.ovirt.org/10009
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I069ac2b60a2d591b5cc76484e0d7eee30b1429e2
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Antoni Segura Puimedon <asegurap(a)redhat.com>
Hello Adam Litke, Saggi Mizrahi,
I'd like you to do a code review. Please visit
http://gerrit.ovirt.org/10020
to review the following change.
Change subject: schema: Missing comment for new VmDeviceType
......................................................................
schema: Missing comment for new VmDeviceType
When adding a new 'console' VmDeviceType, the submitter forgot to include
documentation in the comment block. This caused process-schema.py to fail.
Change-Id: Icd7db71a4cd1a2addd31815a73dcd5c1cda7af4f
Signed-off-by: Adam Litke <agl(a)us.ibm.com>
Reviewed-on: http://gerrit.ovirt.org/10013
Reviewed-by: Saggi Mizrahi <smizrahi(a)redhat.com>
Tested-by: Saggi Mizrahi <smizrahi(a)redhat.com>
---
M vdsm_api/vdsmapi-schema.json
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/20/10020/1
diff --git a/vdsm_api/vdsmapi-schema.json b/vdsm_api/vdsmapi-schema.json
index 9772e18..8f56df0 100644
--- a/vdsm_api/vdsmapi-schema.json
+++ b/vdsm_api/vdsmapi-schema.json
@@ -1681,6 +1681,8 @@
#
# @channel: A host-guest communication channel
#
+# @console: A console device
+#
# Since: 4.10.0
##
{'enum': 'VmDeviceType',
--
To view, visit http://gerrit.ovirt.org/10020
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icd7db71a4cd1a2addd31815a73dcd5c1cda7af4f
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.2
Gerrit-Owner: Antoni Segura Puimedon <asegurap(a)redhat.com>
Gerrit-Reviewer: Adam Litke <agl(a)us.ibm.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi(a)redhat.com>
Hello Adam Litke, Saggi Mizrahi,
I'd like you to do a code review. Please visit
http://gerrit.ovirt.org/10019
to review the following change.
Change subject: schema: Fix schema for VM.updateDevice
......................................................................
schema: Fix schema for VM.updateDevice
Another recent update broke the schema file. I'll take the blame for this one
since I approved the change :) Some missing and/or malformed data in comments
was causing the process-schema script to fail. Another reason for validating
the schema during the build.
Change-Id: If88596050ace9511bcc7be65ee46645359e30532
Signed-off-by: Adam Litke <agl(a)us.ibm.com>
Reviewed-on: http://gerrit.ovirt.org/10012
Reviewed-by: Saggi Mizrahi <smizrahi(a)redhat.com>
Tested-by: Saggi Mizrahi <smizrahi(a)redhat.com>
---
M vdsm_api/vdsmapi-schema.json
1 file changed, 5 insertions(+), 4 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/19/10019/1
diff --git a/vdsm_api/vdsmapi-schema.json b/vdsm_api/vdsmapi-schema.json
index 9772e18..487e69a 100644
--- a/vdsm_api/vdsmapi-schema.json
+++ b/vdsm_api/vdsmapi-schema.json
@@ -4894,10 +4894,12 @@
##
# @vmUpdateDeviceParams:
#
+# A discriminated record of update parameters for a VM device.
+#
# @deviceType: The VM device type to update. For example 'interface' for
# network devices or 'disk' for disk storage devices.
#
-# Since 4.10.3
+# Since: 4.10.3
##
{'type': 'vmUpdateDeviceParams',
'data': {'deviceType': 'VmDeviceType'},
@@ -4924,11 +4926,11 @@
# by alias. If omitted, it keeps the current mirroring
# configuration.
#
-# Since 4.10.3
+# Since: 4.10.3
##
{'type': 'vmUpdateInterfaceDeviceParams',
'data': {'*network': 'str', '*linkActive': 'bool',
- 'alias': 'str', '*portMirroring': '[str]'}}
+ 'alias': 'str', '*portMirroring': ['str']}}
##
# @VM.updateDevice:
@@ -4943,7 +4945,6 @@
# The VM definition, as updated
#
# Since: 4.10.3
-#
##
{'command': {'class': 'VM', 'name': 'updateDevice'},
'data': {'vmId': 'UUID', 'params': 'vmUpdateDeviceParams'},
--
To view, visit http://gerrit.ovirt.org/10019
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If88596050ace9511bcc7be65ee46645359e30532
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.2
Gerrit-Owner: Antoni Segura Puimedon <asegurap(a)redhat.com>
Gerrit-Reviewer: Adam Litke <agl(a)us.ibm.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi(a)redhat.com>
Yeela Kaplan has uploaded a new change for review.
Change subject: Take care of 'No devices found' when calling dmsetup status
......................................................................
Take care of 'No devices found' when calling dmsetup status
When there are no devices dmsetup status
will return only: 'No devices found'
Change-Id: Ibb487feab43741267e4f7027c1baf033148683c1
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=881947
Signed-off-by: Yeela Kaplan <ykaplan(a)redhat.com>
---
M vdsm/storage/devicemapper.py
1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/35/10035/1
diff --git a/vdsm/storage/devicemapper.py b/vdsm/storage/devicemapper.py
index a1651e0..9263a4b 100644
--- a/vdsm/storage/devicemapper.py
+++ b/vdsm/storage/devicemapper.py
@@ -176,7 +176,14 @@
res = {}
for statusLine in out:
- devName, statusLine = statusLine.split(":", 1)
+ try:
+ devName, statusLine = statusLine.split(":", 1)
+ except ValueError:
+ if len(out) == 1:
+ return res
+ else:
+ raise
+
for m in PATH_STATUS_RE.finditer(statusLine):
devNum, status = m.groups()
physdevName = findDev(*[int(i) for i in devNum.split(":")])
--
To view, visit http://gerrit.ovirt.org/10035
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibb487feab43741267e4f7027c1baf033148683c1
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <ykaplan(a)redhat.com>
Antoni Segura Puimedon has uploaded a new change for review.
Change subject: Remove redundant vlan device deletion.
......................................................................
Remove redundant vlan device deletion.
ifdown-eth has a clause that on ifdown of a vlan interface, said
interface is deleted using ip link delete xxx type vlan. That
happens synchronously and just one line before we do the deletion
ourselves and generates a lot of FAILED messages in vdsm.log.
Change-Id: I3b9b6aea80ad372363aa54e3d4173ab2c1f8af7e
Signed-off-by: Antoni S. Puimedon <asegurap(a)redhat.com>
---
M vdsm/configNetwork.py
1 file changed, 0 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/08/10008/1
diff --git a/vdsm/configNetwork.py b/vdsm/configNetwork.py
index e6daa68..711a0d4 100755
--- a/vdsm/configNetwork.py
+++ b/vdsm/configNetwork.py
@@ -558,7 +558,6 @@
def removeVlan(self, vlan, iface):
vlandev = iface + '.' + vlan
ifdown(vlandev)
- execCmd([constants.EXT_IPROUTE, 'link', 'del', vlandev])
self._backup(self.NET_CONF_PREF + iface + '.' + vlan)
self._removeFile(self.NET_CONF_PREF + iface + '.' + vlan)
--
To view, visit http://gerrit.ovirt.org/10008
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3b9b6aea80ad372363aa54e3d4173ab2c1f8af7e
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Antoni Segura Puimedon <asegurap(a)redhat.com>
Royce Lv has uploaded a new change for review.
Change subject: add general test to be compatible for xmlrpc and rest
......................................................................
add general test to be compatible for xmlrpc and rest
this allow xmlrpc and rest to share common functional testcases
and different binding to handle their own interface
use def file to make test case dynamically changable
Change-Id: I00449f9c22800e2b00109990a7e535da986c5d48
Signed-off-by: Royce Lv<lvroyce(a)linux.vnet.ibm.com>
---
M configure.ac
M tests/functional/Makefile.am
A tests/functional/SampleDef/Makefile.am
A tests/functional/SampleDef/testBindingUp.def
A tests/functional/defLoader.py
A tests/functional/generalTest.py
M vdsm.spec.in
7 files changed, 121 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/08/5308/1
--
To view, visit http://gerrit.ovirt.org/5308
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I00449f9c22800e2b00109990a7e535da986c5d48
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Royce Lv <lvroyce(a)linux.vnet.ibm.com>