-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'NoneType' object has no attribute 'get' #65
Comments
Hi this is what I tried:
And works fine for me. Can you please provide the volume details and the exact command you executed? |
i just used "gstatus" command.... nothing extra as quick test..... and got error above. this is when 1 gluster node was down.... then i had the issue across all other Nodes with the Error. i had this with earlier Gluster Versions also.... currently i cannot test this with same Setup. i look somewhere else in Lab and re/create... will paste then once i upgraded stack |
Same here, when one node is offline got an error. Either without any options (full status) or for a specific volume (like sac did).
|
Same issue here, quite easy to reproduce, take 1 node offline (systemctl glusterd stop) and execute gstatus -o json . Looks like it tries to get the status of all bricks, but if 1 node is offline gluster volume status volname detail will not output detail status of that particular node's brick and thus its output is empty. |
Looks like https://github.com/gluster/glustercli-python/pull/48/files should fix this. |
May possible to get a new binary compiled ? ;) i can also confirm today in an 4-way replication i tested to shutdown network ports,.... and each Gluster node blamed exact same like above. but in Fact each Gluster own Brick is online > just cannot talk to each other. |
you don't need to recompile actually, the fix is not in gstatus but in glustercli-python and they merged it to master just some days ago, see gluster/glustercli-python@1b03496 to use the most recent python pip module of glustercli-python and have this fixed, install the master version using |
new version 1.0.8 works for me ;) |
At first I thought 1.0.8 fixed it for me, too, but then I noticed that now some of my volumes are marked as DOWN in cases where the previous version threw the Traceback. Calling it again, all the Volumes are shown as UP again. It happens on every 4th call or sth. Just like the error. I notice there is a slightly longer delay when calling it, when that happens. The gluster-volumes are in production use, work fine and don't have any issues. At least none that I can see. However, I found out, that
OR
My guess is that this might be interpreted as being DOWN? |
Hi everyone,
Just as info.. also with latest gstatus and gluster 10.1 once inside an replication 1 brick is down > then other Gluster nodes getting an error. even if all is fine (apart of the 1 Brick down). As long the Volume is up > means is not emergency.
may an easy fix?
Traceback (most recent call last):
File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/bin/gstatus/main.py", line 77, in
File "/usr/bin/gstatus/main.py", line 73, in main
File "/usr/bin/gstatus/glusterlib/cluster.py", line 37, in gather_data
File "/usr/bin/gstatus/glustercli/cli/volume.py", line 189, in status_detail
File "/usr/bin/gstatus/glustercli/cli/parsers.py", line 307, in parse_volume_status
AttributeError: 'NoneType' object has no attribute 'get'
thx
The text was updated successfully, but these errors were encountered: