From: Theo Buehler Subject: Re: salt: NameError: name 'rsa' is not defined To: Mikolaj Kucharski , robert@openbsd.org Cc: ports@openbsd.org Date: Thu, 22 Aug 2024 12:07:32 +0200 + robert On Thu, Aug 22, 2024 at 09:56:13AM +0000, Mikolaj Kucharski wrote: > On Thu, Aug 22, 2024 at 11:52:37AM +0200, Theo Buehler wrote: > > > File "/usr/local/lib/python3.11/site-packages/salt/crypt.py", line 147, in gen_keys > > > gen = rsa.generate_private_key(e, keysize) > > > ^^^ > > > NameError: name 'rsa' is not defined > > > 2024-08-22 08:31:45,971 [salt.crypt :284 ][INFO ][39203] Generating keys: /etc/salt/pki/minion > > > --->8--- > > > > > > Log file grows rapidly with above errors. I noticed this recently, so I > > > am not sure when this exactly started to happen. > > > > rsa seems to be used from py3-cryptography if available. Does the noise > > go away when you install that? > > Yes, running `pkg_add -a py3-cryptography` solves the issue. So I guess we want this, although I'm not 100% sure. cryptography is listed in some files below requirements/ but I don't know what that really means. Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/salt/Makefile,v diff -u -p -r1.186 Makefile --- Makefile 4 Aug 2024 05:58:23 -0000 1.186 +++ Makefile 22 Aug 2024 09:58:43 -0000 @@ -17,6 +17,7 @@ COMMENT = remote execution and configur MODPY_EGG_VERSION = 3006.9 DISTNAME = salt-${MODPY_EGG_VERSION} +REVISION = 0 CATEGORIES = sysutils net devel @@ -40,6 +41,7 @@ BUILD_DEPENDS = textproc/py-yaml${MODPY RUN_DEPENDS = devel/py-looseversion${MODPY_FLAVOR} \ devel/py-jmespath${MODPY_FLAVOR} \ net/py-msgpack${MODPY_FLAVOR}>=0.6.2v0 \ + security/py-cryptography${MODPY_FLAVOR} \ textproc/py-MarkupSafe${MODPY_FLAVOR} \ textproc/py-yaml${MODPY_FLAVOR} \ www/py-jinja2${MODPY_FLAVOR} \