Bug 2077538 - OSP17- Adding access rule to Manila share is failing
Summary: OSP17- Adding access rule to Manila share is failing
Keywords:
Status: CLOSED DUPLICATE of bug 2077537
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-manila
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: OpenStack Manila Bugzilla Bot
QA Contact: vhariria
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-21 14:40 UTC by Asma Syed Hameed
Modified: 2022-04-21 15:33 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-21 15:33:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
share.log (1.31 MB, text/plain)
2022-04-21 14:40 UTC, Asma Syed Hameed
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-14811 0 None None None 2022-04-21 14:41:14 UTC

Description Asma Syed Hameed 2022-04-21 14:40:39 UTC
Created attachment 1874130 [details]
share.log

Description of problem:
When applying the access rule to share the state moves to error in OSP17 with RHCS 5

(overcloud) [stack@undercloud manila]$ manila access-list test
+--------------------------------------+-------------+-----------+--------------+-------+------------+----------------------------+------------+
| id                                   | access_type | access_to | access_level | state | access_key | created_at                 | updated_at |
+--------------------------------------+-------------+-----------+--------------+-------+------------+----------------------------+------------+
| 9a396963-e015-4905-96c1-6559f01c9d43 | ip          | 127.0.0.3 | rw           | error | None       | 2022-04-21T14:02:54.939421 | None       |
| fc2bdaf1-be6a-4c98-a6e7-269c8d598905 | ip          | 127.0.0.2 | rw           | error | None       | 2022-04-21T14:02:08.113706 | None       |
| fef7718c-2004-499a-b1a0-d2bff2ba0ccd | ip          | 127.0.0.1 | rw           | error | None       | 2022-04-21T13:55:58.101552 | None       |
+--------------------------------------+-------------+-----------+--------------+-------+------------+----------------------------+------------+


share.log 
2022-04-21 14:02:55.538 9 DEBUG oslo_concurrency.lockutils [req-54194394-8aa8-4f44-a750-1322831326b6 99f1c76fd46d495fac53146bef21b949 3dd1a33a875345868044d87e3be957a3 - - -] Lock "locked_access_rules_operation_by_share_instance_84e66b62-195d-46d6-9fc8-0def775c9a3e" acquired by "manila.share.access.locked_access_rules_operation.<locals>.wrapped.<locals>.locked_operation" :: waited 0.000s inner /usr/lib/python3.9/site-packages/oslo_concurrency/lockutils.py:355
2022-04-21 14:02:55.716 9 DEBUG oslo_concurrency.lockutils [req-54194394-8aa8-4f44-a750-1322831326b6 99f1c76fd46d495fac53146bef21b949 3dd1a33a875345868044d87e3be957a3 - - -] Lock "locked_access_rules_operation_by_share_instance_84e66b62-195d-46d6-9fc8-0def775c9a3e" released by "manila.share.access.locked_access_rules_operation.<locals>.wrapped.<locals>.locked_operation" :: held 0.178s inner /usr/lib/python3.9/site-packages/oslo_concurrency/lockutils.py:367
2022-04-21 14:02:55.717 9 DEBUG oslo_concurrency.lockutils [req-54194394-8aa8-4f44-a750-1322831326b6 99f1c76fd46d495fac53146bef21b949 3dd1a33a875345868044d87e3be957a3 - - -] Lock "locked_access_rules_operation_by_share_instance_84e66b62-195d-46d6-9fc8-0def775c9a3e" acquired by "manila.share.access.locked_access_rules_operation.<locals>.wrapped.<locals>.locked_operation" :: waited 0.000s inner /usr/lib/python3.9/site-packages/oslo_concurrency/lockutils.py:355
2022-04-21 14:02:55.745 9 DEBUG oslo_concurrency.lockutils [req-54194394-8aa8-4f44-a750-1322831326b6 99f1c76fd46d495fac53146bef21b949 3dd1a33a875345868044d87e3be957a3 - - -] Lock "locked_access_rules_operation_by_share_instance_84e66b62-195d-46d6-9fc8-0def775c9a3e" released by "manila.share.access.locked_access_rules_operation.<locals>.wrapped.<locals>.locked_operation" :: held 0.027s inner /usr/lib/python3.9/site-packages/oslo_concurrency/lockutils.py:367
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server [req-54194394-8aa8-4f44-a750-1322831326b6 99f1c76fd46d495fac53146bef21b949 3dd1a33a875345868044d87e3be957a3 - - -] Exception during message handling: FileNotFoundError: [Errno 2] No such file or directory: 'dbus-send'
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/dispatcher.py", line 309, in dispatch
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/dispatcher.py", line 229, in _do_dispatch
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/share/manager.py", line 219, in wrapped
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     return f(self, *args, **kwargs)
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/utils.py", line 578, in wrapper
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     return func(self, *args, **kwargs)
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/share/manager.py", line 3920, in update_access
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     self.update_access_for_instances(context, [share_instance_id],
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/share/manager.py", line 3934, in update_access_for_instances
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     self.access_helper.update_access_rules(
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/share/access.py", line 301, in update_access_rules
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     self._update_access_rules(context, share_instance_id,
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/share/access.py", line 338, in _update_access_rules
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     driver_rule_updates = self._update_rules_through_share_driver(
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/share/access.py", line 403, in _update_rules_through_share_driver
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     driver_rule_updates = self.driver.update_access(
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/share/drivers/cephfs/driver.py", line 511, in update_access
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     return self.protocol_helper.update_access(
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/share/drivers/ganesha/__init__.py", line 292, in update_access
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     self.ganesha.update_export(share['name'], confdict)
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/share/drivers/ganesha/manager.py", line 499, in update_export
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     self._dbus_send_ganesha("UpdateExport", "string:" + path,
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/share/drivers/ganesha/manager.py", line 410, in _dbus_send_ganesha
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     self.execute("dbus-send", "--print-reply", "--system",
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/share/drivers/ganesha/manager.py", line 233, in _execute
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     return execute(*args, **kwargs)
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/share/drivers/ganesha/utils.py", line 59, in __call__
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     return self.execute(*args, **exkwargs)
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/manila/utils.py", line 101, in execute
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     return processutils.execute(*cmd, **kwargs)
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/oslo_concurrency/processutils.py", line 395, in execute
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     obj = subprocess.Popen(cmd,
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/eventlet/green/subprocess.py", line 58, in __init__
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     subprocess_orig.Popen.__init__(self, args, 0, *argss, **kwds)
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib64/python3.9/subprocess.py", line 951, in __init__
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     self._execute_child(args, executable, preexec_fn, close_fds,
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server   File "/usr/lib64/python3.9/subprocess.py", line 1821, in _execute_child
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server     raise child_exception_type(errno_num, err_msg, err_filename)
2022-04-21 14:02:55.745 9 ERROR oslo_messaging.rpc.server FileNotFoundError: [Errno 2] No such file or directory: 'dbus-send'


Version-Release number of selected component (if applicable):

RHOS-17.0-RHEL-9-20220401.n.1


Steps to Reproduce:
1. Deploy OSP17 with Manila
2. Create a share and apply the access rule

Actual results:
Applying the access rule to share is failing

Expected results:
Access rule applied successfully to the share

Comment 3 Asma Syed Hameed 2022-04-21 15:33:12 UTC

*** This bug has been marked as a duplicate of bug 2077537 ***


Note You need to log in before you can comment on or make changes to this bug.