pcp
[Top] [All Lists]

Re: [pcp] pmrep error on RHEL6.4 / python2.66

To: Nathan Scott <nathans@xxxxxxxxxx>, Mark Goodwin <mgoodwin@xxxxxxxxxx>
Subject: Re: [pcp] pmrep error on RHEL6.4 / python2.66
From: Marko Myllynen <myllynen@xxxxxxxxxx>
Date: Wed, 17 Feb 2016 08:48:44 +0200
Cc: pcp <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <2070905202.21415902.1455662557880.JavaMail.zimbra@xxxxxxxxxx>
Organization: Red Hat
References: <56BC2729.2060301@xxxxxxxxxx> <56C381C3.9050604@xxxxxxxxxx> <2070905202.21415902.1455662557880.JavaMail.zimbra@xxxxxxxxxx>
Reply-to: Marko Myllynen <myllynen@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
Hi,

On 2016-02-17 00:42, Nathan Scott wrote:
> ----- Original Message -----
>> [...]
>>>
>>> This seems to be a common and known issue on such old python versions -
>>> is it worth doing something about it?
> 
> (yes, definitely)
> 
>> It depends - RHEL 6's Python 2.6 gained OrderedDict in RHEL 6.5:
> 
> PCP runs on many other platforms though, and it would be best to have pmrep
> available on all supported platforms (incl. EPEL5, but also many other non-
> Red Hat Linux distros, not to mention Mac OS X, *BSD and so on).

Supporting different distributions is entirely different thing than
supporting unsupported OS releases.

>> So if we're adjusting things for RHEL 6 I think perhaps we could
>> check whether OrderedDict is available but disabling pmrep altogether
>> sounds a step too far IMHO.
> 
> Can we rearrange the code to not use an OrderedDict?  (e.g switch to a
> regular dict, and arrange to have metrics sorted before displaying? -
> there is lots of other (needed?) use of OrderedDict's though so I'm not
> sure its that simple.

I'd rather put the effort into taking pmfg into use, that should also
increase overall readability and performance. I'll probably look into
that once the QA tests are a bit more complete.

Thanks,

-- 
Marko Myllynen

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