pcp
[Top] [All Lists]

Re: pmdajson test failure on RHEL6

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: pmdajson test failure on RHEL6
From: David Smith <dsmith@xxxxxxxxxx>
Date: Tue, 16 Jun 2015 15:35:38 -0500
Cc: pcp developers <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1245491789.18958076.1434427125561.JavaMail.zimbra@xxxxxxxxxx>
References: <1245491789.18958076.1434427125561.JavaMail.zimbra@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
On 06/15/2015 10:58 PM, Nathan Scott wrote:
> Hi David,
> 
> I'm seeing the attached QA failure on RHEL 6.6 currently, any
> ideas what might be causing this?  I changed the test as below
> because the json.log file from the PMDA is otherwise removed,
> but I was none the wiser after doing that (the log file hasn't
> got any stack trace, just the initial "Starting PMDA..." line) 
> 
> diff --git a/qa/1052 b/qa/1052
> index 18d8b69..53a8246 100755
> --- a/qa/1052
> +++ b/qa/1052
> @@ -216,6 +216,7 @@ PCP_PYTHON_PMNS=root $python "$pmda_script" > ${pmns_root}
>  
>  # Start dbpmda in the background, redirecting its stdin/stdout to the
>  # fifos.
> +cd $here
>  $sudo dbpmda -n ${pmns_root} -ie <${fifo_in} >${fifo_out} 2>&1 &
>  
>  # Open fd 3 for write and fd 4 for read. Note that we need to avoid

I've scratched my head over this for a good bit of today, and I finally
figured it out. RHEL6 has python 2.6. The json.load() function in python
2.6 doesn't support the 'object_pairs_hook' which the json pmda uses. I
haven't found a fix or workaround yet.

-- 
David Smith
dsmith@xxxxxxxxxx
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)

<Prev in Thread] Current Thread [Next in Thread>