Package: dhcpy6d
Version: 1.0.3-1
Severity: important
Tags: patch fixed-upstream
Control: forwarded -1 https://github.com/HenriWahl/dhcpy6d/issues/47
Control: found -1 1.0.5-1

An issue has been upstream at
https://github.com/HenriWahl/dhcpy6d/issues/47 which at least affects
1.0.3 (as in Debian 11 Bullseye) up to 1.0.6 (released very recently)
and has been fixed upstream in 1.0.7 (released shortly after 1.0.6):

> Okt 01 02:01:32 iserv.stsbl.de dhcpy6d[6264]: Traceback (most recent call 
> last):
> Okt 01 02:01:32 iserv.stsbl.de dhcpy6d[6264]:   File 
> "/usr/lib/python3/dist-packages/dhcpy6d/client/__init__.py", line 231, in 
> build
> Okt 01 02:01:32 iserv.stsbl.de dhcpy6d[6264]:     from_config(client=self, 
> client_config=client_config, transaction=transaction)
> Okt 01 02:01:32 iserv.stsbl.de dhcpy6d[6264]:   File 
> "/usr/lib/python3/dist-packages/dhcpy6d/client/from_config.py", line 99, in 
> from_config
> Okt 01 02:01:32 iserv.stsbl.de dhcpy6d[6264]:     transaction.UserClass == 
> user_class):
> Okt 01 02:01:32 iserv.stsbl.de dhcpy6d[6264]: AttributeError: 'Transaction' 
> object has no attribute 'UserClass'
> Okt 01 02:01:32 iserv.stsbl.de dhcpy6d[6264]: 2021-10-01 02:01:32,173 dhcpy6d 
> ERROR build(): 'Transaction' object has no attribute 'UserClass'
> 
> Just found log after upgrading another production system to
> Bullseye. Seems to be related to boot files. As far as I can see, the
> UserClass was renamed to user_class is Transaction which is the only
> problem here.

The actual impact is though currently unclear to me (current Debian
package maintainer of dhcpy6d) and it doesn't seem to show up in a setup
with a minimal diff to the default configuration as I use for testing.

Depending on the actual impact, this might be a candidate for a stable
update, though. Nevertheless setting the severity to "important" as it is
causing a Python syntax error under some circumstances.

The complete upstream patch is available at
https://github.com/HenriWahl/dhcpy6d/commit/72c7e2a9fdfafde014b99b805817b2eb68a0cc47.patch

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'), 
(500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1, 
'buildd-experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.13.0-trunk-amd64 (SMP w/4 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages dhcpy6d depends on:
ii  adduser              3.118
ii  dpkg                 1.20.9
ii  init-system-helpers  1.60
ii  lsb-base             11.1.0
ii  python3              3.9.2-3
ii  python3-distro       1.6.0-2
ii  python3-dnspython    2.0.0-1
ii  ucf                  3.0043

dhcpy6d recommends no packages.

Versions of packages dhcpy6d suggests:
ii  python3-mysqldb   1.4.4-2+b3
ii  python3-psycopg2  2.8.6-2

-- Configuration Files:
/etc/dhcpy6d.conf changed:
[dhcpy6d]
interface = enp0s31f6
store_config = none
store_volatile = sqlite
store_sqlite_volatile = /var/lib/dhcpy6d/volatile.sqlite
log = on
log_file = /var/log/dhcpy6d.log
[address_default]
category = mac
pattern = fd01:db8:dead:beef:babe:$mac$


-- no debconf information

Reply via email to