Docs: Add more detail about how the container inventory entries are generated

Bug #1554528 reported by Jesse Pretorius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Low
Major Hayden

Bug Description

The inventory section in the developer docs could do with a bit more detail about how the dynamic inventory generates the container entries.

From IRC today:

[13:26:22] odyssey4me: wadeholler the dynamic inventory generates container names and IP addresses based on input from the files in /etc/openstack_deploy/env.d/
[13:27:03] odyssey4me: wadeholler if a system is marked with the flag 'is_metal: true' then that service is ignored as it's expected that the service will run on a host, not in a container
[13:27:55] odyssey4me: wadeholler where the containers are located depends on what is specified in /etc/openstack_deploy/openstack_user_config.yml and/or the files in /etc/openstack_deploy/conf.d/
[13:29:34] odyssey4me: effectively if you specify that the host for the 'identity_hosts' group is on my-identity-server1 and my-identity-server2 - similar to https://github.com/openstack/openstack-ansible/blob/master/etc/openstack_deploy/openstack_user_config.yml.aio#L99
[13:29:52] wadeholler: got it. thank you odyssey4me! thats (env.d) is the piece I was missing
[13:30:12] odyssey4me: then the dynamic inventory finds the group called identity_hosts in the environment configuration, eg: https://github.com/openstack/openstack-ansible/blob/master/etc/openstack_deploy/env.d/keystone.yml#L38
[13:31:17] odyssey4me: and seeing as the service doesn't have the is_metal flag set, it'll default to 'is_metal: false', which means that the service is assumed to be running in a container
[13:31:46] odyssey4me: so the dynamic inventory will then create a host entry and ip address for that service container to be located on those hosts

Changed in openstack-ansible:
status: Confirmed → In Progress
Revision history for this message
Major Hayden (rackerhacker) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (master)

Reviewed: https://review.openstack.org/289947
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=2ac5683e38bc975a41aaffc641b74c58381b0dfc
Submitter: Jenkins
Branch: master

commit 2ac5683e38bc975a41aaffc641b74c58381b0dfc
Author: Major Hayden <email address hidden>
Date: Tue Mar 8 12:53:15 2016 -0600

    Docs: Explaining dynamic inventory

    Adding documentation to explain in more detail about the dynamic
    inventory generation process.

    Closes-Bug: 1554528

    Change-Id: I399d703b680f8202407ae80d3b7dac05deb1dbfb

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 13.0.0

This issue was fixed in the openstack/openstack-ansible 13.0.0 release.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

This issue was fixed in the openstack/openstack-ansible 13.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.