Bug 1379674 - urllib2 is not in python3
Summary: urllib2 is not in python3
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: otopi
Classification: oVirt
Component: Core
Version: 1.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.1.0-rc
: 1.6.0
Assignee: Yedidyah Bar David
QA Contact: Pavol Brilla
URL:
Whiteboard:
Depends On:
Blocks: oVirt_Fedora24_Support 1379402
TreeView+ depends on / blocked
 
Reported: 2016-09-27 12:20 UTC by Yedidyah Bar David
Modified: 2019-04-28 11:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-01-29 06:03:34 UTC
oVirt Team: Integration
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: planning_ack+
sbonazzo: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 65550 0 None None None 2017-01-13 13:49:59 UTC
oVirt gerrit 65556 0 None None None 2016-10-18 12:04:24 UTC
oVirt gerrit 65558 0 None None None 2016-10-18 14:40:21 UTC

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?


Note You need to log in before you can comment on or make changes to this bug.