Cannot delete hosts that are also chef nodes

I have Foreman 1.9.0 installed with foreman-chef 0.1.7 and chef 12
Enterprise on a separate server. I am using MS DHCP and MS DNS smart
proxies on a separate windows server. When attempting to delete a node, I
get an error: ERF12-4348 [ForemanChef::ProxyException]: Unable to
communicate with Chef proxy, ERF12-0944 [ForemanChef::ProxyException]:
Unable to communicate with Chef proxy, 500 Internal Server Error

Deploying a host on VMware also adds the foreman node so the proxy
connection seems to work just fine.

The DNS entry gets deleted. The DHCP reservation does not get removed. The
Chef Node does not get removed. The Host does not get removed.

This was due to not having sufficient privileges in chef for the client I
was using to connect via the smart proxy. Now I am running into:
Can't delete host because of "A JSON text must at least contain two octets!"

The host deletes,

··· On Saturday, September 26, 2015 at 12:30:52 AM UTC-4, jonath...@bluemedora.com wrote: > > I have Foreman 1.9.0 installed with foreman-chef 0.1.7 and chef 12 > Enterprise on a separate server. I am using MS DHCP and MS DNS smart > proxies on a separate windows server. When attempting to delete a node, I > get an error: ERF12-4348 [ForemanChef::ProxyException]: Unable to > communicate with Chef proxy, ERF12-0944 [ForemanChef::ProxyException]: > Unable to communicate with Chef proxy, 500 Internal Server Error > > Deploying a host on VMware also adds the foreman node so the proxy > connection seems to work just fine. > > The DNS entry gets deleted. The DHCP reservation does not get removed. The > Chef Node does not get removed. The Host does not get removed. >

Hello,

this is reported as [1] and will be fixed in next release of smart_proxy_chef (I expect it to land together with new foreman_chef during this week).

[1] Bug #11695: Can't delete host because of "A JSON text must at least contain two octets!" - Chef - Foreman

··· -- Marek

----- Original Message -----
From: “jonathan lake” jonathan.lake@bluemedora.com
To: “Foreman users” foreman-users@googlegroups.com
Sent: Saturday, September 26, 2015 6:43:00 PM
Subject: [foreman-users] Re: Cannot delete hosts that are also chef nodes

This was due to not having sufficient privileges in chef for the client I
was using to connect via the smart proxy. Now I am running into:
Can’t delete host because of “A JSON text must at least contain two octets!”

The host deletes,

On Saturday, September 26, 2015 at 12:30:52 AM UTC-4, jonath...@bluemedora.com wrote:

I have Foreman 1.9.0 installed with foreman-chef 0.1.7 and chef 12
Enterprise on a separate server. I am using MS DHCP and MS DNS smart
proxies on a separate windows server. When attempting to delete a node, I
get an error: ERF12-4348 [ForemanChef::ProxyException]: Unable to
communicate with Chef proxy, ERF12-0944 [ForemanChef::ProxyException]:
Unable to communicate with Chef proxy, 500 Internal Server Error

Deploying a host on VMware also adds the foreman node so the proxy
connection seems to work just fine.

The DNS entry gets deleted. The DHCP reservation does not get removed. The
Chef Node does not get removed. The Host does not get removed.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.