aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2017-07-05 14:39:01 +0800
committerYifei Xue <xueyifei@huawei.com>2017-07-05 15:25:09 +0800
commitc334b9a023106b64d4c2839f6382ddd48d988505 (patch)
tree950357027e11f2168da8d61add1c1436581eef11 /deploy/adapters/ansible
parentcc1d754d9dd7477b2049e869207845d2429d881d (diff)
Upgrade networking-sfc to 3.0.0
JIRA: - In openstack newton, the version of networking-sfc should be 3.0.0. Otherwise after neutron db upgrading, the sfc related tables cannnot be written into neutron db. Change-Id: Iceb17b5f9351d66ba43148211fcc5af053f63e39 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible')
-rwxr-xr-xdeploy/adapters/ansible/roles/onos_cluster/tasks/onos_sfc_controller.yml8
1 files changed, 3 insertions, 5 deletions
diff --git a/deploy/adapters/ansible/roles/onos_cluster/tasks/onos_sfc_controller.yml b/deploy/adapters/ansible/roles/onos_cluster/tasks/onos_sfc_controller.yml
index a1337bdf..2874d503 100755
--- a/deploy/adapters/ansible/roles/onos_cluster/tasks/onos_sfc_controller.yml
+++ b/deploy/adapters/ansible/roles/onos_cluster/tasks/onos_sfc_controller.yml
@@ -25,14 +25,11 @@
- name: unarchive onos driver package
command: su -s /bin/sh -c "tar xvf /opt/networking-onos.tar -C /opt/"
-- name: unarchive onos sfc driver package
- command: su -s /bin/sh -c "tar xvf /opt/networking-sfc.tar -C /opt/"
-
- name: install onos driver
command: su -s /bin/sh -c "/opt/networking-onos/install_driver.sh"
-- name: install onos sfc driver
- command: su -s /bin/sh -c "/opt/networking-sfc/install_driver.sh"
+- name: install networking-sfc
+ pip: name=networking-sfc state=present version=3.0.0
- name: install onos required packages
action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
@@ -190,6 +187,7 @@
su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf \
--config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head" neutron;
su -s /bin/sh -c "neutron-db-manage --subproject networking-sfc upgrade head" neutron;
+ when: inventory_hostname == haproxy_hosts.keys()[0]
- name: Restart neutron-dhcp-agent
service: name=neutron-dhcp-agent state=restarted