Remove pip.conf during upgrade on all hosts
Because pip install role is used as meta of the repo_build, we have circular dependencies before anything could be done. This cleans up the hosts of the --isolated flags, and therefore can properly bootstrap pip. Change-Id: I85cba02628dc454947c0bb798764f5f3955dc48b Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk> (manual forward port)
This commit is contained in:
parent
ebb2404fbc
commit
981db9012a
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
@ -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:
|
||||
|
||||
|
@ -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
|
||||
|
@ -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:
|
Loading…
Reference in New Issue
Block a user