Skip to content

Commit d75075e

Browse files
committed
chore(cinder): quiet down the NetApp driver from complaining
Since we're wrapping it, we need to pass the parameter they pass to the internal classes to let them know they've been initialized correctly.
1 parent 5b86ff8 commit d75075e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

python/cinder-understack/cinder_understack/dynamic_netapp_driver.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,14 @@ def _create_svm_lib(self, svm_name: str) -> NetAppMinimalLibrary:
185185
# now set the backend configuration name
186186
CONF.set_override("volume_backend_name", child_grp, group=child_grp)
187187
# return an instance of the library scoped to one SVM
188+
# netapp_mode=proxy is necessary to quiet the driver from reporting that
189+
# its not
188190
return NetAppMinimalLibrary(
189-
self.DRIVER_NAME, "NVMe", configuration=child_cfg, **self._init_kwargs
191+
self.DRIVER_NAME,
192+
"NVMe",
193+
configuration=child_cfg,
194+
netapp_mode="proxy",
195+
**self._init_kwargs,
190196
)
191197

192198
@staticmethod

0 commit comments

Comments
 (0)