Hi Neil,

Thanks for your response.

Yes I was attempting to install lava-tool on RHEL manually using the python 
modules available.  Our entire LAVA setup within ARM is on Ubuntu, however I 
was attempting to install lava-tool as a quick fix to allow our CI system to 
easily submit jobs from within ARM's cluster, which is predominantly made up of 
RHEL machines,  I knew I was pushing my luck attempting it, but I thought it 
was worth a try if it meant we could use the supported lava tools.

We are very much restricted on what we can do within our cluster so I suspect 
the Debian chroot or VM suggestion won't work in this environment either.  It 
is probably best if I create a plugin for our CI system which uses XMLRPC 
directly,

Thanks again
Dean
________________________________________
From: Neil Williams [neil.willi...@linaro.org]
Sent: 06 August 2014 14:22
To: Dean Arnold
Cc: Basil Eljuse; Linaro Validation
Subject: Re: lava-tool

What distribution are you using? It looks like RHEL.

lava-tool is in Debian: https://packages.debian.org/jessie/lava-tool
and thereby in Ubuntu Utopic Unicorn.

All of the dependency information is on that page.

Currently, LAVA has no support for RHEL and we haven't found anyone
who can prepare and maintain any of the LAVA packages for RHEL or
Fedora. (We've asked various people and groups so far.) It looks like
the xmlrpc support in RHEL does not match that available in Debian or
Ubuntu. The actual source code for xmlrpclib as installed on Debian is
here:
http://sources.debian.net/src/python2.7/2.7.8-3/Lib/xmlrpclib.py

That doesn't appear to have changed and has the same parse_response
support. It sounds like this could actually be a problem in the URL
handling code within python on RHEL.

Details of python version already in Debian:  2.7.8-3
https://packages.debian.org/jessie/python2.7

What you can do is use the RHEL tools to create a Debian chroot or a VM.

It is also possible to use XMLRPC directly, once a token has been
created which may help reduce the amount of code involved:

#!/usr/bin/python

import xmlrpclib
import json

token = "<REPLACE_YOUR_TOKEN>"
user = "<REPLACE_YOUR_USERNAME>"
filename = "<REPLACE_JSON_FILE_PATH>"

with open(filename, 'r') as file:
        config = json.load(file)
        server =
xmlrpclib.ServerProxy("http://%s:%s...@validation.linaro.org/RPC2/"; %
(user, token))
        job_id = server.scheduler.submit_job(json.dumps(config))
        print job_id

Other XMLRPC calls can also be made to verify if the XMLRPC connection
itself is working:
https://validation.linaro.org/api/help/

Antonio is no longer part of Linaro, he has started a job working for
the Brazilian government. He is still contactable via Debian but his
Linaro email address will fail at some point.

In terms of the right place for queries, Linaro Validation
<linaro-validation@lists.linaro.org> would still be the correct place
for this enquiry.

Choosing people based on recent commits can be unreliable as those
people may well simply be making minor updates to the setup of the
package and not the package code itself.

On 6 August 2014 13:57, Dean Arnold <dean.arn...@arm.com> wrote:
> Hi Neil/Antonio,
>
> if lava-tool isn't something you are familiar with, please feel free to fob 
> me off to somebody else.  I just chose you as I saw you had made commits in 
> git.linaro.org :)
>
> Do you know which version of python it is recommended to run lava-tool 
> against please?  I have installed version 0.11.1 along with python 2.7 but 
> when attempting to run the auth-add command I am getting the following error..
>
> $ lava-tool auth-add http://pdswa...@pdsw-lava.cambridge.arm.com
> Paste token for http://pdswa...@pdsw-lava.cambridge.arm.com/RPC2/:
> Traceback (most recent call last):
>   File "/arm/tools/python/lava-tool_py2.7/0.11.1/rhe6-x86_64/bin/lava-tool", 
> line 9, in <module>
>     load_entry_point('lava-tool==0.11.1', 'console_scripts', 'lava-tool')()
>   File "build/bdist.linux-x86_64/egg/lava_tool/dispatcher.py", line 49, in 
> main
>   File "build/bdist.linux-x86_64/egg/lava/tool/dispatcher.py", line 153, in 
> run
>   File "build/bdist.linux-x86_64/egg/lava/tool/dispatcher.py", line 143, in 
> dispatch
>   File "build/bdist.linux-x86_64/egg/lava_tool/commands/auth.py", line 102, 
> in invoke
>   File "/arm/tools/python/python/2.7/rhe6-x86_64/lib/python2.7/xmlrpclib.py", 
> line 1224, in __call__
>     return self.__send(self.__name, args)
>   File "/arm/tools/python/python/2.7/rhe6-x86_64/lib/python2.7/xmlrpclib.py", 
> line 1570, in __request
>     verbose=self.__verbose
>   File "build/bdist.linux-x86_64/egg/lava_tool/authtoken.py", line 91, in 
> request
>   File "/arm/tools/python/python/2.7/rhe6-x86_64/lib/python2.7/xmlrpclib.py", 
> line 1449, in parse_response
>     if response.getheader("Content-Encoding", "") == "gzip":
> AttributeError: addinfourl instance has no attribute 'getheader'
>
> having had a quick google about, a few places have mentioned changes to 
> xmlrpclib in Python 2.7 which may have caused this.  Do you know if lava-tool 
> works fine with python 2.6?  Alternatively.. if I am just doing something 
> stupid and this is nothing to do with the version, please let me know.
>
> Sorry if this is a daft question
> Dean
>
> -- IMPORTANT NOTICE: The contents of this email and any attachments are 
> confidential and may also be privileged. If you are not the intended 
> recipient, please notify the sender immediately and do not disclose the 
> contents to any other person, use it for any purpose, or store or copy the 
> information in any medium.  Thank you.
>
> ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, 
> Registered in England & Wales, Company No:  2557590
> ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, 
> Registered in England & Wales, Company No:  2548782
>



--

Neil Williams
=============
neil.willi...@linaro.org
http://www.linux.codehelp.co.uk/

-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium.  Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered 
in England & Wales, Company No:  2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, 
Registered in England & Wales, Company No:  2548782


_______________________________________________
linaro-validation mailing list
linaro-validation@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-validation

Reply via email to