Inventory group of groups dont' work

Hello,
I’m using AWX 2.1.0. I have an inventory like this:

`
[groupA]
host1
host2

[groupB]
host3
host4

[groupAB:children]
groupA
groupB

`

I would use “groupAB” in “limit” field on a template but jobs return error:

`
[WARNING]: Could not match supplied host pattern, ignoring: groupAB

ERROR! Specified hosts and/or --limit does not match any hosts

`

If I use command line and I run the same playbook with this inventory and “–limit=groupAB” option it works.

Is there something wrong in my configuration of is it a bug/limit of AWX?

We have had some issues related to this very recently, and I hope they are all resolved now.

To be sure, I replicated your steps, creating an SCM inventory source, then using it in a job template. Using the limit “groupAB” targeted all 4 hosts as expected. Repo I use to clone is here:

https://github.com/AlanCoding/Ansible-inventory-file-examples/blob/master/static/empty_group_with_children.ini

So this looks like a pretty clear case of it being fixed in current development branch of the code, but something that people running older AWX like 2.1.0 may hit, and will definitely notice.

Thank you Alan for the quick reply.

I noticed only now that there was a couple of minor bumps in AWX in last weeks.
I’ll try again after upgrading my instance.

Cheers

Alberto