Monday, 2021-12-06

etonejaHey!07:04
etonejaCan you please tell me if there any some reason why not to fulfill the current context from amphorae_driver when calling rpc methods (in current version empty dict is passing)?07:04
etonejahttps://github.com/openstack/octavia/blob/bd01ad94dcea3eca7636f1286ceed0753b563a28/octavia/api/drivers/amphora_driver/v1/driver.py#L137 07:04
gthiemongeetoneja: hmm I have no idea07:13
gthiemongeetoneja: do you think we should pass a context?07:22
etonejaA little background.07:44
etonejaI use a threading as the queue subscribers mechanism, which implies a thread pool. If in any of the threads I define the context07:44
etoneja(example https://github.com/openstack/octavia/blob/bd01ad94dcea3eca7636f1286ceed0753b563a28/octavia/api/drivers/utils.py#L199), then all the following requests sent by this thread will have the "previous" context, since the context is stored in local thread storage.07:44
etonejaThis does not lead to any significant problem, but because of this the incorrect context associated with the request will be recorded in the log (if use oslo_logging).07:44
etonejaIn my opinion, the solution is either to define the context at the entry point in the each RPC method every time, or not to override this context along the way (when using threads, i dont test other mechanisms).07:44
etonejaIn addition, if we pass the context, this will allow us to get better logging (as they will be associated with the global request identifier).07:44
etonejaI am fairly new to the topic and am afraid that I am may missing something. 07:44
opendevreviewMerged openstack/octavia master: Fix nft command line with negative priority values  https://review.opendev.org/c/openstack/octavia/+/81926513:48
opendevreviewGregory Thiemonge proposed openstack/octavia stable/xena: Fix nft command line with negative priority values  https://review.opendev.org/c/openstack/octavia/+/82053615:18
opendevreviewGregory Thiemonge proposed openstack/octavia stable/wallaby: Fix nft command line with negative priority values  https://review.opendev.org/c/openstack/octavia/+/82053715:26
opendevreviewGregory Thiemonge proposed openstack/octavia stable/victoria: Fix nft command line with negative priority values  https://review.opendev.org/c/openstack/octavia/+/82054215:41

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!