Bug 1379674

Summary: urllib2 is not in python3
Product: [oVirt] otopi Reporter: Yedidyah Bar David <didi>
Component: CoreAssignee: Yedidyah Bar David <didi>
Status: CLOSED CURRENTRELEASE QA Contact: Pavol Brilla <pbrilla>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.6.0CC: bugs, didi, oourfali
Target Milestone: ovirt-4.1.0-rcKeywords: CodeChange
Target Release: 1.6.0Flags: rule-engine: ovirt-4.1+
rule-engine: planning_ack+
sbonazzo: devel_ack+
pstehlik: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-29 06:03:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1355626, 1379402    

Description Yedidyah Bar David 2016-09-27 12:20:14 UTC
Description of problem:

Several places in the code use urllib2. We need to adapt all of them to python3-compatible code.

Currently, with current otopi and test build of ovirt-setup-lib for python3:

# engine-setup
***L:ERROR Internal error: No module named 'urllib2'

Comment 1 Sandro Bonazzola 2016-10-05 09:03:33 UTC
reminder to look into http://python3porting.com/noconv.html#import-errors

Comment 2 Sandro Bonazzola 2016-10-18 13:44:32 UTC
Decided to use python-six as compatibility layer: https://pythonhosted.org/six/#module-six.moves

Comment 3 Sandro Bonazzola 2016-10-18 13:46:33 UTC
Note that the change can't be addressed within otopi, requires a change on each package using urllib2.
- ovirt-engine-setup-plugins-websocket-proxy
- ovirt-imageio-setup-plugins
- ovirt-hosted-engine-setup

Comment 4 Sandro Bonazzola 2016-12-02 08:53:09 UTC
Didi, can you check status of this bug?