src: "../../templates/install/override.j2"
dest: "/etc/init/neutron-server.override"
+###############################################
+################ workaround #################
+###############################################
+#- name: "backup keepalived conf"
+# shell: mv /etc/keepalived/keepalived.conf /home/keepalived.conf
+
+#- name: "uninstall keepalived"
+# action: "{{ ansible_pkg_mgr }} name=keepalived state=absent"
+
+#- name: "install iproute"
+# action: "{{ ansible_pkg_mgr }} name=iproute state=present"
+
+#- name: "install iproute"
+# action: "{{ ansible_pkg_mgr }} name=keepalived state=present"
+
+#- name: "restore keepalived conf"
+# shell: mv /home/keepalived.conf /etc/keepalived/keepalived.conf
+###############################################
+
- name: "install contrail openstack config package"
# sudo: True
# apt:
- include_vars: "{{ ansible_os_family }}.yml"
+- name: Disable Service Daemon
+ template:
+ src: "/opt/service"
+ dest: "/opt/service.backup"
+
- name: Install common on all hosts for Open Contrail
include: install/install-common.yml
when: groups['opencontrail_control']|length !=0
include: provision/provision-compute.yml
when: inventory_hostname in groups['opencontrail_compute']
+- name: Enable Service Daemon
+ template:
+ src: "/opt/service.backup"
+ dest: "/opt/service"
#- name: Provision tsn for Open Contrail
# include: provision/provision-tsn.yml
with_items:
- { section: "DEFAULT", option: "network_api_class", value: "nova_contrail_vif.contrailvif.ContrailNetworkAPI" }
+
+
+#################################################
+########### nova plugin workaround ############
+#################################################
+
+- name: "copy nova plugs on compute"
+ template:
+ src: "nova_contrail_vif.tar.gz"
+ dest: "/opt/nova_contrail_vif.tar.gz"
+
+- name: "unzip nova plugs"
+ command: su -s /bin/sh -c "tar xzf /opt/nova_contrail_vif.tar.gz -C /opt/"
+
+- name: "remove original nova plugs"
+ shell: rm -rf /usr/lib/python2.7/dist-packages/nova_contrail_vif/
+
+- name: "use new neutron plugs"
+ shell: mv /opt/nova_contrail_vif/ /usr/lib/python2.7/dist-packages/nova_contrail_vif/
+
+#################################################
+
+
+
+
+
- name: "restart nova compute"
service:
name: "nova-compute"
state: "restarted"
+
+###########################################################
+############# neutron plugins workaround ##################
+###########################################################
+
+- name: "copy neutron plugs on controller"
+ template:
+ src: "neutron_plugin_contrail.tar.gz"
+ dest: "/opt/neutron_plugin_contrail.tar.gz"
+
+- name: "unzip neutron plugs"
+ command: su -s /bin/sh -c "tar xzf /opt/neutron_plugin_contrail.tar.gz -C /opt/"
+
+- name: "remove original neutron plugs"
+ shell: rm -rf /usr/lib/python2.7/dist-packages/neutron_plugin_contrail/
+
+- name: "use new neutron plugs"
+ shell: mv /opt/neutron_plugin_contrail/ /usr/lib/python2.7/dist-packages/neutron_plugin_contrail/
+
+###########################################################
+
+
+
- name: "restart neutron-server"
service:
name: "neutron-server"
physical_interface_address =
# MAC address of device used by dpdk
-physical_interface_mac = {{ hostvars[inventory_hostname][contrail_device]['macaddress'] }}
+physical_interface_mac = {{ hostvars[inventory_hostname][contrail_vhost_device]['macaddress'] }}
[DISCOVERY]
# If COLLECTOR and/or CONTROL-NODE and/or DNS is not specified this section is
gateway = {{ contrail_vhost_gateway }}
# Physical interface name to which virtual host interface maps to
-physical_interface = {{ contrail_device }}
+physical_interface = {{ contrail_vhost_device }}
# We can have multiple gateway sections with different indices in the
# following format