How to get rid of a gone smart proxy

Hi,

a smart proxy of my foreman installation is gone and was replaced by a
new one with a new host name. When I try to remove the old one, I get a
looooooong list of hosts that are still "using" the old smart proxy
(which is impossible, the old one is gone and won't return).

When I try doing a mass change of puppet server and puppet CA, foreman
tries to contact the old proxy and fails.

How do I get rid of a smart proxy that is already gone? Is there a force
delete option?

Greetings
Marc

··· -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421

> Hi,
>
> a smart proxy of my foreman installation is gone and was replaced by a
> new one with a new host name. When I try to remove the old one, I get a
> looooooong list of hosts that are still "using" the old smart proxy
> (which is impossible, the old one is gone and won't return).
>
> When I try doing a mass change of puppet server and puppet CA, foreman
> tries to contact the old proxy and fails.
>

Whats the error? Have you ticked the "Fail on Mismatch" box ?

··· On Fri, Jun 9, 2017 at 3:33 PM, Marc Haber wrote:

How do I get rid of a smart proxy that is already gone? Is there a force
delete option?

Greetings
Marc


Marc Haber | “I don’t trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things.” Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Hi,

thanks for your answer and sorry for taking so long to reply, I was away

> > a smart proxy of my foreman installation is gone and was replaced by a
> > new one with a new host name. When I try to remove the old one, I get a
> > looooooong list of hosts that are still "using" the old smart proxy
> > (which is impossible, the old one is gone and won't return).
> >
> > When I try doing a mass change of puppet server and puppet CA, foreman
> > tries to contact the old proxy and fails.
> >
>
> Whats the error? Have you ticked the "Fail on Mismatch" box ?

The error is "The Puppet CA proxy could not be set for host: (hostname)
(ERF12-4395 [ProxyAPI::ProxyException]: Unable to retrieve DHCP entry
for (mac address) ([RestClient::Forbidden]): 403 Forbidden) for proxy
http://oldhost:8443/dhcp).

Since there is no "fail on mismatch" box on the way to the error, I
think we might have misunderstanding here. I go to Hosts => All hosts,
select some of the hosts, select "Change Puppet CA" from the "Select
Action" dropdown that appears next to the "New Host" button when I
select a host. A dialog appears that has a Checkbox "Keep selected hosts
for a future action", and a dropdown where the (old and new) puppet CA hosts
are listed. I then select the new host from the dropdown, click "Submit"
and get the error message quoted above.

Greetings
Marc

··· from my foreman for a long weekend. On Fri, Jun 09, 2017 at 06:40:47PM +0100, Sean O'Keeffe wrote: > On Fri, Jun 9, 2017 at 3:33 PM, Marc Haber > wrote:

Marc Haber | “I don’t trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things.” Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421