Feature #28868
closedhammer does not inherit parent location information
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1733241
Description of problem:
subnets and the templates that are configured in the parent location should also be visible in "hammer location info --name child_location". Unlike it shows correctly in GUI.
Version-Release number of selected component (if applicable):
6.5
How reproducible:
100%
Steps to Reproduce:
1. Create a parent and child location on GUI.
2. Create a Subnet under parent and another subnet under child location.
3. Now get the information of location through hammer.
- hammer location info --show-hidden-parameters yes --name child_location ---> It will show subnet which is associated only with child_location.
- hammer location info --show-hidden-parameters yes --name parent_location ---> It will show subnet which is associated only with parent_location.
Actual results:
- hammer location info --show-hidden-parameters yes --name child_location ---> It will show subnet which is associated only with child_location.
- hammer location info --show-hidden-parameters yes --name parent_location ---> It will show subnet which is associated only with parent_location.
Expected results:
Manage Locations >> Parent_Location >> Subnets ---> It will show both subnets under parent & child location.
Manage Locations >> Child_Location >> Subnets ---> It will show both subnets under parent & child location. As inherited from parent.
The above behavior should also be reflected by hammer/API
Additional info:
The same behavior has been observed for provisioning template as well.