Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Transaction' object has no attribute 'UserClass' #47

Closed
FelixJacobi opened this issue Oct 1, 2021 · 9 comments
Closed

Comments

@FelixJacobi
Copy link
Contributor

FelixJacobi commented Oct 1, 2021

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.

HenriWahl pushed a commit that referenced this issue Oct 1, 2021
@HenriWahl
Copy link
Owner

Please check latest release from https://github.com/HenriWahl/dhcpy6d/releases/tag/latest

@xtaran
Copy link
Contributor

xtaran commented Oct 1, 2021

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.

So this is an issue in Debian's official 1.0.3-1 package in Bullseye as well? Or did you use dhcpy6d of git or upstream release tar balls?

@HenriWahl
Copy link
Owner

@xtaran
Copy link
Contributor

xtaran commented Oct 1, 2021

Yes, sad to say but this error exists in 1.0.3 Debian package too:

https://salsa.debian.org/search?utf8=%E2%9C%93&search=userclass&group_id=2&project_id=52793&scope=&search_code=true&snippets=false&repository_ref=master&nav_source=navbar

This seems to look in the current 1.0.5-1 package from Debian Unstable/Testing. But, yes, 1.0.3-1 has that as well:
https://salsa.debian.org/search?utf8=%E2%9C%93&search=userclass&group_id=2&project_id=52793&scope=&search_code=true&snippets=false&repository_ref=debian%2F1.0.3-1&nav_source=navbar

So I should probably prepare a stable update in addition to preparing an upload of 1.0.7-1 — depending on the severity of this issue.

@xtaran
Copy link
Contributor

xtaran commented Oct 1, 2021

@HenriWahl: Can you give me a summary of the impact of this issue, i.e. what breakage can be caused by this, what feature doesn't work? I don't see such traces in my logs, at least not in those logs from this month.

@xtaran
Copy link
Contributor

xtaran commented Oct 1, 2021

Tracked in Debian as https://bugs.debian.org/995484

@HenriWahl
Copy link
Owner

@xtaran this bug leads to PXE boot malfunction. Not the main feature but unpleasant anyway.

@xtaran
Copy link
Contributor

xtaran commented Oct 2, 2021

@xtaran this bug leads to PXE boot malfunction. Not the main feature but unpleasant anyway.

Ah, thanks! I was already wondering what "boot" in the original bug report refers, too. Thanks for the clarification!

@FelixJacobi
Copy link
Contributor Author

Please check latest release from https://github.com/HenriWahl/dhcpy6d/releases/tag/latest

Works fine for me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants