-
Notifications
You must be signed in to change notification settings - Fork 25
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
Partial node sensor readings in a cluster #65
Comments
Thanks for the nice report. Yes, I don't believe it is working in a cluster setup right now. I am unsure why.... @eremem: Looking at the native function 'CPU usage' it seems like the whole renderer is entirely in the perl back-end and not in the js front-end. This is a slighly different approach that what we have (more mixed). Do you think that it could be the reason? |
@Meliox Unfortunately I have no setup to check this in action. |
@Meliox I tried to find the function you mentioned in /usr/share/perl5/PVE but got nothing relevant. Could you please point me the code you found? |
Yes. Calls are as follows: to /usr/share/perl5/PVE/API2/Nodes.pm line 463 $res->{cpuinfo} = PVE::ProcFSTools::read_cpuinfo(); to /usr/share/perl5/PVE/ProcFSTools.pm line 23 - sub read_cpuinfo { |
@Meliox Is #63 also a cluster setup? I'd assume there is rather on the OS level some problem with retrieving the sensor readings by the |
@eremem: It is not. I am not seeing any I/O delay either. I think that is a sound next step for investigation. |
@Meliox How about moving our injected code from /usr/share/perl5/PVE/API2/Nodes.pm for res->{sensorsOutput} from line 489 on to a new function, e.g. read_sensors in /usr/share/perl5/PVE/ProcFSTools.pm:
and assigning its output to $res->{sensorsOutput} in /usr/share/perl5/PVE/API2/Nodes.pm: This seems to still work in my single node configuration but before we start adjusting the installer script, we have to verify if this change brings anything at all in a cluster setup. Do you have access to some cluster setup? I could upload the modified files for quicker testing in the current PVE version... It would also be interesting to verify if this new approach could also be applied to
/usr/share/perl5/PVE/API2/Nodes.pm: I'm curious if our approach would even work, since Proxmox has to provide the data from other nodes to the on the "observer" is logged onto but let's play naive and try the easiest obvious solution at first :). |
Yes. Sounds like a good approach to test it. Unfortunately I do not have access to one either, so we need help from @jeroenzwart. As you say it would be great to have the approach confirmed before the large code change. |
If I'm not mistaken, most of that sed commands take care of the front-end JS code anyway, which, if moved to a separate file, has to be included at the run-time. I personally know no easy/elegant way how to achieve this. If you see some solution, let's discuss it in a separate PR. |
I'm open to help, but in theory is possible to create 2 nodes of Proxmox in Proxmox itself? And create a cluster of 2 virtual nodes, right? I'm not sure what is easier. |
Describe the bug
I have Proxmox on 2 nodes installed and made a cluster. After installing the great
pve-mod-gui-sensors.sh
script the sensors information is visible of a node. This is only visible when you look at the node where you currently log into. When selecting another node, the sensors information is not visible.After reinstalling on both nodes almost the same problem occurs. Log in to node 1 and looking to the sensors information of node 2 will keep try loading. Then the other way around,log in to node 2 and looking to the sensors information of node 1 it will say 'N/A' at all sensors.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Temperature information is available in the GUI of multiple nodes when logged into 1 node.
Additional context
Nodes are updated to Proxmox 8.2.4.
The text was updated successfully, but these errors were encountered: