Project

General

Profile

Actions

Bug #17342

closed

Cannot change Domain of existing host with hammer/foreman 1.12.4

Added by Rob Doeser over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Yes
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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.

Actions

Also available in: Atom PDF