This is a real bug, but unfortunately it's in SQLAlchemy, so OpenStack can't fix it directly without dumping SQLAlchemy, which would be a drastic change. Please report the bug to SQLAlchemy, though, so they are aware that there are people who'd like them to support IPv6 addresses in their connection URLs.
As a workaround, you can give the box 2001:db8::22 a DNS entry or hosts file entry and refer to it by hostname rather than IPv6 address.
This is a real bug, but unfortunately it's in SQLAlchemy, so OpenStack can't fix it directly without dumping SQLAlchemy, which would be a drastic change. Please report the bug to SQLAlchemy, though, so they are aware that there are people who'd like them to support IPv6 addresses in their connection URLs.
As a workaround, you can give the box 2001:db8::22 a DNS entry or hosts file entry and refer to it by hostname rather than IPv6 address.