Merge "Remove pip.conf during upgrade on all hosts"

This commit is contained in:
Jenkins 2016-08-26 15:48:18 +00:00 committed by Gerrit Code Review
commit 66a6b55784
4 changed files with 14 additions and 14 deletions

View File

@ -156,19 +156,18 @@ This command is a subset of the host setup playbook, limited to the first
member of the ``galera_all`` host group so that its container is restarted only
after other Galera containers have been restarted in the previous step.
Cleanup ``pip.conf`` file in the ``repo_servers``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cleanup ``pip.conf`` file
~~~~~~~~~~~~~~~~~~~~~~~~~
If a ``pip.conf`` file exists within the repository server
infrastructure, it can cause build failures when upgrading
to Newton. This play removes the ``pip.conf`` file from the repository
servers.
The presence of ``pip.conf`` file can cause build failures when upgrading to
Newton. This play removes the ``pip.conf`` file on all the physical servers
and on the repo containers.
See :ref:`repo-server-pip-conf-removal` for more details.
See :ref:`pip-conf-removal` for more details.
.. code-block:: console
# openstack-ansible "${UPGRADE_PLAYBOOKS}/repo-server-pip-conf-removal.yml"
# openstack-ansible "${UPGRADE_PLAYBOOKS}/pip-conf-removal.yml"
Ensure hostname aliases are created for non-RFC1034/35 hostnames
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -51,14 +51,14 @@ secrets move into the upgraded environment and generate appropriately.
This adds only new secrets, such as those necessary for new services or new
settings added to existing services. Values set previously are not changed.
.. _repo-server-pip-conf-removal:
.. _pip-conf-removal:
``repo-server-pip-conf-removal.yml``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
``pip-conf-removal.yml``
~~~~~~~~~~~~~~~~~~~~~~~~
The presence of ``pip.conf`` locks down all Python installations to packages
on the repo server. If ``pip.conf`` exists on the repo server, it creates a
circular dependency, causing build failures.
on the repo servers. If ``pip.conf`` exists on a repo server or a physical
node, it will cause a circular dependency issue and the upgrade will fail.
.. _old-hostname-compatibility:

View File

@ -152,6 +152,7 @@ function main {
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/deploy-config-changes.yml")
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/user-secrets-adjustment.yml")
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/db-collation-alter.yml")
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/pip-conf-removal.yml")
# we don't want to trigger galera container restarts yet
RUN_TASKS+=("setup-hosts.yml --limit '!galera_all'")
# add new container config to galera containers but don't restart

View File

@ -14,7 +14,7 @@
# limitations under the License.
- name: Remove pip.conf if found
hosts: repo_all
hosts: hosts:repo_all
gather_facts: true
user: root
tasks: