Move optional plugin installs out of the venv
The optionally enabled plugins do not need to be included in the neutron venv, but should be added to the venv when enabled. This prevents clashes between plugins and unnecessary db migrations, including migrations which may not be working due to changes in neutron core which haven't been applied to the plugin yet. Additionally, to unblock the CentOS-7 check, this patch includes adding a task to remove any problem packages on the target host. Related-Bug: #1640319 Co-Authored-By: Donovan Francesco <donovan.francesco@gmail.com> Change-Id: I7dcab3f3d56118b93b9a5d74065234acb620ae22
This commit is contained in:
parent
ecb0152f2c
commit
d4dd9df137
@ -495,10 +495,6 @@ neutron_pip_packages:
|
|||||||
- keystonemiddleware
|
- keystonemiddleware
|
||||||
- PyMySQL
|
- PyMySQL
|
||||||
- neutron
|
- neutron
|
||||||
- neutron_fwaas
|
|
||||||
- neutron_lbaas
|
|
||||||
- neutron_vpnaas
|
|
||||||
- neutron_dynamic_routing
|
|
||||||
- pycrypto
|
- pycrypto
|
||||||
- python-glanceclient
|
- python-glanceclient
|
||||||
- python-keystoneclient
|
- python-keystoneclient
|
||||||
@ -507,11 +503,23 @@ neutron_pip_packages:
|
|||||||
- python-novaclient
|
- python-novaclient
|
||||||
- repoze.lru
|
- repoze.lru
|
||||||
|
|
||||||
|
neutron_optional_bgp_pip_packages:
|
||||||
|
- neutron_dynamic_routing
|
||||||
|
|
||||||
neutron_optional_calico_pip_packages:
|
neutron_optional_calico_pip_packages:
|
||||||
- felix
|
- felix
|
||||||
- networking-calico
|
- networking-calico
|
||||||
- python-etcd
|
- python-etcd
|
||||||
|
|
||||||
|
neutron_optional_fwaas_pip_packages:
|
||||||
|
- neutron_fwaas
|
||||||
|
|
||||||
|
neutron_optional_lbaas_pip_packages:
|
||||||
|
- neutron_lbaas
|
||||||
|
|
||||||
|
neutron_optional_vpnaas_pip_packages:
|
||||||
|
- neutron_vpnaas
|
||||||
|
|
||||||
neutron_proprietary_nuage_pip_packages:
|
neutron_proprietary_nuage_pip_packages:
|
||||||
- nuage-openstack-neutron
|
- nuage-openstack-neutron
|
||||||
- nuage-openstack-neutronclient
|
- nuage-openstack-neutronclient
|
||||||
|
@ -84,3 +84,12 @@
|
|||||||
- neutron_services['neutron-vpnaas-agent']['group'] in group_names
|
- neutron_services['neutron-vpnaas-agent']['group'] in group_names
|
||||||
- neutron_vpnaas | bool
|
- neutron_vpnaas | bool
|
||||||
|
|
||||||
|
- name: Remove known problem packages
|
||||||
|
yum:
|
||||||
|
pkg: "{{ item }}"
|
||||||
|
state: absent
|
||||||
|
register: remove_packages
|
||||||
|
until: remove_packages|success
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
with_items: "{{ neutron_remove_distro_packages }}"
|
||||||
|
@ -126,3 +126,29 @@
|
|||||||
when:
|
when:
|
||||||
- not neutron_developer_mode | bool
|
- not neutron_developer_mode | bool
|
||||||
- neutron_get_venv | success
|
- neutron_get_venv | success
|
||||||
|
|
||||||
|
- name: Install optional pip packages
|
||||||
|
pip:
|
||||||
|
name: "{{ item.packages }}"
|
||||||
|
state: "{{ neutron_pip_package_state }}"
|
||||||
|
virtualenv: "{{ neutron_bin | dirname }}"
|
||||||
|
virtualenv_site_packages: "no"
|
||||||
|
extra_args: >-
|
||||||
|
{{ neutron_developer_mode | ternary('--constraint /opt/developer-pip-constraints.txt', '') }}
|
||||||
|
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
||||||
|
{{ pip_install_options | default('') }}
|
||||||
|
with_items:
|
||||||
|
- packages: "{{ neutron_optional_bgp_pip_packages }}"
|
||||||
|
enabled: "{{ neutron_bgp | bool }}"
|
||||||
|
- packages: "{{ neutron_optional_fwaas_pip_packages }}"
|
||||||
|
enabled: "{{ neutron_fwaas | bool }}"
|
||||||
|
- packages: "{{ neutron_optional_lbaas_pip_packages }}"
|
||||||
|
enabled: "{{ neutron_lbaasv2 | bool }}"
|
||||||
|
- packages: "{{ neutron_optional_vpnaas_pip_packages }}"
|
||||||
|
enabled: "{{ neutron_vpnaas | bool }}"
|
||||||
|
when: "{{ item.enabled }}"
|
||||||
|
register: install_packages
|
||||||
|
until: install_packages|success
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
notify: Restart neutron services
|
||||||
|
@ -38,5 +38,7 @@ neutron_lbaas_distro_packages:
|
|||||||
neutron_vpnaas_distro_packages:
|
neutron_vpnaas_distro_packages:
|
||||||
- openswan
|
- openswan
|
||||||
|
|
||||||
|
neutron_remove_distro_packages: []
|
||||||
|
|
||||||
neutron_lbaasv2_initscript_path: "/etc/init/neutron-lbaasv2-agent.conf"
|
neutron_lbaasv2_initscript_path: "/etc/init/neutron-lbaasv2-agent.conf"
|
||||||
neutron_lbaasv2_agent_servicename: "neutron-lbaasv2-agent"
|
neutron_lbaasv2_agent_servicename: "neutron-lbaasv2-agent"
|
||||||
|
Loading…
Reference in New Issue
Block a user