[Solved] Error NFS get status
wailer
75 Posts
July 2, 2022, 5:24 amQuote from wailer on July 2, 2022, 5:24 amHello ,
I am trying to setup NFS export but doesn't seem to work. It's an upgraded version of petasan.
This is the error:
Logs in petasan.log
TypeError: 'NoneType' object is not iterable
02/07/2022 07:10:23 ERROR get_status : cannot get grace db status
02/07/2022 07:10:23 ERROR Exception on /manage_nfs/check_status [GET]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 71, in decorated
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 91, in wrapped_function
return fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/web/admin_controller/manage_nfs.py", line 330, in check_nfs_status
for node in nfs_status:
TypeError: 'NoneType' object is not iterable
02/07/2022 07:10:33 ERROR get_status : cannot get grace db status
02/07/2022 07:10:33 ERROR Exception on /manage_nfs/check_status [GET]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 71, in decorated
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 91, in wrapped_function
return fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/web/admin_controller/manage_nfs.py", line 330, in check_nfs_status
for node in nfs_status:
TypeError: 'NoneType' object is not iterable
This is my current config:
Any idea?
Edit: Solved by reducing the number of IP's configured in NFS settings to 5.
Hello ,
I am trying to setup NFS export but doesn't seem to work. It's an upgraded version of petasan.
This is the error:
Logs in petasan.log
TypeError: 'NoneType' object is not iterable
02/07/2022 07:10:23 ERROR get_status : cannot get grace db status
02/07/2022 07:10:23 ERROR Exception on /manage_nfs/check_status [GET]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 71, in decorated
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 91, in wrapped_function
return fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/web/admin_controller/manage_nfs.py", line 330, in check_nfs_status
for node in nfs_status:
TypeError: 'NoneType' object is not iterable
02/07/2022 07:10:33 ERROR get_status : cannot get grace db status
02/07/2022 07:10:33 ERROR Exception on /manage_nfs/check_status [GET]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 71, in decorated
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 91, in wrapped_function
return fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/web/admin_controller/manage_nfs.py", line 330, in check_nfs_status
for node in nfs_status:
TypeError: 'NoneType' object is not iterable
This is my current config:
Any idea?
Edit: Solved by reducing the number of IP's configured in NFS settings to 5.
Last edited on July 2, 2022, 8:12 pm by wailer · #1
admin
2,930 Posts
July 3, 2022, 11:07 amQuote from admin on July 3, 2022, 11:07 amThanks for the update.
We fire up a ganesha nfs container for each nfs service ip, this is how the mltiheaded active/active ganesha ceph is designed. This could put resource load if you have a lot of ips.
Since 3.0 we put a limit of 5 ips per nfs service node, this is done at the ui level to limit resource usage, as we noticed higher usage in Ubuntu 20.04 from 18.04 when using ganehsa containers. If you had entered more than 5 per node from a previous version, it should be ok if resources are fine. But 5 should be enough per node, the reason to have more than 1 ip per node is to give better load distribution in case a node goes down, it will distribute its load to more than one active node.
Thanks for the update.
We fire up a ganesha nfs container for each nfs service ip, this is how the mltiheaded active/active ganesha ceph is designed. This could put resource load if you have a lot of ips.
Since 3.0 we put a limit of 5 ips per nfs service node, this is done at the ui level to limit resource usage, as we noticed higher usage in Ubuntu 20.04 from 18.04 when using ganehsa containers. If you had entered more than 5 per node from a previous version, it should be ok if resources are fine. But 5 should be enough per node, the reason to have more than 1 ip per node is to give better load distribution in case a node goes down, it will distribute its load to more than one active node.
Last edited on July 3, 2022, 11:11 am by admin · #2
[Solved] Error NFS get status
wailer
75 Posts
Quote from wailer on July 2, 2022, 5:24 amHello ,
I am trying to setup NFS export but doesn't seem to work. It's an upgraded version of petasan.
This is the error:
Logs in petasan.log
TypeError: 'NoneType' object is not iterable
02/07/2022 07:10:23 ERROR get_status : cannot get grace db status
02/07/2022 07:10:23 ERROR Exception on /manage_nfs/check_status [GET]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 71, in decorated
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 91, in wrapped_function
return fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/web/admin_controller/manage_nfs.py", line 330, in check_nfs_status
for node in nfs_status:
TypeError: 'NoneType' object is not iterable
02/07/2022 07:10:33 ERROR get_status : cannot get grace db status
02/07/2022 07:10:33 ERROR Exception on /manage_nfs/check_status [GET]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 71, in decorated
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 91, in wrapped_function
return fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/web/admin_controller/manage_nfs.py", line 330, in check_nfs_status
for node in nfs_status:
TypeError: 'NoneType' object is not iterableThis is my current config:
Any idea?
Edit: Solved by reducing the number of IP's configured in NFS settings to 5.
Hello ,
I am trying to setup NFS export but doesn't seem to work. It's an upgraded version of petasan.
This is the error:
Logs in petasan.log
TypeError: 'NoneType' object is not iterable
02/07/2022 07:10:23 ERROR get_status : cannot get grace db status
02/07/2022 07:10:23 ERROR Exception on /manage_nfs/check_status [GET]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 71, in decorated
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 91, in wrapped_function
return fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/web/admin_controller/manage_nfs.py", line 330, in check_nfs_status
for node in nfs_status:
TypeError: 'NoneType' object is not iterable
02/07/2022 07:10:33 ERROR get_status : cannot get grace db status
02/07/2022 07:10:33 ERROR Exception on /manage_nfs/check_status [GET]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 71, in decorated
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/core/security/basic_auth.py", line 91, in wrapped_function
return fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/PetaSAN/web/admin_controller/manage_nfs.py", line 330, in check_nfs_status
for node in nfs_status:
TypeError: 'NoneType' object is not iterable
This is my current config:
Any idea?
Edit: Solved by reducing the number of IP's configured in NFS settings to 5.
admin
2,930 Posts
Quote from admin on July 3, 2022, 11:07 amThanks for the update.
We fire up a ganesha nfs container for each nfs service ip, this is how the mltiheaded active/active ganesha ceph is designed. This could put resource load if you have a lot of ips.
Since 3.0 we put a limit of 5 ips per nfs service node, this is done at the ui level to limit resource usage, as we noticed higher usage in Ubuntu 20.04 from 18.04 when using ganehsa containers. If you had entered more than 5 per node from a previous version, it should be ok if resources are fine. But 5 should be enough per node, the reason to have more than 1 ip per node is to give better load distribution in case a node goes down, it will distribute its load to more than one active node.
Thanks for the update.
We fire up a ganesha nfs container for each nfs service ip, this is how the mltiheaded active/active ganesha ceph is designed. This could put resource load if you have a lot of ips.
Since 3.0 we put a limit of 5 ips per nfs service node, this is done at the ui level to limit resource usage, as we noticed higher usage in Ubuntu 20.04 from 18.04 when using ganehsa containers. If you had entered more than 5 per node from a previous version, it should be ok if resources are fine. But 5 should be enough per node, the reason to have more than 1 ip per node is to give better load distribution in case a node goes down, it will distribute its load to more than one active node.