Can't delete host from Foreman when puppet certificate doesn't exist

I've setup a dev instance of Foreman to do some testing against the Rest
API. I added a number of records to my Foreman host through the API.
There are no corresponding puppet certificates for these records, as I
didn't build any hosts. The trouble I have now is I can't delete the
records I created, because the Foreman proxy fails to remove the puppet
certificate. I see this in the foreman proxy logs, with logging turned up
to "DEBUG":

#14319] ERROR – : Failed to remove certificate(s) for myhost.example.org:
Execution of puppetca failed, check log files

Is there a way for me to bypass the certificate removal so I can get the
record deleted?

> I've setup a dev instance of Foreman to do some testing against the Rest
> API. I added a number of records to my Foreman host through the API.
> There are no corresponding puppet certificates for these records, as I
> didn't build any hosts. The trouble I have now is I can't delete the
> records I created, because the Foreman proxy fails to remove the puppet
> certificate. I see this in the foreman proxy logs, with logging turned up
> to "DEBUG":

If you want a quick workaround, I would recreate the cert for that host
for the moment, then remove:

puppet cert generate myhost.example.org

··· On 07/14, Kyle Flavin wrote:

#14319] ERROR – : Failed to remove certificate(s) for myhost.example.org:
Execution of puppetca failed, check log files

Is there a way for me to bypass the certificate removal so I can get the
record deleted?


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.


Daniel Lobato Garcia

@eLobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato

That did it, thanks.

··· On Wednesday, July 15, 2015 at 6:54:57 AM UTC-7, Daniel Lobato wrote: > > On 07/14, Kyle Flavin wrote: > > I've setup a dev instance of Foreman to do some testing against the Rest > > API. I added a number of records to my Foreman host through the API. > > There are no corresponding puppet certificates for these records, as I > > didn't build any hosts. The trouble I have now is I can't delete the > > records I created, because the Foreman proxy fails to remove the puppet > > certificate. I see this in the foreman proxy logs, with logging turned > up > > to "DEBUG": > > If you want a quick workaround, I would recreate the cert for that host > for the moment, then remove: > > puppet cert generate myhost.example.org > > > > > #14319] ERROR -- : Failed to remove certificate(s) for > myhost.example.org: > > Execution of puppetca failed, check log files > > > > Is there a way for me to bypass the certificate removal so I can get the > > record deleted? > > > > -- > > 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-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com > . > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > > -- > Daniel Lobato Garcia > > @eLobatoss > blog.daniellobato.me > daniellobato.me > > GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30 > Keybase: https://keybase.io/elobato >