kea-shell fails to start due to dependency kea_conn being in wrong location
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
isc-kea (Debian) |
Fix Released
|
Unknown
|
|||
isc-kea (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Michał Małoszewski |
Bug Description
[Impact]
kea-shell fails to start on Jammy.
That issue is caused by the wrong location of kea_conn. Kea-shell tries to find python's kea_conn package from '/usr/lib/
The fix is to change the location of kea_conn.py and kea_connector3.py.
[Test Plan]
Make a container for testing:
$ lxc launch ubuntu-daily:jammy jammy-test
$ lxc shell jammy-test
Type in:
$ apt install kea-ctrl-agent
After it is installed, type in:
$ kea-shell
Example of failed output:
Traceback (most recent call last):
File "/usr/sbin/
from kea_conn import CARequest # CAResponse
ModuleNotFoundE
Example of successful output:
kea-shell starts without any issues
[Where problems could occur]
Since the kea-shell uses the python library from package python3-
It is unlikely but possible that users could hardcode a valid kea_conn location. Therefore if the same user wants to install isc-kea, there is a high risk that a warning message will appear and there is a necessity to unify it by removing it and installing the package again.
-------
kea-shell (included in package kea-ctrl-agent) uses python library from package python3-
By default, kea-shell tries to find python's kea_conn package from '/usr/lib/
$ /usr/sbin/kea-shell
Traceback (most recent call last):
File "/usr/sbin/
from kea_conn import CARequest # CAResponse
ModuleNotFoundE
$ sudo ln -sv /usr/lib/
'/usr/lib/
$ /usr/sbin/kea-shell
(starts and works as expected)
$ lsb_release -rd
Description: Ubuntu 22.04.2 LTS
Release: 22.04
$ apt-cache policy kea-ctrl-agent python3-
kea-ctrl-agent:
Installed: 2.0.2-1
Candidate: 2.0.2-1
Version table:
*** 2.0.2-1 500
500 http://
100 /var/lib/
python3-
Installed: 2.0.2-1
Candidate: 2.0.2-1
Version table:
*** 2.0.2-1 500
500 http://
100 /var/lib/
Related branches
- git-ubuntu bot: Approve
- Athos Ribeiro (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 60 lines (+15/-6)4 files modifieddebian/changelog (+7/-0)
debian/control (+2/-1)
debian/python3-kea-connector.install (+2/-2)
debian/rules (+4/-3)
Changed in isc-kea (Debian): | |
status: | Unknown → Fix Released |
Changed in isc-kea (Ubuntu Jammy): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
description: | updated |
description: | updated |
description: | updated |
tags: | added: server-todo |
I think this has been fixed in Debian in version 2.0.2-3, and in Ubuntu Kinetic and Lunar.
isc-kea (2.0.2-3) unstable; urgency=medium
* d/rules: configure: specify the Python site packages location. kea-connector. install: update paths accordingly
Related changes:
- d/python3-
Thanks to Kilian Krause (Closes: #1014995)
-- Paride Legovini <email address hidden> Wed, 20 Jul 2022 16:03:19 +0000