Since commit [1], below errors occurs when trying to delete a user rule in a NFS share using generic driver. Please see steps below:
1) User adds rule1 ip '10.0.0.1' - success
2) User adds rule2 user 'lala' - error, access type not supported
3) User adds rule3 ip '10.0.0.2' - error, but rule3 is added to DB
4) User removes rule2 - should be success, and also apply rule3, but below error is shown.
[1] - https://github.com/openstack/manila/commit/7bf936b9010cb7bbfe8412ea991be9bd6f8b0f80
2016-06-10 13:45:19.696 ERROR oslo_messaging.rpc.server [req-a15570a0-a4c4-415d-b4a5-8277ff3fab21 ca71c4cc3fed4a1cbbfd97f968f7d536 234b54ea84124dbb8fb897aa83939aa6] Exc
eption during handling message
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server Traceback (most recent call last):
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 133, in _process_incoming
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 153, in dispatch
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 122, in _do_dispatch
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server result = func(ctxt, **new_args)
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/share/manager.py", line 152, in wrapped
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server return f(self, *args, **kwargs)
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/utils.py", line 616, in wrapper
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server return func(self, *args, **kwargs)
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/share/manager.py", line 2272, in deny_access
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server share_server=share_server
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/share/access.py", line 85, in update_access_rules
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server share_server=share_server
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/share/drivers/generic.py", line 120, in wrap
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server return f(self, context, *args, **kwargs)
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/share/drivers/generic.py", line 882, in update_access
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server delete_rules=delete_rules)
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/share/drivers/helpers.py", line 133, in wrapped_func
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server return source_func(self, *args, **kwargs)
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 271, in inner
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server return f(*args, **kwargs)
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/share/drivers/helpers.py", line 131, in source_func
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server return f(self, *args, **kwargs)
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/share/drivers/helpers.py", line 208, in update_access
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server access['access_to'])
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/share/drivers/helpers.py", line 161, in _get_parsed_access_to
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server netmask = utils.cidr_to_netmask(access_to)
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server File "/opt/stack/manila/manila/utils.py", line 499, in cidr_to_netmask
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server raise exception.InvalidInput(_("Invalid cidr supplied %s") % cidr)
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server InvalidInput: Invalid cidr supplied lala
2016-06-10 13:45:19.696 TRACE oslo_messaging.rpc.server
Fix proposed to branch: master /review. openstack. org/549094
Review: https:/