Merge: f56fc9e 3b11e39
Author: Jiri Pirko <jiri(a)resnulli.us>
Date: Fri Apr 17 15:40:04 2015 +0200
Cover letter for "PerfRepo support"
The following set of patches implements basic support for talking to PerfRepo.
There still are some placeholders for functions that are not important for now
and bugs are to be expected.
There is a short example work flow example in the last patch of the set but you
still need to have a PerfRepo instance available to try everything out, I'll be
sending a follow-up email to interested parties that will explain in more detail
how to try this out.
Any comments and ideas are always welcome.
lnst/Common/Utils.py | 52 +++
lnst/Controller/NetTestController.py | 3 +-
lnst/Controller/NetTestResultSerializer.py | 3 +-
lnst/Controller/PerfRepo.py | 532 ++++++++++++++++++++++++++++
lnst/Controller/SlavePool.py | 17 +-
lnst/Controller/Task.py | 127 +++++++
6 files changed, 728 insertions(+), 6 deletions(-)
Author: Jiri Prochazka <jprochaz(a)redhat.com>
Date: Tue Apr 21 15:10:47 2015 +0200
Fix "Instance of 'dict' has no 'get_id' member" error
Found with pylint. This needs to be verified by original author of method, olichtne.
Probably method get_id should be called on the master inferface,
which is accessed by self._master['primary'] and not by self._master
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/Machine.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lnst/Controller/Machine.py b/lnst/Controller/Machine.py
index 8da1a10..1671e52 100644
@@ -553,7 +553,7 @@ class Interface(object):
def add_master(self, master, primary=True):
if primary and self._master["primary"] != None:
msg = "Interface %s already has a primary master."\
- % self._master.get_id()
+ % self._master["primary"].get_id()