Cannot Delete Discovered Hosts in Foreman 1.14.3

Trying to delete discovered hosts in Foreman 1.14.3 ends in error that
Foreman cannot connect to PuppetDB on 8081.

*Error: *Failed to deactiate node <hostname> in PuppetDB: Permission denied

  • connect(2) for "localhost" port 8081

I cleared out the actual hostname in the error above. Also, note there is
a typo in the response. It should be deactivate. I can file a bug report
on the typo unless that has already been fixed in a newer release.

PuppetDB is not installed on the system and from all the docs I have seen;
Foreman does not 'work' with PuppetDB. However when I go through the menus
I find two options under the Monitor menu.

PuppetDB dashboard
PuppetDB nodes

Loren

> Trying to delete discovered hosts in Foreman 1.14.3 ends in error that
> Foreman cannot connect to PuppetDB on 8081.
>
> *Error: *Failed to deactiate node <hostname> in PuppetDB: Permission denied
> - connect(2) for "localhost" port 8081
>
> I cleared out the actual hostname in the error above. Also, note there is
> a typo in the response. It should be deactivate. I can file a bug report
> on the typo unless that has already been fixed in a newer release.
>
> PuppetDB is not installed on the system and from all the docs I have seen;
> Foreman does not 'work' with PuppetDB. However when I go through the menus
> I find two options under the Monitor menu.
>
> PuppetDB dashboard
> PuppetDB nodes

You have the puppetdb_foreman plugin. If you want to connect some actions in
Foreman to PuppetDB, you need to configure the endpoint as per

Alternatively, if you do not use it, simply look for puppetdb_enabled in
the PuppetDB settings (Administer > Settings > PuppetDB tab) and disable
it.

The reason why this happens is because the PuppetDB integration is enabled,
and Foreman is trying to delete the host from PuppetDB too but obviously
it can't

··· On 07/27, Loren Nozot wrote:

Loren


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.


Daniel Lobato Garcia

@dLobatog

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: elobato (Daniel Lobato Garcia) | Keybase

Trying to delete discovered hosts in Foreman 1.14.3 ends in error that
Foreman cannot connect to PuppetDB on 8081.

I would guess you have the foreman puppet db plugin installed.

*Error: *Failed to deactiate node <hostname> in PuppetDB: Permission denied

  • connect(2) for "localhost" port 8081

I cleared out the actual hostname in the error above. Also, note there is
a typo in the response. It should be deactivate. I can file a bug report
on the typo unless that has already been fixed in a newer release.

PuppetDB is not installed on the system and from all the docs I have seen;
Foreman does not 'work' with PuppetDB. However when I go through the menus
I find two options under the Monitor menu.

PuppetDB dashboard
PuppetDB nodes

Loren

··· On Jul 27, 2017 9:32 PM, "Loren Nozot" wrote:


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.