Hi,
But as you are saying it is failing only randomly, it is very weird. Could you share more information with us?
Yes, this REST query fails kind of randomly. When the query fails I have to resend the REST query (1 to 3 times) before I get a valid result. On the Foreman instance where this issue occurs are 2 VSphere server configured as compute resources (id 4 and 5). It seems like that the problem only appears on resource id 4 and only if caching is active.
I guess you are running foreman on debian based system, is that correct? If so, could you please share what version is the fog-vsphere
in your Gemfile.lock
?
Nope, I’m using Foreman 1.20.2 on CentOS 7.6 and the standard fog-vsphere version (tfm-rubygem-fog-vsphere-2.3.0-2.el7.noarch).
Do you have more instances of foreman, or just one?
I’ve in total 4 Foreman instances on different servers (2x 1.19.1 and 2x 1.20.2). All standard installations. No LB or HA setup. I have this issue only on 1 instance (1.20.2)
Could you clean the cache by foreman-rake console
and Rails.cache.clear
, so we know it was not an old stuff hanging around?
Cleaned the caches … unfortunately no changes.
Cheers,
Martin