Name has already been taken!

hi all,

when I want to edit Host I get message: already been taken like below:

I see now beside Name: This value is used also as the host’s primary interface name.

How can I solve this?

Does anyone know why?

Foreman and Proxy versions: foreman 3.6.1 , foreman-proxy 3.6.1

Distribution and version: Ubuntu 20.04.4 LTS

thanks in advance

solved:

I change the DNS Name in Interface tab and it works! I dont know why its like that for this host!

I think this is not the correct why to do that right?

I have now the problem on other systems too! can anyone help me or why I get the error?

Could you run this command with your new hostname in rails console:

Host.find_by(name: "your_new_hostname")
1 Like

I had the same problem yesterday, found the content host still existing and after deletion of it everything worked fine again.

1 Like

Thats good to know, how can I open a rails console? @lfu

@Dirk which content to you mean ?

It may be a host in a different org, having this name already.

I set to Default Organization and Default Location.

Content host is the object type you have in addition when using Katello with the managed host being provisioning and configuration management and the content host being subscription and content managed part of the host.

I dont use Katello maybe thats why I dont see the field.