make urlparse import python3 comaptible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Undecided
|
Amy Marrich |
Bug Description
Deploying the RC1 Release of Pike we ran into an import issue regarding the import of urlparse:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named 'urlparse'
fatal: [localhost]: FAILED! => {"failed": true, "msg": "Unexpected failure during module execution.", "stdout": ""}
We hit this issue twice:
/opt/openstack-
/etc/ansible/
The osa-filters.py seems to have a fix which we somehow did not yet receive (mbe needs merging for rc2): https:/
The release-
-import urlparse
+try:
+ from urllib.parse import urlparse
+except ImportError:
+ from urlparse import urlparse
Fix proposed to branch: master /review. openstack. org/496821
Review: https:/