RBD: running as non-root complains about missing root_helper
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cinderlib |
Fix Released
|
Undecided
|
Gorka Eguileor |
Bug Description
When using the RBD driver and running the cinderlib process as a non-root user within a container we'll the following exception:
2020-06-26 12:05:54.727 305960 CRITICAL cinder [req-f08b1c99-
2020-06-26 12:05:54.727 305960 ERROR cinder Traceback (most recent call last):
2020-06-26 12:05:54.727 305960 ERROR cinder File "/usr/local/
2020-06-26 12:05:54.727 305960 ERROR cinder self._ensure_
2020-06-26 12:05:54.727 305960 ERROR cinder File "/usr/local/
2020-06-26 12:05:54.727 305960 ERROR cinder self._ensure_
2020-06-26 12:05:54.727 305960 ERROR cinder File "/usr/local/
2020-06-26 12:05:54.727 305960 ERROR cinder self._execute(
2020-06-26 12:05:54.727 305960 ERROR cinder File "/usr/local/
2020-06-26 12:05:54.727 305960 ERROR cinder result = self.__
2020-06-26 12:05:54.727 305960 ERROR cinder File "/usr/local/
2020-06-26 12:05:54.727 305960 ERROR cinder return rootwrap.
2020-06-26 12:05:54.727 305960 ERROR cinder File "/usr/local/
2020-06-26 12:05:54.727 305960 ERROR cinder on_completion=
2020-06-26 12:05:54.727 305960 ERROR cinder File "/usr/local/
2020-06-26 12:05:54.727 305960 ERROR cinder message=_('Command requested root, but did not '
2020-06-26 12:05:54.727 305960 ERROR cinder oslo_concurrenc
This error happens because the library is not passing the "root_helper" parameter in a couple of "_execute" calls.
Fix proposed to branch: master /review. opendev. org/738213
Review: https:/