Bug 1354481

Summary: Python 3 version of openwsman-python
Product: [Fedora] Fedora Reporter: Oyvind Albrigtsen <oalbrigt>
Component: openwsmanAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: praveen_paladugu, srinivas_g_gowda, vcrhonek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openwsman-2.6.2-7.fc26 openwsman-2.6.2-7.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-05 17:53:16 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:

Description Oyvind Albrigtsen 2016-07-11 12:10:34 UTC
Description of problem:
We need openwsman-python built for Python 3 to be able to build fence-agents-amt-ws with Python 3 support.

Version-Release number of selected component (if applicable):


How reproducible: 100%


Steps to Reproduce:
1. Install openwsman-python
2. Run python3
3. >>> import pywsman
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'pywsman'

Actual results: Missing pywsman module for Python 3.


Expected results: Able to load pywsman module from Python 3.


Additional info:

Comment 1 Jan Kurik 2016-07-26 05:10:45 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 2 Vitezslav Crhonek 2016-08-11 10:45:34 UTC
Hello Oyvind,

Please check openwsman-2.6.2-7.fc26 which I've built recently for Rawhide. It introduces new subpackage named openwsman-python3 with binding for Python 3. It also keeps old openwsman-python for Python 2.

I updated Openwsman only in Rawhide at this moment, because the change needed some tweaks in Openwsman's build system (as it doesn't support build for both Python versions) and I want to be sure that I didn't break something.

Please let me know your opinion and whether everything works as expected.

Comment 3 Oyvind Albrigtsen 2016-08-26 12:51:24 UTC
It works fine for building (where it also imports it, so it should be fine).

It fails in my rawhide VM though, so I guess that might be because it's not as up-to-date as the rawhide build-branch.

From my rawhide VM:
# python3
Python 3.5.2 (default, Aug 16 2016, 12:17:47) 
[GCC 6.1.1 20160810 (Red Hat 6.1.1-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywsman
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.5/site-packages/pywsman.py", line 109, in <module>
    OPENWSMAN_MAJOR = _pywsman.OPENWSMAN_MAJOR
AttributeError: module '_pywsman' has no attribute 'OPENWSMAN_MAJOR'

Comment 4 Fedora Update System 2016-08-31 07:59:48 UTC
openwsman-2.6.2-7.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0fe46c0ad2

Comment 5 Fedora Update System 2016-08-31 16:23:13 UTC
openwsman-2.6.2-7.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-0fe46c0ad2

Comment 6 Fedora Update System 2016-09-05 17:53:13 UTC
openwsman-2.6.2-7.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.