Enable upper requirements on bifrost
pip install for bifrost shall be installing upper requirements, to go with same versions used by Ironic. Change-Id: Ib5081cabc5c73c11a2088689f2e299cd2eb12338
This commit is contained in:
parent
7ac4e42b6a
commit
fd6045d9b3
@ -71,6 +71,7 @@ ironic_git_folder: /opt/stack/ironic
|
||||
ironicclient_git_folder: /opt/stack/python-ironicclient
|
||||
shade_git_folder: /opt/stack/shade
|
||||
dib_git_folder: /opt/stack/diskimage-builder
|
||||
reqs_git_folder: /opt/stack/requirements
|
||||
ironicinspector_git_folder: /opt/stack/ironic-inspector
|
||||
ironicinspectorclient_git_folder: /opt/stack/python-ironic-inspector-client
|
||||
# Comma-separated list, in the format of a string, of drivers that are enabled
|
||||
|
@ -91,6 +91,7 @@
|
||||
state=latest
|
||||
sourcedir={{ ironic_git_folder }}
|
||||
source_install=true
|
||||
extra_args="--no-cache-dir --upgrade --force-reinstall -c {{ reqs_git_folder }}/upper-constraints.txt"
|
||||
when: skip_install is not defined
|
||||
- name: "Install ironic-inspector to permit use of inspection interface"
|
||||
include: inspector_install.yml
|
||||
|
@ -19,11 +19,12 @@
|
||||
state: "{{ state | default(omit) }}"
|
||||
version: "{{ version | default(omit) }}"
|
||||
virtualenv: "{{ bifrost_venv_dir if enable_venv else omit }}"
|
||||
extra_args: "{{ extra_args | default(omit) }}"
|
||||
when: source_install is not defined or source_install == false
|
||||
# NOTE (cinerama): We should be able to use the pip module here and
|
||||
# possibly merge these two tasks when
|
||||
# https://github.com/ansible/ansible-modules-core/pull/2600 lands.
|
||||
- name: "Install from {{ sourcedir }} using pip"
|
||||
command: pip install --upgrade --force-reinstall {{ sourcedir }}
|
||||
command: pip install {{ sourcedir }} {{ extra_args | default('') }}
|
||||
when: source_install is defined and (source_install | bool == true)
|
||||
environment: "{{ bifrost_venv_env if enable_venv else '{}' }}"
|
||||
environment: "{{ bifrost_venv_env if enable_venv else '{}' }}"
|
||||
|
@ -8,6 +8,7 @@ shade_git_url: https://git.openstack.org/openstack-infra/shade
|
||||
ironic_git_url: https://git.openstack.org/openstack/ironic
|
||||
ironicinspector_git_url: https://github.com/openstack/ironic-inspector
|
||||
ironicinspectorclient_git_url: https://github.com/openstack/python-ironic-inspector-client
|
||||
reqs_git_url: https://git.openstack.org/openstack/requirements
|
||||
# *_git_folder can be overridden by local clones for offline installs
|
||||
ironicclient_git_folder: "{{ git_root}}/python-ironicclient"
|
||||
ironic_git_folder: "{{ git_root}}/ironic"
|
||||
@ -15,6 +16,7 @@ ironicinspector_git_folder: "{{ git_root}}/ironic-inspector"
|
||||
ironicinspectorclient_git_folder: "{{ git_root}}/python-ironic-inspector-client"
|
||||
shade_git_folder: "{{ git_root}}/shade"
|
||||
dib_git_folder: "{{ git_root }}/diskimage-builder"
|
||||
reqs_git_folder: "{{ git_root }}/requirements"
|
||||
# *_git_branch can be overridden for stable branch testing
|
||||
ironicclient_git_branch: master
|
||||
ironic_git_branch: master
|
||||
@ -22,6 +24,7 @@ shade_git_branch: master
|
||||
dib_git_branch: master
|
||||
ironicinspector_git_branch: master
|
||||
ironicinspectorclient_git_branch: master
|
||||
reqs_git_branch: master
|
||||
|
||||
# Conditional variables utilized based on CI or manual testing options.
|
||||
copy_from_local_path: false
|
||||
|
@ -42,3 +42,8 @@
|
||||
git_url="{{ ironicinspectorclient_git_url }}"
|
||||
git_folder="{{ ironicinspectorclient_git_folder }}"
|
||||
git_branch="{{ ironicinspectorclient_git_branch }}"
|
||||
|
||||
- include: git.yml
|
||||
git_url="{{ reqs_git_url }}"
|
||||
git_folder="{{ reqs_git_folder }}"
|
||||
git_branch="{{ reqs_git_branch }}"
|
||||
|
@ -29,4 +29,7 @@
|
||||
command: cp -a {{ ironicinspector_git_url }} {{ ironicinspector_git_folder }} chdir={{ git_root }} creates={{ ironicinspector_git_folder }}
|
||||
|
||||
- name: "python-ironic-inspector-client - Copy into place"
|
||||
command: cp -a {{ ironicinspectorclient_git_url }} {{ ironicinspectorclient_git_folder }} chdir={{ git_root }} creates={{ ironicinspectorclient_git_folder }}
|
||||
command: cp -a {{ ironicinspectorclient_git_url }} {{ ironicinspectorclient_git_folder }} chdir={{ git_root }} creates={{ ironicinspectorclient_git_folder }}i
|
||||
|
||||
- name: "Clone upper requirements"
|
||||
command: cp -a {{ reqs_git_url }} {{ reqs_git_folder }} chdir={{ git_root }} creates={{ reqs_git_folder }}
|
||||
|
@ -41,6 +41,7 @@
|
||||
dib_git_url: "/opt/git/openstack/diskimage-builder"
|
||||
ironicinspector_git_url: "{{ lookup('env', 'WORKSPACE') }}/openstack/ironic-inspector"
|
||||
ironicinspectorclient_git_url: "{{ lookup('env', 'WORKSPACE') }}/openstack/python-ironic-inspector-client"
|
||||
reqs_git_url: "/opt/git/openstack/requirements"
|
||||
# TODO(TheJulia) Fix the above paths to be consistent, because the NV job gets the dib
|
||||
# folder cloned, while the gate job does not. Likely need to work out a semi-hybrid
|
||||
# solution.
|
||||
|
@ -23,6 +23,7 @@
|
||||
dib_git_url: "/opt/git/openstack/diskimage-builder"
|
||||
ironicinspector_git_url: "{{ lookup('env', 'WORKSPACE') }}/openstack/ironic-inspector"
|
||||
ironicinspectorclient_git_url: "{{ lookup('env', 'WORKSPACE') }}/openstack/python-ironic-inspector-client"
|
||||
reqs_git_url: "/opt/git/openstack/requirements"
|
||||
# TODO(TheJulia) Fix the above paths to be consistent, because the NV job gets the dib
|
||||
# folder cloned, while the gate job does not. Likely need to work out a semi-hybrid
|
||||
# solution.
|
||||
|
@ -35,6 +35,7 @@
|
||||
dib_git_url: "/opt/git/openstack/diskimage-builder"
|
||||
ironicinspector_git_url: "{{ lookup('env', 'WORKSPACE') }}/openstack/ironic-inspector"
|
||||
ironicinspectorclient_git_url: "{{ lookup('env', 'WORKSPACE') }}/openstack/python-ironic-inspector-client"
|
||||
reqs_git_url: "/opt/git/openstack/requirements"
|
||||
# TODO(TheJulia) Fix the above paths to be consistent, because the NV job gets the dib
|
||||
# folder cloned, while the gate job does not. Likely need to work out a semi-hybrid
|
||||
# solution.
|
||||
|
Loading…
Reference in New Issue
Block a user