Eucaconsole version 4.3 cannot coexist with python-nss package

Follow

Eucaconsole version 4.3 will not function properly if the Python library python-nss is installed on the system. The python-nss library will not be installed by default if the system was built using a minimal Centos/RHEL ISO.

If python-nss is present, the error below will be seen when starting eucaconsole:

2016-07-05 08:42:42 ERROR Error handling request
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 45, in handle
self.handle_request(listener, req, client, addr)
File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 93, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 242, in _call_
response = self.invoke_subrequest(request, use_tweens=True)
File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 220, in invoke_subrequest
request._process_response_callbacks(response)
File "/usr/lib/python2.7/site-packages/pyramid/request.py", line 84, in _process_response_callbacks
callback(self, response)
File "/usr/lib/python2.7/site-packages/pyramid_beaker/_init_.py", line 30, in session_callback
self.persist()
File "/usr/lib/python2.7/site-packages/Beaker-1.8.0-py2.7.egg/beaker/session.py", line 735, in persist
self._session().save()
File "/usr/lib/python2.7/site-packages/Beaker-1.8.0-py2.7.egg/beaker/session.py", line 595, in save
self._create_cookie()
File "/usr/lib/python2.7/site-packages/Beaker-1.8.0-py2.7.egg/beaker/session.py", line 609, in _create_cookie
val = self._encrypt_data()
File "/usr/lib/python2.7/site-packages/Beaker-1.8.0-py2.7.egg/beaker/session.py", line 273, in _encrypt_data
return nonce + b64encode(crypto.aesEncrypt(data, encrypt_key))
File "/usr/lib/python2.7/site-packages/Beaker-1.8.0-py2.7.egg/beaker/crypto/nsscrypto.py", line 16, in aesEncrypt
nss.nss.CKA_ENCRYPT, nss.nss.SecItem(key))
NSPRError: (SEC_ERROR_PKCS11_DEVICE_ERROR) A PKCS #11 module returned CKR_DEVICE_ERROR, indicating that a problem has occurred with the token or slot.

In order to correct this error and get eucaconsole to function properly, uninstall the python-nss RPM with the 'yum' or 'rpm' commands.

NOTE: This is only relevant to Eucaconsole version 4.3. Versions 4.2.x and below will not encounter this issue.

This is described in further detail in issue GUI-2700

Have more questions? Submit a request

Comments

Powered by Zendesk