[ovs-dev] [PATCH 1/2] Increase prerequisite from Python 2.4 to Python 2.7.

Russell Bryant rbryant at redhat.com
Wed May 27 04:29:31 UTC 2015


On 05/27/2015 12:11 AM, Russell Bryant wrote:
> On 05/26/2015 10:14 PM, Ben Pfaff wrote:
>> On Tue, May 26, 2015 at 10:31:57AM -0400, Russell Bryant wrote:
>>> On 05/21/2015 10:23 PM, Andy Hill wrote:
>>>>> As a consequence, this requires dropping support for old versions of
>>>>> XenServer.  I don't expect that to be much of a problem.
>>>>
>>>> Unfortunately, the most recent release of XenServer (6.5) still ships
>>>> with Python 2.4.
>>>>
>>>>> +Open vSwitch requires a version of XenServer (XCP) that includes a
>>>>> +modern version of Python (2.7 or later).  This excludes older releases
>>>>> +based on Centos, which have Python 2.4.
>>>>
>>>> XCP seems looks EOL on after XenServer was open sourced.[1]
>>>>
>>>> Can we defer this until a later Open vSwitch release? Maybe the next LTS?
>>>>
>>>> [1] http://www.xenproject.org/component/content/article/100-misc/148-xcp-and-xenserver-faq.html
>>>> - See "I am a user of XCP: how am I impacted?"
>>>
>>> This is going to get more and more painful.  We may just have to fork
>>> this library for OpenStack for now so we can carry a patch set to
>>> support Python 3.  It's a last resort, but we can't really wait if we
>>> want to use this in OpenStack.
>>
>> What if we apply these to the ovn branch, and then plan to merge ovn
>> into master only after OVS 2.4 is released?
> 
> I suppose that works.  I'd hate for this to be the only thing blocking
> merging ovn to master at some point, though.
> 

Also, it may be worth noting that the OVN integration isn't the only
OpenStack code using this library.  In the latest release, the existing
OVS integration in OpenStack Neutron was updated to use it.  You can
still configure it to go back to the old code that just calls ovs-vsctl,
though.

In the current release cycle, there is a goal to port Neutron to Python 3.

http://specs.openstack.org/openstack/neutron-specs/specs/liberty/neutron-python3.html

This is one of the dependencies that has Python 3 issues, but at least
there is a fallback.  Since there's a fallback, the primary immediate
blocker is that we can't install the library for Neutron's unit tests,
since Neutron is already gating on a Python 3.4 unit test CI job.

The OVN integration doesn't have a fallback.  It used to support
ovn-nbctl, but we ripped it out since it shouldn't be used in this case
without transaction support.

-- 
Russell Bryant



More information about the dev mailing list