Hide Forgot
Description of problem: Execution time of /bin/tripleo-ansible-inventory way too high Version-Release number of selected component (if applicable): [root@undercloud-4 ~]# rpm -qf /bin/tripleo-ansible-inventory openstack-tripleo-validations-5.5.0-1.el7ost.noarch Actual results: [stack@undercloud-4 ~]$ time tripleo-ansible-inventory --list {"overcloud": {"children": ["controller", "compute"], "vars": {"ansible_ssh_user": "heat-admin"}}, "controller": ["192.168.24.12"], "undercloud": {"hosts": ["localhost"], "vars": {"overcloud_horizon_url": "http://10.0.0.5:80/dashboard", "overcloud_admin_password": "dzd8PRdB4TWGGygkCDGdUHrkY", "ansible_connection": "local"}}, "compute": ["192.168.24.9", "192.168.24.7"]} real 1m12.398s user 0m0.779s sys 0m0.110s Expected results: < 1 second execution time on any system Additional info: run in a virtual undercloud, however, as this doesn't do anything more than list a few hosts and passwords, it should not take this long
There have been several performance improvements to the inventory in Ocata (backported) and Pike. However, because there are a number of API calls involved when creating the dynamic inventory result, expecting an execution time of < 1s is maybe not realistic. The inventory has a --static-inventory option though which writes the result to a static inventory file. This should help where performance is critical.
*** This bug has been marked as a duplicate of bug 1487759 ***