Hi there,

We are using foreman 1.15.6.

I created a new host called test.example.com
Foreman proxies did their job and dns recors as well as dhcp entry and 
puppet certificate were created.
In the foreman db i can see

MariaDB [foreman]> select name,certname,lookup_value_matcher,type from 
hosts where name like 'test%' order by name \G;
*************************** 1. row ***************************
name: *test.example.com*
certname: NULL
lookup_value_matcher: fqdn=*test.example.com*
type: Host::Managed

Once i run puppet for the first time, i see

MariaDB [foreman]> select name,certname,lookup_value_matcher,type from 
hosts where name like 'test%' order by name \G;
*************************** 1. row ***************************
name: *test.example.com*
certname: *test.example.com*
lookup_value_matcher: fqdn=*test.example.com*
type: Host::Managed

Until here all works as expected.

Then i renamed the host via foreman UI to test-renamed.example.com

In the db, fields are also updated, except for the certificate, see below

MariaDB [foreman]> select name,certname,lookup_value_matcher,type from 
hosts where name like 'test%' order by name \G;
*************************** 1. row ***************************
name: *test-renamed.example.com*
certname: *test.example.com*
lookup_value_matcher: fqdn=*test-renamed.example.com*
type: Host::Managed


Then I ran puppet again after having changed the puppet host config 
(test.example.com) to match certificate with new name

Here the weird behavior happen, foreman creates a new host (named after the 
original host name *test.example.com)*, but with the certificate matching 
the renamed one

MariaDB [foreman]> select name,certname,lookup_value_matcher,type from 
hosts where name like 'test-%' order by name \G;
*************************** 1. row ***************************
name: *test-renamed.example.com*
certname: *test.example.com*
lookup_value_matcher: fqdn=*test-renamed.example.com*
type: Host::Managed
*************************** 2. row ***************************
name: *test.example.com*
certname: *test-renamed.example.com*
lookup_value_matcher: fqdn=*test.example.com*
type: Host::Managed

So now, both are mixed and confusion happens, does anyone encountered this 
before ? is this a bug ? 

thank you

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to