object-server logger can complain about missing txn_id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
New
|
Undecided
|
Unassigned |
Bug Description
Seen in prod:
Traceback (most recent call last):
File ".../swift/
res = getattr(self, req.method)(req)
File ".../swift/
resp = func(ctrl, *args, **kwargs)
File ".../swift/
writer.
File ".../swift/
super(
File ".../swift/
tpool.
File ".../eventlet/
six.reraise(c, e, tb)
File ".../eventlet/
rv = meth(*args, **kwargs)
File ".../swift/
target_path, new_target_path)
File ".../logging/
msg, kwargs = self.process(msg, kwargs)
File ".../swift/
kwargs['extra'] = {'server': self.server, 'txn_id': self.txn_id,
File ".../swift/
return self._cls_
File ".../eventlet/
return object.
AttributeError: 'local' object has no attribute 'txn_id' (txn: txa5431800f4ad4
*Super* weird that the log line about not having a txn_id *has a txn_id*.
I think this comes down to the same sorts of issues we've seen in the proxy that led to us plumbing logger_
Related fix proposed to branch: master /review. opendev. org/c/openstack /swift/ +/787649
Review: https:/