nova scheduler debug logs TypeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Description
===========
while activating nova scheduler logs for debugging I face this issue creating a new vm.
The vm is created anyway.
Steps to reproduce
==================
1. set debug in nova-scheduler to ture
[DEFAULT]
debug = true
2. create a vm
3. look into a nova-scheduler logs
Expected result
===============
debug log should shown without any stacktraces
Actual result
=============
an error/stacktrace is thrown
Environment
===========
Openstack: Yoga
Python: Python 3.10.6
Logs & Configs
==============
Stacktrace:
Traceback (most recent call last):
File "/usr/lib/
msg = self.format(record)
File "/usr/local/
return logging.
File "/usr/lib/
return fmt.format(record)
File "/usr/local/
return _json_dumps_
File "/usr/local/
return jsonutils.
File "/usr/local/
return json.dumps(obj, default=default, **kwargs)
File "/usr/lib/
**kw)
File "/usr/lib/
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/
return _iterencode(o, 0)
TypeError: keys must be str, int, float, bool or None, not tuple
Call stack:
File "/usr/local/
func(*args, **kwargs)
File "/usr/local/
self.work.run()
File "/usr/local/
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/
res = self.dispatcher
File "/usr/local/
return self._do_
File "/usr/local/
result = func(ctxt, **new_args)
File "/usr/local/
return func(*args, **kwargs)
File "/usr/local/
selections = self._select_
File "/usr/local/
selections = self._schedule(
File "/usr/local/
hosts = self._get_
File "/usr/local/
weighed_hosts = self.host_
File "/usr/local/
return self.weight_
File "/usr/local/
LOG.debug(
Message: '%s: raw weights %s'
Arguments: ('CPUWeigher', {('compute-01', 'compute-01): 127.0, ('worker-01', 'worker-01'): 125.0})
https:/ /review. opendev. org/c/openstack /nova/+ /889311