guertin
February 16, 2023, 9:30pm
#1
Problem:
I am unable to delete hosts from my Foreman server. From the web console, the delete appears to succeed, but the host is not actually deleted.
/var/log/foreman/production.log shows the error:
Deactivating node scribe8.my.domain in PuppetDB task failed with the following error: malformed format string - %(
Expected outcome:
Host is deleted.
Foreman and Proxy versions:
Foreman 3.5.1
Foreman and Proxy plugin versions:
rubygem-puppetdb_foreman 6.0.1
Distribution and version:
Alma Linux 8.7
1 Like
I’m having the same issue, did you ever figure out a resolution?
-Sam
Same here on Foreman 3.6.1 on Debian 11
Puppet related Plugins:
Name
Value
Description
puppetdb_enabled
No
Integration with PuppetDB, enabled will deactivate a host in PuppetDB when it’s deleted in Foreman
puppetdb_address
https://puppetdb.my.domain:8081/pdb/cmd/v1
Foreman will send PuppetDB requests to this address
puppetdb_ssl_ca_file
/etc/puppetlabs/puppet/ssl/certs/ca.pem
Foreman will send PuppetDB requests with this CA file
puppetdb_ssl_certificate
/etc/puppetlabs/puppet/ssl/certs/puppetmaster.my.domain.pem
Foreman will send PuppetDB requests with this certificate file
puppetdb_ssl_private_key
/etc/puppetlabs/puppet/ssl/private_keys/puppetmaster.my.domain.pem
Foreman will send PuppetDB requests with this key file
PuppetDB API Version
v4: PuppetDB 4 - 7
Foreman will use this PuppetDB API version
On my setup the puppetdb gets configured via the offizial puppetdb module from the Forge but runs on a separeted host:
https://forge.puppet.com/modules/puppetlabs/puppetdb
My temporary workaround was to disable the deletion in the Settings with “puppetdb_enabled => no” so hosts can be deleted at all, but this is not a solution
I also can add a full stracktrace if needed
Thanks for the help!
Max