[opendaylight] Update SQLAlchemy library 29/64429/2
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 2 Nov 2018 13:00:30 +0000 (17:00 +0400)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 5 Nov 2018 23:00:39 +0000 (00:00 +0100)
To conform to the changes in networking-odl driver:
https://review.openstack.org/604755

Change-Id: I6aaefe9d6d4f26652464f82b7c7e45694387c8af
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/config/scenario/os-odl-bgpvpn-noha.yaml
mcp/config/scenario/os-odl-nofeature-ha.yaml
mcp/config/scenario/os-odl-nofeature-noha.yaml
mcp/config/scenario/os-odl-ovs-noha.yaml
mcp/config/scenario/os-odl-sfc-noha.yaml
mcp/config/states/sqlalchemy_update [new file with mode: 0755]

index 1b2e2d0..d49fcf6 100644 (file)
@@ -14,6 +14,7 @@ cluster:
     - neutron_gateway
     - quagga
     - networks
+    - sqlalchemy_update
 virtual:
   nodes:
     control:
index 51d476d..61a2889 100644 (file)
@@ -12,6 +12,7 @@ cluster:
     - opendaylight
     - openstack_ha
     - networks
+    - sqlalchemy_update
 virtual:
   nodes:
     control:
index 3133d0e..b43f790 100644 (file)
@@ -13,6 +13,7 @@ cluster:
     - openstack_noha
     - neutron_gateway
     - networks
+    - sqlalchemy_update
 virtual:
   nodes:
     control:
index e2df6a4..02f652b 100644 (file)
@@ -14,6 +14,7 @@ cluster:
     - openstack_noha
     - neutron_gateway
     - networks
+    - sqlalchemy_update
 virtual:
   nodes:
     control:
index 8611b02..88ad103 100644 (file)
@@ -14,6 +14,7 @@ cluster:
     - neutron_gateway
     - tacker
     - networks
+    - sqlalchemy_update
 virtual:
   nodes:
     control:
diff --git a/mcp/config/states/sqlalchemy_update b/mcp/config/states/sqlalchemy_update
new file mode 100755 (executable)
index 0000000..d4901a9
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/bash -e
+##############################################################################
+# Copyright (c) 2018 Mirantis Inc., Enea AB and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+sqlalchemy_ver=1.2.1
+
+salt -I 'neutron:server' pkg.install python-pip
+salt -I 'neutron:server' cmd.run \
+  "sudo -H -u neutron pip install --user SQLAlchemy==${sqlalchemy_ver}"
+
+salt -I 'neutron:server' service.restart neutron-server