cinder/releasenotes/notes/netapp-solidfire-fix-osprofiler-infinite-recursion-ec3d4794c89b2f83.yaml
Fabio Oliveira 6dd5e20c2e NetApp SolidFire: Fix RecursionError accessing undefined attributes
A RecursionError exception can occur in the SolidFire driver when
accessing a Driver class attribute that does not exist in both
SolidFireDriver and SolidFireISCSI classes.

The SolidFireDriver class (the driver's entry point) implements
__getattr__ so that a call to a missing attribute is redirected to
its complementary class SolidFireISCSI. The problem is that
SolidFireISCSI class was also implemented in the same way, looking
for attributes in SolidFireDriver in case it doesn't provide a
definition. So a call to an attribute that does not exist in both
classes leads to a class trying to find the attribute in the other,
in an endless loop situation.

Applications such as OSProfiler may hit this scenario by inspecting
the SolidFire driver class instance at  driver's initialization and
causing its failure.

This patch fixes the issue by removing __getattr__ implementation
from SolidFireISCSI, allowing the driver to return
NotImplementedError exception correctly.

Change-Id: Ic611b2abf11b94f9a21353df426cda19c09bf085
Closes-Bug: 1934459
2022-08-04 13:21:02 +00:00

8 lines
214 B
YAML

---
fixes:
- |
NetApp SolidFire driver `bug #1934459
<https://bugs.launchpad.net/cinder/+bug/1934459>`_:
Fixed backend initialization failing with RecursionError error when
OSProfiler is enabled.