/Stage[main]/Foreman::Register/Foreman_instance_host[foreman-katellohostname.domain.local]/ensure: change from 'absent' to 'present' failed: Host katellohostname.domain.local does not exist in Foreman at https://katellohostname.domain.local/

Problem:
Within upgrading to katello 4.4.0 I got following error (after Step 1750 or so):
/Stage[main]/Foreman::Register/Foreman_instance_host[foreman-katellohostname.domain.local]/ensure: change from ‘absent’ to ‘present’ failed: Host katellohostname.domain.local does not exist in Foreman at https://katellohostname.domain.local/

upgrade ends with error :frowning:

if I try:
curl --basic -u ADMINUSER https://katellohostname.domain.local/api/v2/hosts?search=name%3D"katellohostname.domain.local" nothing is found but if I do this with only the shortname (curl --basic -u ADMINUSER https://katellohostname.domain.local/api/v2/hosts?search=name%3D"katellohostnamel") the host was found!

What’s the reason for that? Why does the search command not append the domain?

Expected outcome:

katello server should be found even with fqdn

Foreman and Proxy versions:
3.2 /

Foreman and Proxy plugin versions:

katello 4.4.0

Distribution and version:

Other relevant data: