)]}'
{"tests/group_vars/all_containers.yml":[{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"df43de9b924d54f49c21091d82b695365f5e8569","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"ansible_host: \"{{ container_name }}\""},{"line_number":17,"context_line":"container_name: \"{{ inventory_hostname }}\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"container_networks:"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5f7c97a3_8c82f7fe","line":16,"range":{"start_line":16,"start_character":18,"end_line":16,"end_character":32},"updated":"2018-07-13 06:55:08.000000000","message":"for me ansible_host should always be the remote destination IP: it\u0027s set in many places in our playbooks/roles to be considered as an IP. In ssh connection case, it is an IP.\nI would like to keep the same meaning ansible_host\u003d\u003dIP, should we decide to change in the future.\n\nA purpose of our connection plugin was to add the extra ability to directly connect to the container without the need for this IP.\n\nMaybe what we should do instead, is to remove ansible_host for those hosts/groups vars, and only define the two variables necessary to connect: container_name\u003d and physical_host\u003d\n\nIf we want to run a full deploy, maybe:\n1) this shouldn\u0027t be tested here in the same job as our current functional testing (but in a scenario like the experimental one)\n2) we should work on removing this dependence on ansible_host everywhere\n\nJust my 2cents.","commit_id":"7460a8b853524a5281a19a37c2c3c571dcc08938"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"879cf020a1c1176ba267394182ff2a48e9e7c499","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"ansible_host: \"{{ container_name }}\""},{"line_number":17,"context_line":"container_name: \"{{ inventory_hostname }}\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"container_networks:"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5f7c97a3_5568df20","line":16,"range":{"start_line":16,"start_character":18,"end_line":16,"end_character":32},"in_reply_to":"5f7c97a3_8c82f7fe","updated":"2018-07-13 14:31:06.000000000","message":"Also agree regarding possibly breaking out the connection tests into some separate jobs with individual inventories targeted to different scenarios since there are so many permutations of ansible inventory configurations we need to cover.","commit_id":"7460a8b853524a5281a19a37c2c3c571dcc08938"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"f7c4a1373f6146c7e82fdd4f200d4cda69c433ff","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"ansible_host: \"{{ container_name }}\""},{"line_number":17,"context_line":"container_name: \"{{ inventory_hostname }}\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"container_networks:"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5f7c97a3_d50f0f89","line":16,"range":{"start_line":16,"start_character":18,"end_line":16,"end_character":32},"in_reply_to":"5f7c97a3_8c82f7fe","updated":"2018-07-13 14:29:35.000000000","message":"And yes this line is just here as I\u0027m still debugging the various ways to break the plugin right now. I agree 100%, it should not exist in this group file if/when this patch merges.","commit_id":"7460a8b853524a5281a19a37c2c3c571dcc08938"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"cb10fde64c568a01c16f9fe2751d6379b7b999dc","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"ansible_host: \"{{ container_name }}\""},{"line_number":17,"context_line":"container_name: \"{{ inventory_hostname }}\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"container_networks:"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5f7c97a3_957f5716","line":16,"range":{"start_line":16,"start_character":18,"end_line":16,"end_character":32},"in_reply_to":"5f7c97a3_8c82f7fe","updated":"2018-07-13 14:22:36.000000000","message":"That\u0027s a fine assumption for OSA, because OSA\u0027s dynamic inventory will populate the container ansible_host with the management IP.\n\nThat\u0027s not a fine assumption for a connection plugin that doesn\u0027t use ansible_host to connect to the containers. The container IP may not be known, and the plugin should not expect ansible_host to be set at all when dealing with an inventory host that is a container.\n\nIn ansible when you have an inventory item that does not contain an ansible_host, the ansible_host gets set to inventory_hostname.\n\nIn that situation, the connection plugin is currently broken. It will no longer recognize the host as a container: https://github.com/openstack/openstack-ansible-plugins/blob/a3add1e7b07236448b251d38709430ae40dca1fe/connection/ssh.py#L418","commit_id":"7460a8b853524a5281a19a37c2c3c571dcc08938"}]}
