FOREMAN REST API V2 - Problem to create host

Hello,

I'm experiencing a problem when I'm trying to register a new host through foreman (version 1.7.2) rest api v2. In our environment we have hosts in different subdomains:

Base domain: sicredi.net

Subdomains:
hom.sicredi.net
des.sicredi.net
sus.sicredi.net
tst.sicredi.net

The error occurs only with hosts in domain tst.sicredi.net and sus.sicredi.net, with the message: Name must not include periods

This is the problematic api v2 rest call:
{ "host": { "name":"app1cmparqu001s.sus.sicredi.net","environment_name":"sustentacao","mac":"00:50:56:80:70:e9","architecture_name":"x86_64","operatingsystem_name":"Red Hat Enterprise Linux 6","ptable_id":"7","root_pass":"XXXXXX","model_id":"1","hostgroup_name":"Basenode/Armazenamento","owner_type":"Usergroup","owner_id":"6" } }

This is the call that works fine:
{ "host": { "name":"app1cmparqu001s","domain_name":"sus.sicredi.net","environment_name":"sustentacao","mac":"00:50:56:80:70:e9","architecture_name":"x86_64","operatingsystem_name":"Red Hat Enterprise Linux 6","ptable_id":"7","root_pass":"XXXXXX","model_id":"1","hostgroup_name":"Basenode/Armazenamento","owner_type":"Usergroup","owner_id":"6" } }

Ok, the last one uses hostname + domain, different from previous call with fqdn to register. But, why previous call works for domains hom.sicredi.net and des.sicredi.net, but not works for sus.sicredi.net and tst.sicredi.net?

Any ideas?

Thank you

Tiago Bizerra de Lima
Infraestrutura de TI
Confederação Sicredi - Porto Alegre
Fone: (51) 3358-7188
www.sicredi.com.br<http://www.sicredi.com.br/>

Esta mensagem é somente para uso do destinatário informado e pode conter informações privilegiadas, proprietárias, ou privadas. Se você recebeu esta mensagem por engano, por favor notifique o remetente imediatamente e apague a original. Qualquer uso deste email é proibido.

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.