[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError

2020-06-14 Thread Dr. Clemens Hardewig
Hmmm .. not sure whether this patch fixes all scenarios with nova-
compute:

We just created a new compute server from scratch with clean install ubuntu 
focal, python 3.8  and Ussuri nova-compute (nova-compute/focal-updates,now 
2:21.0.0-0ubuntu0.20.04.1). 
I double checked that this patch has been applied (which is in 
/usr/lib/python3/dist-upgrade/nova/monkey_patch.py). 
However, my syslog is spammed with 
Jun 14 09:53:20 compute3 nova-compute[2759819]: AssertionError:
Jun 14 09:53:20 compute3 nova-compute[2759824]: Exception ignored in: 
Jun 14 09:53:20 compute3 nova-compute[2759824]: Traceback (most recent call 
last):
Jun 14 09:53:20 compute3 nova-compute[2759824]:   File 
"/usr/lib/python3.8/threading.py", line 1454, in _after_fork
Jun 14 09:53:20 compute3 nova-compute[2759824]: assert len(_active) == 1
Jun 14 09:53:20 compute3 nova-compute[2759824]: AssertionError:
Jun 14 09:53:20 compute3 nova-compute[2759827]: Exception ignored in: 
Jun 14 09:53:20 compute3 nova-compute[2759827]: Traceback (most recent call 
last):
Jun 14 09:53:20 compute3 nova-compute[2759827]:   File 
"/usr/lib/python3.8/threading.py", line 1454, in _after_fork
Jun 14 09:53:20 compute3 nova-compute[2759827]: assert len(_active) == 1
Jun 14 09:53:20 compute3 nova-compute[2759827]: AssertionError:
Jun 14 09:53:20 compute3 nova-compute[2759830]: Exception ignored in: 
Jun 14 09:53:20 compute3 nova-compute[2759830]: Traceback (most recent call 
last):
Jun 14 09:53:20 compute3 nova-compute[2759830]:   File 
"/usr/lib/python3.8/threading.py", line 1454, in _after_fork
Jun 14 09:53:20 compute3 nova-compute[2759830]: assert len(_active) == 1
Jun 14 09:53:20 compute3 nova-compute[2759830]: AssertionError:
Jun 14 09:53:20 compute3 nova-compute[2759833]: Exception ignored in: 
Jun 14 09:53:20 compute3 nova-compute[2759833]: Traceback (most recent call 
last):
Jun 14 09:53:20 compute3 nova-compute[2759833]:   File 
"/usr/lib/python3.8/threading.py", line 1454, in _after_fork
Jun 14 09:53:20 compute3 nova-compute[2759833]: assert len(_active) == 1
nova-compute ist running and looked to be functional.

Did I overlook something?
Thanks for your reply

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1863021

Title:
  [SRU] eventlet monkey patch results in assert len(_active) == 1
  AssertionError

To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1863021/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1793813] [NEW] magnum-api not working with www_authenticate_uri

2018-09-21 Thread Dr. Clemens Hardewig
Public bug reported:

For magnum 7.0.1 package (Rockyrelease) the keystone_auth section is
inconsistent to the keystone mainstream config

When configuring in /etc/magnum/magnum.conf

auth_uri = https://controller:5000/v3

then the /var/log/magnum-api.log contains a warning

WARNING oslo_config.cfg [-] Deprecated: Option "auth_uri" from group
"keystone_authtoken" is deprecated for removal (The auth_uri option is
deprecated in favor of www_authenticate_uri and will be removed in the S
release.).  Its value may be silently ignored in the future.

magnum related openstack cli commands properly work, eg

# openstack coe cluster list
+--+---+-++--+---+
| uuid | name  | keypair | node_count | 
master_count | status|
+--+---+-++--+---+
| ae2395b8-8616-4721-b5de-9134472496cb | swarm-cluster | None|  1 | 
   1 | CREATE_FAILED |
| 5d6651a0-7be4-42ff-ad28-bd93633761c2 | swarm-cluster | None|  1 | 
   1 | CREATE_FAILED |
+--+---+-++--+---+

so far so good

BUT: when you configure

www_authenticate_uri = https://controller:5000/v3

(as it should be indeed latest since pike)

Then any kind of openstack cli command with magnum elements fails with

'NoneType' object has no attribute 'replace' (HTTP 500) (Request-ID:
req-e6701428-5395-40c4-9b64-f0d4765501e9)

/var/log/magnum/magnum-api.log shows

2018-09-21 21:12:43.436 14212 INFO magnum.cmd.api [-] Starting server in PID 
14212
2018-09-21 21:12:43.442 14212 INFO magnum.cmd.api [-] Serving on 
http://10.0.88.11:9511
2018-09-21 21:12:43.442 14212 INFO magnum.cmd.api [-] Server will handle each 
request in a new process up to 4 concurrent processes
2018-09-21 21:12:43.443 14212 INFO werkzeug [-]  * Running on 
http://10.0.88.11:9511/ (Press CTRL+C to quit)
2018-09-21 21:13:04.193 14287 ERROR wsme.api 
[req-dc0a815a-822b-4459-95e6-0c5550670155 - - - - -] Server-side error: 
"'NoneType' object has no attribute 'replace'". Detail:
Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/wsmeext/pecan.py", line 85, in 
callfunction
result = f(self, *args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/magnum/api/controllers/v1/cluster.py", 
line 329, in get_all
action='cluster:get_all')

  File "/usr/lib/python2.7/dist-packages/magnum/common/policy.py", line 100, in 
enforce
add_policy_attributes(target)

  File "/usr/lib/python2.7/dist-packages/magnum/common/policy.py", line 110, in 
add_policy_attributes
trustee_domain_id = admin_osc.keystone().trustee_domain_id

  File "/usr/lib/python2.7/dist-packages/magnum/common/keystone.py", line 179, 
in trustee_domain_id
access = self.domain_admin_auth.get_access(

  File "/usr/lib/python2.7/dist-packages/magnum/common/keystone.py", line 145, 
in domain_admin_auth
auth_url=self.auth_url,

  File "/usr/lib/python2.7/dist-packages/magnum/common/keystone.py", line 47, 
in auth_url
return CONF[ksconf.CFG_LEGACY_GROUP].auth_uri.replace('v2.0', 'v3')

AttributeError: 'NoneType' object has no attribute 'replace'

Note: the entire magnum configuration docs are outdated, the still
contain description for port 35357 for keystone

** Affects: magnum (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1793813

Title:
  magnum-api not working with www_authenticate_uri

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/magnum/+bug/1793813/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs