Location and Subnet settings not working

When trying to build a host that is a nested location I get the error:
2018-09-27 17:13:47 feac79b5 [app] [I] Current user: admin (administrator)
2018-09-27 17:13:47 feac79b5 [app] [I] Failed to save: Subnet is not defined for host’s location.

Expected outcome:
When trying to SET the nested location in the subnet as allowed I see “Parent is already selected” and the value is not saved. The parent IS selected but the problem occurs.

The odd part is we use both ipv4 and ipv6 subnets and the ipv6 subnet DOES let me set the “nested” location as well as the parent location w/o complaining.

Foreman and Proxy versions:
Foreman 1.16

Is this a bug or intended?

I was able to FORCE it to set the value with “hammer cli”

hammer location add-subnet --subnet-id 15 --id 21

Where --id is the location id.

After that the build worked.

This sounds like a bug, can you please report it on our bug tracker?

I did already :slight_smile: