Update OpenStack version to Rocky 61/65361/3
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 23 Nov 2018 13:17:59 +0000 (17:17 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Wed, 19 Dec 2018 13:05:47 +0000 (17:05 +0400)
Change-Id: I88f28370180278c4b32599b83eebbb0ee005c936
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
17 files changed:
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/openstack_ha
mcp/config/states/openstack_noha
mcp/config/states/sqlalchemy_update [deleted file]
mcp/reclass/classes/cluster/all-mcp-arch-common/init.yml.j2
mcp/reclass/classes/cluster/mcp-common-ha/infra/kvm.yml.j2
mcp/reclass/classes/cluster/mcp-common-ha/openstack_control.yml.j2
mcp/reclass/classes/cluster/mcp-common-ha/openstack_init.yml.j2
mcp/reclass/classes/cluster/mcp-common-ha/openstack_telemetry.yml.j2
mcp/reclass/classes/cluster/mcp-common-noha/openstack_compute.yml
mcp/reclass/classes/cluster/mcp-common-noha/openstack_control.yml.j2
mcp/reclass/classes/cluster/mcp-common-noha/openstack_gateway.yml
mcp/reclass/classes/cluster/mcp-common-noha/openstack_init.yml.j2

index d49fcf6..1b2e2d0 100644 (file)
@@ -14,7 +14,6 @@ cluster:
     - neutron_gateway
     - quagga
     - networks
-    - sqlalchemy_update
 virtual:
   nodes:
     control:
index 61a2889..51d476d 100644 (file)
@@ -12,7 +12,6 @@ cluster:
     - opendaylight
     - openstack_ha
     - networks
-    - sqlalchemy_update
 virtual:
   nodes:
     control:
index b43f790..3133d0e 100644 (file)
@@ -13,7 +13,6 @@ cluster:
     - openstack_noha
     - neutron_gateway
     - networks
-    - sqlalchemy_update
 virtual:
   nodes:
     control:
index 02f652b..e2df6a4 100644 (file)
@@ -14,7 +14,6 @@ cluster:
     - openstack_noha
     - neutron_gateway
     - networks
-    - sqlalchemy_update
 virtual:
   nodes:
     control:
index 88ad103..8611b02 100644 (file)
@@ -14,7 +14,6 @@ cluster:
     - neutron_gateway
     - tacker
     - networks
-    - sqlalchemy_update
 virtual:
   nodes:
     control:
index 924dc30..3bd1c51 100755 (executable)
@@ -15,7 +15,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh"
 wait_for 5.0 "salt -I 'keepalived:cluster' state.sls keepalived -b 1"
 wait_for 5.0 "salt -I 'keepalived:cluster' pillar.get keepalived:cluster:instance:VIP:address"
 
-wait_for 5.0 "salt -C 'I@rabbitmq:server and *01*' state.sls rabbitmq"
+wait_for 5.0 "salt -I 'rabbitmq:server:cluster:role:master' state.sls rabbitmq"
 salt -I 'rabbitmq:server' state.sls rabbitmq
 salt -I 'rabbitmq:server' cmd.run "rabbitmqctl cluster_status"
 
@@ -34,9 +34,8 @@ salt -I 'haproxy:proxy' state.sls haproxy
 salt -I 'haproxy:proxy' service.status haproxy
 salt -I 'haproxy:proxy' service.restart rsyslog
 
-set +e; salt -I 'keystone:server' state.sls keystone.server -b 1; set -e
-salt -I 'keystone:server' service.restart apache2
 salt -I 'keystone:server' state.sls keystone.server -b 1
+salt -I 'keystone:server' service.restart apache2
 
 wait_for 30.0 "salt -I 'keystone:client' state.sls keystone.client"
 salt -I 'keystone:server' cmd.run ". /root/keystonercv3; openstack service list"
index 44360e5..98e2eff 100755 (executable)
@@ -23,17 +23,14 @@ salt -I 'mysql:server' state.sls mysql
 salt -I 'memcached:server' state.sls memcached
 salt -I 'haproxy:proxy' state.sls haproxy
 
-set +e; salt -I 'keystone:server' state.sls keystone.server; set -e
-salt -I 'keystone:server' service.restart apache2
 salt -I 'keystone:server' state.sls keystone.server
+salt -I 'keystone:server' service.restart apache2
 
 salt -I 'keystone:server' state.sls keystone.client
 salt -I 'keystone:server' cmd.run ". /root/keystonercv3; openstack service list"
 
 salt -I 'glance:server' state.sls glance
 
-# apply nova state twice to complete broken db sync
-salt -I 'nova:controller' state.sls nova
 salt -I 'nova:controller' state.sls nova
 
 salt -I 'heat:server' state.sls heat
diff --git a/mcp/config/states/sqlalchemy_update b/mcp/config/states/sqlalchemy_update
deleted file mode 100755 (executable)
index d4901a9..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/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
index dfa1d89..b0ca102 100644 (file)
@@ -12,7 +12,7 @@ classes:
   - cluster.all-mcp-arch-common.passwords
 parameters:
   _param:
-    openstack_version: queens
+    openstack_version: rocky
     apt_mk_version: nightly
     mcp_repo_version: 1.1
 
index 6b344ef..349d4f1 100644 (file)
@@ -8,6 +8,7 @@
 {%- import 'net_map.j2' as nm with context %}
 ---
 classes:
+  - system.linux.system.repo.mcp.mirror.v1.openstack
   - service.keepalived.cluster.single
   - system.glusterfs.server.volume.glance
   - system.glusterfs.server.volume.keystone
index 41625e8..0770f5c 100644 (file)
@@ -28,6 +28,7 @@ classes:
   - system.glusterfs.client.cluster
   - system.glusterfs.client.volume.glance
   - system.glusterfs.client.volume.keystone
+  - cluster.mcp-common-ha.glusterfs_repo
 {%- if not conf.MCP_VCP %}
   # sync from kvm
   - service.keepalived.cluster.single
@@ -44,7 +45,6 @@ classes:
   # - system.salt.control.cluster.stacklight_server_cluster
   # - system.salt.control.cluster.stacklight_log_cluster
   # - system.salt.control.cluster.stacklight_telemetry_cluster
-  - cluster.mcp-common-ha.glusterfs_repo
   - cluster.mcp-common-ha.infra.kvm_pdf
   - cluster.all-mcp-arch-common.opnfv.maas_proxy
   - cluster.all-mcp-arch-common.opnfv.lab_proxy_pdf
index bb76fdb..b3c51f2 100644 (file)
@@ -7,8 +7,6 @@
 ##############################################################################
 {%- import 'net_map.j2' as nm with context %}
 ---
-classes:
-  - cluster.all-mcp-arch-common.uca_repo
 parameters:
   _param:
     # openstack service addresses
@@ -197,13 +195,8 @@ parameters:
     # billometer_identity_token: ${_param:keystone_service_token}
   linux:
     system:
-      repo:
-        uca:
-          pin:
-            - pin: 'release o=Canonical'
-              priority: 1200
-              package: 'libvirt* qemu* openvswitch* python-openvswitch ovn* dpdk* libdpdk*'
 {%- if 'aarch64' in nm.cluster.arch %}
+      repo:
         armband_3:  # Should be in sync with the repo config generated via curtin/MaaS
           source: "deb http://linux.enea.com/mcp-repos/${_param:openstack_version}/${_param:linux_system_codename} ${_param:openstack_version}-armband main"
           key: ${_param:armband_key}
index fad9052..7f2f269 100644 (file)
@@ -49,7 +49,7 @@ parameters:
           kernel/mm/transparent_hugepage/enabled: never
   redis:
     server:
-      version: 3.0
+      version: 5.0
       appendfsync: 'no'
       bind:
         address: ${_param:single_address}
index f3c668f..41841c9 100644 (file)
@@ -15,7 +15,7 @@ classes:
   - system.ceilometer.client.nova_compute
   - system.ceilometer.client.cinder_volume
   - system.ceilometer.agent.polling.default
-  - system.linux.system.repo.mcp.openstack
+  - system.linux.system.repo.mcp.mirror.v1.openstack
   - service.barbican.client.single
   - cluster.mcp-common-noha.openstack_compute_pdf
 parameters:
index 02a9168..d36d583 100644 (file)
@@ -8,7 +8,7 @@
 ---
 classes:
   - system.linux.system.lowmem
-  - system.linux.system.repo.mcp.openstack
+  - system.linux.system.repo.mcp.mirror.v1.openstack
   - service.nfs.server
   - system.ceilometer.client
   - system.ceilometer.client.neutron
@@ -164,7 +164,7 @@ parameters:
       ~database: ~
   redis:
     server:
-      version: 3.0
+      version: 5.0
       appendfsync: 'no'
       bind:
         address: ${_param:single_address}
index f29cb86..499749d 100644 (file)
@@ -7,7 +7,7 @@
 ##############################################################################
 ---
 classes:
-  - system.linux.system.repo.mcp.openstack
+  - system.linux.system.repo.mcp.mirror.v1.openstack
   - cluster.mcp-common-noha.openstack_gateway_pdf
 parameters:
   _param:
index 54df34c..02b6e9e 100644 (file)
@@ -7,8 +7,6 @@
 ##############################################################################
 {%- import 'net_map.j2' as nm with context %}
 ---
-classes:
-  - cluster.all-mcp-arch-common.uca_repo
 parameters:
   _param:
     openstack_region: RegionOne
@@ -83,13 +81,8 @@ parameters:
           net.ipv4.tcp_congestion_control: yeah
           net.ipv4.tcp_slow_start_after_idle: 0
           net.ipv4.tcp_fin_timeout: 30
-      repo:
-        uca:
-          pin:
-            - pin: 'release o=Canonical'
-              priority: 1200
-              package: 'openvswitch* python-openvswitch ovn* dpdk* libdpdk*'
 {%- if 'aarch64' in nm.cluster.arch %}
+      repo:
         armband_3:  # Should be in sync with the repo config generated via curtin/MaaS
           source: "deb http://linux.enea.com/mcp-repos/${_param:openstack_version}/${_param:linux_system_codename} ${_param:openstack_version}-armband main"
           key: ${_param:armband_key}