vault fails to install in lunar
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vault-charm |
New
|
Undecided
|
Unassigned |
Bug Description
When installing the charm from latest/edge on lunar we see the following error on unit-vault-X.log
###
2023-07-04 16:05:22 ERROR unit.vault/
Traceback (most recent call last):
File "/var/lib/
bus.discover()
File "/var/lib/
_register_
File "/var/lib/
_load_
File "/var/lib/
return importlib.
File "/usr/lib/
return _bootstrap.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "/var/lib/
import psycopg2
File "/var/lib/
from psycopg2._psycopg import ( # noqa
SystemError: initialization of _psycopg raised unreported exception
###
This is due to psycopg2 being pinned to 2.8.6, and it does not support python 3.11.
Unpinning the package and installing latest 2.9.6 works fine, seems that we need to pin to at least >2.9.5 [0] since that is what introduced python 3.11 support [1]
[0] https:/
[1] https:/
description: | updated |
description: | updated |
Submitted a PR: https:/ /review. opendev. org/c/openstack /charm- vault/+ /887658