Bug #19037
openThe certname doesn't get updated when change doman name of host
Description
When I change domain name of host, then 'certname' filed doesn't get updated.
That causes that puppet can not run after next reprovisioning.
See attached file, where I use python-foreman client to inspect host's fields,
before and after domain name change.
I am trying to change domain name of my machine from "qa.example.com"
to "scl.example.com".
The 'certname' field is same before and after domain change:
"""
u'certname': u'jenkins-vm-22.qa.example.com',
u'name': u'jenkins-vm-22.scl.example.com',
"""
The problem is reproducible from webui as well.
Files
Updated by Dominic Cleal about 8 years ago
- Category set to PuppetCA
It isn't really intended to, AFAIK. If the host is renamed in Foreman then that doesn't affect the certname in the existing host's certificate, which remains the old value. The ENC interface should identify the host still through the existing certname.