Bug #17342
closedCannot change Domain of existing host with hammer/foreman 1.12.4
Description
When trying to rename a host in foreman I got an error that I shouldn't use periods.
After changing the domain, the domain was added to the short-hostname on the host tab. Manually removing the domain on the host tab did not solve this.
Looking in the logfiles, there was an error with the host_entries in puppet. I did remove this, but the error stayed.
See also logdump on pastebin: http://pastebin.com/GUBM3xJQ
I also dumped the hash:
--- "xxxxxx.XXXXX.local:\r\n ip: 10.14.33.16\r\n host_aliases:\r\n
\ - xxxxxxx\r\nxxxxxx.xxxxxxxx.local:\r\n ip: 172.17.99.72\r\n
\ host_aliases:\r\n - xxxxxxx\r\nftp.gwdg.de:\r\n ip: 134.76.12.3\r\nftp5.gwdg.de:\r\n
\ ip: 134.76.12.5\r\nyum.theforeman.org:\r\n ip: 162.242.255.181\r\n"
when trying to rename with hammer:
hammer -u admin host update --id 108 --domain domain.local
[Foreman] Password for admin:
Could not update the host:
Name must not include periods
$ rpm -qa | grep hammer
\tfm-rubygem-hammer_cli_foreman-0.7.0-1.el6.noarch
tfm-rubygem-hammer_cli-0.7.0-1.el6.noarch
Foreman 1.12.4 is running on CentOS 6.7
Could not test if this was reproducable on 1.13 since this is for CentOS/Redhat 7 or up.
on #TheForeman people could not reproduce it on 1.13.
Updated by Oleh Fedorenko over 5 years ago
- Status changed from New to Closed
- Triaged changed from No to Yes
It looks like it's been resolved. I was able to change the domain via hammer for a host.
Closing this. Please, feel free to reopen if the problem still persists.