Bug 1741023
| Summary: | nfs-ganesha depends on Python 2 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Lumír Balhar <lbalhar> |
| Component: | nfs-ganesha | Assignee: | Kaleb KEITHLEY <kkeithle> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dang, jthottan, kkeithle, pviktori, skoduri |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | nfs-ganesha-2.8.2-5.fc31, nfs-ganesha-2.8.2-1.fc32 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-08-14 23:40:10 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1698500 | ||
|
Description
Lumír Balhar
2019-08-14 05:24:45 UTC
Ganesha itself is written in C, and provides no python bindings. However, we provide a DBUS API for interacting with the running Ganesha, and provide a set of Python utilities to make using this API easy for administrators. We have no problem with these being ported to python 3, and are willing to help, although none of us are python experts (and most of us haven't done such a port). We have tentative plans to move to python 3 upstream, but not much work has been done on it so far. All the python in Ganesha lives in src/scripts/ganeshactl. All of it currently uses python2 in the shebang. It should be fairly straight forward, with the only gotcha possibly being the use of PyQT4. nfs-ganesha-2.8.x – which is what's in rawhide – uses python3. The only python in nfs-ganesha is in the nfs-ganesha-utils RPM. I.e. `rpm -qp --requires nfs-ganesha-utils-2.8.2-3.fc31.x86_64.rpm` ... python(abi) = 3.7 python3 python3-dbus python3-gobject python3-pyparsing ... Beyond that I'm not aware of anything that has any left over dependencies on python2. If you are aware of some specific issue please provide a link to what you're looking at. Closing as NOTABUG. > If you are aware of some specific issue please provide a link to what you're looking at.
Sure! Sorry for not providing that initially -- it takes some manual digging.
It's in the nfs-ganesha-gpfs subpackage:
$ sudo dnf repoquery --repo rawhide --requires nfs-ganesha-gpfs
/usr/bin/python2
[...]
There's a stray python2 shebang in /usr/libexec/ganesha/gpfs-epoch. The script looks py3-compatible at first glance. Could you switch to python3?
fixed in nfs-ganesha-2.8.2-5.fc31, nfs-ganesha-2.8.2-1.fc32 package will be updated in bodhi once bodhi recognizes the fc31/f31 release/tag mappings |