Set configured_ip_versions fact in cephfs driver
Without it, we lose the memoization optimization
in the "get_configured_ip_versions" method, and
cause a warning log to be emitted one too many
times than desired.
Change-Id: Ibd05406b4af7c99795f1bca2d4989790430b616b
Closes-Bug: #1991776
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
(cherry picked from commit bdfafcdada
)
This commit is contained in:
parent
dea2503c82
commit
5f9c037a3e
@ -1033,7 +1033,7 @@ class NFSProtocolHelperMixin():
|
||||
"a hostname (rather than IP address) was supplied "
|
||||
"in 'cephfs_ganesha_server_ip' or "
|
||||
"in 'cephfs_ganesha_export_ips'.")
|
||||
return [4, 6]
|
||||
self.configured_ip_versions = {4, 6}
|
||||
return list(self.configured_ip_versions)
|
||||
|
||||
|
||||
|
@ -1115,6 +1115,8 @@ class NFSProtocolHelperTestCase(test.TestCase):
|
||||
|
||||
self.assertEqual(set(configured_ip_version),
|
||||
set(helper.get_configured_ip_versions()))
|
||||
self.assertEqual(set(configured_ip_version),
|
||||
helper.configured_ip_versions)
|
||||
|
||||
def test_get_configured_ip_versions_already_set(self):
|
||||
fake_conf = configuration.Configuration(None)
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
`Bug 1991776 <https://launchpad.net/bugs/1991776>`_ was fixed within the
|
||||
CephFS driver. The driver no longer emits repeated warnings concerning
|
||||
supported IP versions when using the NFS protocol.
|
Loading…
Reference in New Issue
Block a user