[oslo][stable] Backport of the default value of the config option change

Sean Mooney smooney at redhat.com
Fri Aug 5 21:39:52 UTC 2022


On Fri, Aug 5, 2022 at 7:40 PM Ghanshyam Mann <gmann at ghanshyammann.com> wrote:
>
>  ---- On Fri, 05 Aug 2022 17:54:25 +0530  Slawek Kaplonski  wrote ---
>  > Hi,
>  >
>  > Some time ago oslo.messaging changed default value of the "heartbeat_in_pthread" config option to "True" [1].
>  > As was noticed some time ago, this don't works well with nova-compute - see bug [2] for details.
>  > Recently we noticed in our downstream Red Hat OpenStack, that it's not only nova-compute which don't works well with it and can hangs. We saw the same issue in various neutron agent processes. And it seems that it can be the same for any non-wsgi service which is using rabbitmq to send heartbeats.
>  > So giving all of that, I just proposed change of the default value of that config option to be "False" again [3].
>  > And my question is - would it be possible and acceptable to backport such change up to stable/wallaby (if and when it will be approved for master of course). IMO this could be useful for users as using this option set as "True" be default don't makes any sense for the non-wsgi applications really and may cause more bad then good things really. What are You opinions about it?
>
> This is tricky, in general the default value change should not be backported because it change
> the default behavior and so does the compatibility. But along with considering the cases do not
> work with the current default value (you mentioned in this email), we should consider if this worked
> in any other case or not. If so then I think we should not backport this and tell operator to override
> it to False as workaround for stable branch fixes.
as afar as i am aware the only impact of setting the default to false
for wsgi applications is
running under mod_wsgi or uwsgi may have the heatbeat greenthread
killed when the wsgi server susspand the application
after a time out following the processing of an api request.

there is no known negitive impact to this other then a log message
that can safely be ignored on both rabbitmq and the api log relating
to the amqp messing connection being closed and repopend.

keeping the value at true can cause the nova compute agent, neutron
agent and i susppoct nova conductor/schduler to hang following a
rabbitmq disconnect.
that can leave the relevnet service unresponcei until its restarted.

so having the default set to true is known to breake several services
but tehre are no know issue that are caused by setting it to false
that impact the operation fo any service.

so i have a stong preference for setting thsi to false by default on
stable branches.
>
> -gmann
>
>  >
>  > [1] https://review.opendev.org/c/openstack/oslo.messaging/+/747395
>  > [2] https://bugs.launchpad.net/oslo.messaging/+bug/1934937
>  > [3] https://review.opendev.org/c/openstack/oslo.messaging/+/852251/
>  >
>  > --
>  > Slawek Kaplonski
>  > Principal Software Engineer
>  > Red Hat
>




More information about the openstack-discuss mailing list