Re: [sepia] Transition to Python 3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 17, 2018 at 2:47 PM, Patrick Donnelly <pdonnell@xxxxxxxxxx> wrote:
> On Mon, Apr 16, 2018 at 11:08 PM, Nathan Cutler <ncutler@xxxxxxx> wrote:
>> Background: Python 2 will be deprecated in 2020. Python 3 has been available
>> in all major Linux distros for years.
>>
>> Of course, Python 2 is *also* available in all major Linux distros, but this
>> is not going to be true for much longer. It will be deprecated and
>> eventually removed.
>>
>> Migration, then, is going to happen - it's just a question of "when".
>>
>> Given that Python 3 is available now, and will be supported for many years,
>> as opposed to Python 2 which will be going away and will not be supported,
>> the need to migrate our Python code to Python 3 will only become more
>> urgent, not less.
>>
>> Ceph contains the following Python code (please correct me if this list is
>> not complete):
>>
>> Python bindings (already migrated, i.e. Python 3 bindings are available)
>> MGR modules (migration in progress; no testing with Python 3, though)
>> ceph-volume (migration status: ?)
>> ceph-detect-init (migration status: ?)
>> ceph-disk (migration status: ?, deprecated, will be removed in Nautilus)
>> Python scripts needed for "make check" (migration in progress)
>> Python scripts needed for QA/teuthology (migration status: ?)
>> Other Python scripts (not packaged)
>
> + src/pybind/ceph_volume_client.py
>
> Other projects use ceph_volume_client  [1] and so simply porting to
> python3 is not trivial, right? As a Python casual: what's the
> suggested thing to do here?

I would suggest dual compatibility like what ceph-volume provides. In
our case, it doesn't matter what you use, the code just works
no need to change/remove anything.

That would be at odds to what Nathan is suggesting though, which is a
hard change to Python 3.

>
> [1] https://github.com/kubernetes-incubator/external-storage/blob/master/ceph/cephfs/cephfs_provisioner/cephfs_provisioner.py#L27
>
> --
> Patrick Donnelly
> _______________________________________________
> Sepia mailing list
> Sepia@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/sepia-ceph.com
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux