Martin Sivák has uploaded a new change for review.
Change subject: Restore the default value of rhev_build in the spec file
......................................................................
Restore the default value of rhev_build in the spec file
Change-Id: I8deca956e80bcacad1e6446975fe916d9247abdd
Signed-off-by: Martin Sivak <mars(a)montik.net>
---
M vdsm.spec.in
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/94/35794/1
diff --git a/vdsm.spec.in b/vdsm.spec.in
index 7f878c2..7388aae 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -15,6 +15,9 @@
# Fedora official build
%global fedora_koji_build 0
+# RHEV build - overridable using rpmbuild --define "rhev_build 1"
+%{!?rhev_build: %global rhev_build 0}
+
# Default to skipping autoreconf. Distros can change just this one line
# (or provide a command-line override) if they backport any patches that
# touch configure.ac or Makefile.am.
--
To view, visit http://gerrit.ovirt.org/35794
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8deca956e80bcacad1e6446975fe916d9247abdd
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Sivák <msivak(a)redhat.com>
Francesco Romani has uploaded a new change for review.
Change subject: sampling: live merge: avoid wasteful picklecopy
......................................................................
sampling: live merge: avoid wasteful picklecopy
The Vm.queryBlockJobs() API always return a fresh dictionary,
so it is safe to copy it directly, saving a picklecopy.
Change-Id: I1b23e42f14f9d334734ee1c77c9d11c33afe5aec
Signed-off-by: Francesco Romani <fromani(a)redhat.com>
---
M vdsm/virt/vm.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/21/35621/1
diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py
index adad036..5d1c785 100644
--- a/vdsm/virt/vm.py
+++ b/vdsm/virt/vm.py
@@ -550,7 +550,7 @@
stats['vNodeRuntimeInfo'] = vmNumaNodeRuntimeMap
def _getVmJobs(self, stats):
- info = utils.picklecopy(self.sampleVmJobs.getLastSample())
+ info = self.sampleVmJobs.getLastSample()
if info is not None:
# If we are unable to collect stats we must not return anything at
# all since an empty dictionary would be interpreted as vm jobs
--
To view, visit http://gerrit.ovirt.org/35621
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1b23e42f14f9d334734ee1c77c9d11c33afe5aec
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani(a)redhat.com>
Martin Sivák has posted comments on this change.
Change subject: jsonrpc: VM_updateVmPolicy
......................................................................
Patch Set 2: Code-Review+1
--
To view, visit http://gerrit.ovirt.org/35556
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I39c3e0a675b0574c25a2602f672ed6a36a05547c
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Piotr Kliczewski <piotr.kliczewski(a)gmail.com>
Gerrit-Reviewer: Martin Sivák <msivak(a)redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali(a)redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski(a)gmail.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: No
Martin Sivák has posted comments on this change.
Change subject: jsonrpc: VM_setCpuTuneQuota
......................................................................
Patch Set 2: Code-Review+1
--
To view, visit http://gerrit.ovirt.org/35553
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I397d12419ff1e108c57ad6098f7ca1be5ef44711
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Piotr Kliczewski <piotr.kliczewski(a)gmail.com>
Gerrit-Reviewer: Martin Sivák <msivak(a)redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali(a)redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski(a)gmail.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: No
Martin Sivák has posted comments on this change.
Change subject: jsonrpc: VM_setCpuTunePeriod
......................................................................
Patch Set 2: Code-Review+1
--
To view, visit http://gerrit.ovirt.org/35552
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Iac8159c951bb9b85914a51e78e9678c2918097b6
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Piotr Kliczewski <piotr.kliczewski(a)gmail.com>
Gerrit-Reviewer: Martin Sivák <msivak(a)redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali(a)redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski(a)gmail.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: No
Francesco Romani has uploaded a new change for review.
Change subject: vdscli: 'port' argument must be an int
......................................................................
vdscli: 'port' argument must be an int
The 'port' parameter of the cannonizeHostPort
function should be an int, not a string, and
should be treated as such.
This patch fixes the code to so, removing
TODOs along the way.
Change-Id: Ic2af987cc0a381e10d898888562865f877a24686
Signed-off-by: Francesco Romani <fromani(a)redhat.com>
---
M lib/vdsm/vdscli.py
M tests/vdsClientTests.py
M vdsm/clientIF.py
M vdsm/virt/migration.py
4 files changed, 12 insertions(+), 13 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/73/35273/1
diff --git a/lib/vdsm/vdscli.py b/lib/vdsm/vdscli.py
index d4bd39a..2908775 100644
--- a/lib/vdsm/vdscli.py
+++ b/lib/vdsm/vdscli.py
@@ -30,7 +30,7 @@
_USE_SSL = False
_TRUSTED_STORE_PATH = '/etc/pki/vdsm'
_ADDRESS = '0'
-_PORT = '54321'
+_PORT = 54321
def wrap_transport(transport):
@@ -67,7 +67,7 @@
config.read(VDSM_CONF)
_USE_SSL = config.getboolean('vars', 'ssl')
_TRUSTED_STORE_PATH = config.get('vars', 'trust_store_path')
- _PORT = config.get('addresses', 'management_port')
+ _PORT = config.getint('addresses', 'management_port')
_ADDRESS = config.get('addresses', 'management_ip')
except:
pass
@@ -86,9 +86,10 @@
# hostPort is in rfc3986 'host [ ":" port ]' format
hostPort = re.match(r'(?P<Host>.+?)(:(?P<Port>\d+))?$', hostPort)
addr = hostPort.group('Host')
- port = hostPort.group('Port') or port
+ if hostPort.group('Port'):
+ port = int(hostPort.group('Port'))
- return addr + ':' + port
+ return '%s:%i' % (addr, port)
def connect(hostPort=None, useSSL=None, tsPath=None,
diff --git a/tests/vdsClientTests.py b/tests/vdsClientTests.py
index aee4fa7..071da94 100644
--- a/tests/vdsClientTests.py
+++ b/tests/vdsClientTests.py
@@ -546,11 +546,11 @@
self.assertIsIpAddressWithPort(vdscli.cannonizeHostPort(None))
def testNoneArgumentAndPort(self):
- port = '65432'
+ port = 65432
res = vdscli.cannonizeHostPort(None, port)
self.assertIsIpAddressWithPort(res)
# address must include the given port
- self.assertTrue(res.endswith(port))
+ self.assertTrue(res.endswith(str(port)))
def testEmptyAddress(self):
# FIXME: fix cannonizeHostPort to handle this error or to
@@ -571,18 +571,16 @@
self.assertTrue(res.endswith(str(port)))
def testAddressWithPortParameter(self):
- # TODO: fix cannonizeHostPort to require port as int
addr = '127.0.0.1'
- port = '65432'
+ port = 65432
res = vdscli.cannonizeHostPort(addr, port)
self.assertIsIpAddressWithPort(res)
# address must include the given port
- self.assertTrue(res.endswith(port))
+ self.assertTrue(res.endswith(str(port)))
def testAddressWithBadPortParameter(self):
- # TODO: fix cannonizeHostPort to require port as int
addr = '127.0.0.1'
- port = 65432
+ port = '65432'
self.assertRaises(TypeError,
vdscli.cannonizeHostPort,
addr, port)
diff --git a/vdsm/clientIF.py b/vdsm/clientIF.py
index a17fd20..f16a096 100644
--- a/vdsm/clientIF.py
+++ b/vdsm/clientIF.py
@@ -104,7 +104,7 @@
self.threadLocal.client = ''
host = config.get('addresses', 'management_ip')
- port = config.get('addresses', 'management_port')
+ port = config.getint('addresses', 'management_port')
self._createAcceptor(host, port)
self._prepareXMLRPCBinding()
self._prepareJSONRPCBinding()
diff --git a/vdsm/virt/migration.py b/vdsm/virt/migration.py
index 2d890c0..7015c16 100644
--- a/vdsm/virt/migration.py
+++ b/vdsm/virt/migration.py
@@ -107,7 +107,7 @@
# This assumes xmlrpc
hostPort = vdscli.cannonizeHostPort(
self._dst,
- config.get('addresses', 'management_port'))
+ config.getint('addresses', 'management_port'))
self.remoteHost, _ = hostPort.rsplit(':', 1)
if config.getboolean('vars', 'ssl'):
--
To view, visit http://gerrit.ovirt.org/35273
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic2af987cc0a381e10d898888562865f877a24686
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani(a)redhat.com>