Modify the hosts of the post-deploy.yml playbook

Bug #1666808 reported by Zeyu Zhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Undecided
Zeyu Zhu

Bug Description

when deployment with multinode, add ansible_connection=ssh in inventory file, as follows

[control]
xxx.xxx.xxx.xxx ansible_ssh_pass=****** ansible_connection=ssh

the admin-openrc.sh will not copy to the localhost, the "connection:local" in ansible playbook will be covered by "ansible_connection=ssh" in inventory file, then the script will be copied to other controller node.
So we should modify the hosts to localhost to avoid this bug.

Zeyu Zhu (zeyu)
summary: - Fix the path of the admin-openrc.sh script when multinode
+ Modify the hosts of the post-deploy.yml playbook
Changed in kolla-ansible:
assignee: nobody → Zeyu Zhu (zeyu)
Zeyu Zhu (zeyu)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/436822

Changed in kolla-ansible:
status: New → In Progress
Zeyu Zhu (zeyu)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/436822
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=473a5e0ca72f11d0610b8ffd96187aa95145abb4
Submitter: Jenkins
Branch: master

commit 473a5e0ca72f11d0610b8ffd96187aa95145abb4
Author: zhuzeyu <email address hidden>
Date: Wed Feb 22 16:57:42 2017 +0800

    Modify the hosts of the post-deploy.yml playbook

    The admin-openrc.sh should copy to where the python-openstackclient was installed.
    whatever multinode and all-in-one, the place where python-openstackclient was
    installed is localhost, So admin-openrc.sh should copy to localhost.
    The purpose of "connection: local" in ansible playbook is that make sure this script
    can copy to localhost.In all-in-one, Writting as this is ok, it will copy to localhost,
    but in multinode, this will make a bug, add ansible_connection=ssh in inventory file
    the admin-openrc.sh will not copy to the localhost,the "connection:local" in post-deploy.yml
    will be covered by "ansible_connection=ssh" in inventory file, then the script will be copied
    to target node. So we should modify the hosts to localhost to avoid this bug.

    Change-Id: I054717cc2b4adc600808282034a10a58c1184a38
    Closes-Bug: #1666808

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/456094

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 5.0.0.0b2

This issue was fixed in the openstack/kolla-ansible 5.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla-ansible (stable/ocata)

Change abandoned by Zeyu Zhu (<email address hidden>) on branch: stable/ocata
Review: https://review.openstack.org/456094

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.