Foreman API VM Creation ECONNRESET

Hello All,

I'm using the API to create VMs in VMware, and time to clone a machine
varies, sometimes getting upwards of ten minutes. I've noticed that if it
ever takes more than five minutes, at the five minute mark whatever is
waiting for a reply on the POST request to create the VM experiences an
ECONNRESET.

I don't think this is a setting in Foreman itself, all I found on that
count was the timeout for the Hammer CLI and there's not a stack trace or
anything about a timeout in production.log, but the timeout in httpd.conf
is set to two minutes, not five so I'm not sure if it's an Apache setting
either. Anyone have any experience with this?

Thanks,

Tyler

In my previous work we had an interface between Foreman and Vmware, a
custom compute resource, and we had some problems with a timeout. If I
remember correctly there should be a PR to get some code in rbovirt to
fix this. If I'm right then it should be in the latest release.
https://github.com/abenari/rbovirt/pull/119
I'm not sure this is your problem too but it could be.
What versions are you on with FM and rbovirt?

Joop

ยทยทยท On 20-6-2017 15:57, Tyler Gregory wrote: > Hello All, > > I'm using the API to create VMs in VMware, and time to clone a machine > varies, sometimes getting upwards of ten minutes. I've noticed that if > it ever takes more than five minutes, at the five minute mark whatever > is waiting for a reply on the POST request to create the VM > experiences an ECONNRESET. > > I don't think this is a setting in Foreman itself, all I found on that > count was the timeout for the Hammer CLI and there's not a stack trace > or anything about a timeout in production.log, but the timeout in > httpd.conf is set to two minutes, not five so I'm not sure if it's an > Apache setting either. Anyone have any experience with this? >