mysql driver gives ToozConnectionError error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tooz |
Fix Released
|
Medium
|
Abhijeet Malawade |
Bug Description
When I try to use tooz 'mysql' driver for distributed locking, it gives below errors:
1. It gives 'ImportError':
>>> coordinator = coordination.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "tooz/coordinat
invoke_
File "/usr/local/
verify_
File "/usr/local/
verify_
File "/usr/local/
self.
File "/usr/local/
raise err
ImportError: No module named pymysql
>>>
It is giving this error because 'pymysql' is not added in 'requirements.txt' file (it is present in test-requiremen
2. after manually installing 'pymysql' I am getting below error:
>>> from tooz import coordination
>>>
>>> coordinator = coordination.
>>> coordinator.start()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "tooz/coordinat
self._start()
File "tooz/drivers/
raise coordination.
tooz.coordinati
>>>
tooz is not parsing mysql connection string properly.
Here tooz is using oslo_utils for parsing connection string (https:/
and using parsed_url.netloc (https:/
Insted of 'parsed_url.netloc' need to use 'parsed_
Changed in python-tooz: | |
assignee: | nobody → Abhijeet Malawade (abhijeet-malawade) |
Changed in python-tooz: | |
status: | New → In Progress |
Changed in python-tooz: | |
status: | In Progress → Invalid |
status: | Invalid → Triaged |
importance: | Undecided → Medium |
Changed in python-tooz: | |
status: | Triaged → In Progress |
description: | updated |
Changed in python-tooz: | |
milestone: | none → 0.13.2 |
status: | Fix Committed → Fix Released |
Review link : https:/ /review. openstack. org/#/c/ 159835/