{"action":"created","issue":{"url":"https://api.github.com/repos/tristanrobert/foreman_fog_proxmox/issues/30","repository_url":"https://api.github.com/repos/tristanrobert/foreman_fog_proxmox","labels_url":"https://api.github.com/repos/tristanrobert/foreman_fog_proxmox/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/tristanrobert/foreman_fog_proxmox/issues/30/comments","events_url":"https://api.github.com/repos/tristanrobert/foreman_fog_proxmox/issues/30/events","html_url":"https://github.com/tristanrobert/foreman_fog_proxmox/issues/30","id":345799715,"node_id":"MDU6SXNzdWUzNDU3OTk3MTU=","number":30,"title":"In a cluster, the correct Proxmox host isn't always queried","user":{"login":"RedChops","id":723294,"node_id":"MDQ6VXNlcjcyMzI5NA==","avatar_url":"https://avatars2.githubusercontent.com/u/723294?v=4","gravatar_id":"","url":"https://api.github.com/users/RedChops","html_url":"https://github.com/RedChops","followers_url":"https://api.github.com/users/RedChops/followers","following_url":"https://api.github.com/users/RedChops/following{/other_user}","gists_url":"https://api.github.com/users/RedChops/gists{/gist_id}","starred_url":"https://api.github.com/users/RedChops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedChops/subscriptions","organizations_url":"https://api.github.com/users/RedChops/orgs","repos_url":"https://api.github.com/users/RedChops/repos","events_url":"https://api.github.com/users/RedChops/events{/privacy}","received_events_url":"https://api.github.com/users/RedChops/received_events","type":"User","site_admin":false},"labels":[{"id":916028314,"node_id":"MDU6TGFiZWw5MTYwMjgzMTQ=","url":"https://api.github.com/repos/tristanrobert/foreman_fog_proxmox/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/tristanrobert/foreman_fog_proxmox/milestones/4","html_url":"https://github.com/tristanrobert/foreman_fog_proxmox/milestone/4","labels_url":"https://api.github.com/repos/tristanrobert/foreman_fog_proxmox/milestones/4/labels","id":3534723,"node_id":"MDk6TWlsZXN0b25lMzUzNDcyMw==","number":4,"title":"Not planned","description":"","creator":{"login":"tristanrobert","id":19711088,"node_id":"MDQ6VXNlcjE5NzExMDg4","avatar_url":"https://avatars2.githubusercontent.com/u/19711088?v=4","gravatar_id":"","url":"https://api.github.com/users/tristanrobert","html_url":"https://github.com/tristanrobert","followers_url":"https://api.github.com/users/tristanrobert/followers","following_url":"https://api.github.com/users/tristanrobert/following{/other_user}","gists_url":"https://api.github.com/users/tristanrobert/gists{/gist_id}","starred_url":"https://api.github.com/users/tristanrobert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tristanrobert/subscriptions","organizations_url":"https://api.github.com/users/tristanrobert/orgs","repos_url":"https://api.github.com/users/tristanrobert/repos","events_url":"https://api.github.com/users/tristanrobert/events{/privacy}","received_events_url":"https://api.github.com/users/tristanrobert/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2018-07-31T06:38:24Z","updated_at":"2018-07-31T06:45:17Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-07-30T15:08:43Z","updated_at":"2018-07-31T06:46:30Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nI have a cluster of three Proxmox nodes. After adding one of the nodes' IP address to set up the Compute Resource, all of the VMs are properly listed in the Virtual Machines tab. Using an example of the issue, a guest with VMID 117 is currently running on vmhost1 (this is also the node that I'm connected to, but it happens seemingly at random as many guests on this node are properly connected to) and is reported running on that host if I run `pvesh get /cluster/resources`. If I click on the VM in the tab I get an error that states  `\"Configuration file 'nodes/vmhost3/qemu-server/117.conf' does not exist\"` which would make sense, as that guest is not running on vmhost3. I can't really deduce what causes the plugin to query the incorrect host though, there doesn't seem to be a pattern to me.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Have Proxmox cluster of three nodes or more\r\n2. Click on any guest in the Virtual Machines tab\r\n\r\n**Expected behavior**\r\nVirtual machine guest information is displayed\r\n\r\n**Actual behavior**\r\nSometimes virtual machine guest is displayed, sometimes above error is shown\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: Linux, Windows, MacOS\r\n - Browser Firefox, Chrome, Safari\r\n - Version all\r\n\r\n**Additional context**\r\nI looked through the source of this plugin, but I don't know ruby all that well so I couldn't really figure out where the 'node' part of the query comes from or why it would be polling the incorrect one only 50% of the time. The plugin does seem to correctly show guests on other nodes from the one that I'm connected to sometimes.\r\n"},"comment":{"url":"https://api.github.com/repos/tristanrobert/foreman_fog_proxmox/issues/comments/409113531","html_url":"https://github.com/tristanrobert/foreman_fog_proxmox/issues/30#issuecomment-409113531","issue_url":"https://api.github.com/repos/tristanrobert/foreman_fog_proxmox/issues/30","id":409113531,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTExMzUzMQ==","user":{"login":"tristanrobert","id":19711088,"node_id":"MDQ6VXNlcjE5NzExMDg4","avatar_url":"https://avatars2.githubusercontent.com/u/19711088?v=4","gravatar_id":"","url":"https://api.github.com/users/tristanrobert","html_url":"https://github.com/tristanrobert","followers_url":"https://api.github.com/users/tristanrobert/followers","following_url":"https://api.github.com/users/tristanrobert/following{/other_user}","gists_url":"https://api.github.com/users/tristanrobert/gists{/gist_id}","starred_url":"https://api.github.com/users/tristanrobert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tristanrobert/subscriptions","organizations_url":"https://api.github.com/users/tristanrobert/orgs","repos_url":"https://api.github.com/users/tristanrobert/repos","events_url":"https://api.github.com/users/tristanrobert/events{/privacy}","received_events_url":"https://api.github.com/users/tristanrobert/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T06:46:30Z","updated_at":"2018-07-31T06:46:30Z","author_association":"OWNER","body":"It will be fix when #31 is added."}}
{"actor":{"display_login":"tristanrobert"}}