|
25 | 25 | dashboard_enabled: "{{ openstack_core_enabled }}"
|
26 | 26 | upper_constraints_file: "{{ ansible_env.HOME }}/src/opendev.org/openstack/requirements/upper-constraints.txt"
|
27 | 27 | docker_image_tag_suffix: "{{ '-aarch64' if ansible_architecture == 'aarch64' else '' }}"
|
| 28 | + pip_user_path_env: |
| 29 | + PATH: "{{ ansible_env.HOME + '/.local/bin:' + ansible_env.PATH }}" |
28 | 30 |
|
29 | 31 | - name: Install dig for Designate testing
|
30 | 32 | become: true
|
|
65 | 67 | # NOTE(yoctozepto): to avoid issues with IPv6 not enabled in the docker daemon
|
66 | 68 | # and since we don't need isolated networks here, use host networking
|
67 | 69 | network_mode: host
|
| 70 | + environment: "{{ pip_user_path_env }}" |
68 | 71 | tasks:
|
69 | 72 | - name: detect whether need build images
|
70 | 73 | set_fact:
|
|
200 | 203 | state: directory
|
201 | 204 | become: true
|
202 | 205 |
|
| 206 | + # NOTE(mgoddard): We need a recent pip to install the latest cryptography |
| 207 | + # library. See https://github.com/pyca/cryptography/issues/5753 |
| 208 | + - name: install pip 19.1.1+ |
| 209 | + pip: |
| 210 | + name: "pip>=19.1.1" |
| 211 | + executable: "pip3" |
| 212 | + extra_args: "--user" |
| 213 | + |
203 | 214 | - name: install kolla-ansible and dependencies
|
204 | 215 | vars:
|
205 | 216 | # Test latest ansible version on Ubuntu, minimum supported on others.
|
|
210 | 221 | - "ansible{{ ansible_version_constraint }}"
|
211 | 222 | - "ara<1.0.0"
|
212 | 223 | executable: "pip3"
|
213 |
| - extra_args: "-c {{ upper_constraints_file }}" |
214 |
| - become: true |
| 224 | + extra_args: "-c {{ upper_constraints_file }} --user" |
215 | 225 |
|
216 | 226 | - name: get ARA callback plugin path
|
217 | 227 | command: "python3 -m ara.setup.callback_plugins"
|
|
486 | 496 |
|
487 | 497 | - hosts: primary
|
488 | 498 | any_errors_fatal: true
|
| 499 | + environment: "{{ pip_user_path_env }}" |
489 | 500 | tasks:
|
490 | 501 | # Upgrade: update config.
|
491 | 502 | - block:
|
|
529 | 540 | pip:
|
530 | 541 | name: "{{ kolla_ansible_src_dir }}"
|
531 | 542 | executable: pip3
|
532 |
| - extra_args: "-c {{ upper_constraints_file }}" |
533 |
| - become: true |
| 543 | + extra_args: "-c {{ upper_constraints_file }} --user" |
534 | 544 |
|
535 | 545 | # Update passwords.yml to include any new passwords added in this
|
536 | 546 | # release.
|
|
627 | 637 |
|
628 | 638 | - hosts: primary
|
629 | 639 | any_errors_fatal: true
|
| 640 | + environment: "{{ pip_user_path_env }}" |
630 | 641 | tasks:
|
631 | 642 | - name: Run reconfigure.sh script
|
632 | 643 | script:
|
|
0 commit comments