ibumarskov | 76aa5c7 | 2018-06-13 10:15:37 +0400 | [diff] [blame] | 1 | {% from 'cookied-mcp-mitaka-ovs/underlay.yaml' import HOSTNAME_CFG01 with context %} |
| 2 | {% from 'cookied-mcp-mitaka-ovs/underlay.yaml' import HOSTNAME_CTL01 with context %} |
| 3 | {% from 'cookied-mcp-mitaka-ovs/underlay.yaml' import HOSTNAME_CTL02 with context %} |
| 4 | {% from 'cookied-mcp-mitaka-ovs/underlay.yaml' import HOSTNAME_CTL03 with context %} |
| 5 | {% from 'cookied-mcp-mitaka-ovs/underlay.yaml' import HOSTNAME_GTW01 with context %} |
| 6 | {% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %} |
| 7 | {% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %} |
| 8 | |
ibumarskov | 942417e | 2018-08-23 22:05:59 +0400 | [diff] [blame] | 9 | {% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %} |
Pavel Glazov | 78e6c59 | 2018-10-24 12:20:12 +0400 | [diff] [blame] | 10 | {% import 'shared-salt.yaml' as SHARED with context %} |
ibumarskov | 942417e | 2018-08-23 22:05:59 +0400 | [diff] [blame] | 11 | |
ibumarskov | 7bdc7ed | 2018-08-24 12:06:38 +0400 | [diff] [blame] | 12 | # Deploy nginx before openstack services (PROD-22740) |
| 13 | - description: Deploy nginx proxy |
| 14 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 15 | -C 'I@nginx:server' state.sls nginx |
| 16 | node_name: {{ HOSTNAME_CFG01 }} |
| 17 | retry: {count: 1, delay: 5} |
| 18 | skip_fail: true |
| 19 | |
sgudz | 62df2fc | 2018-10-09 12:26:19 +0300 | [diff] [blame] | 20 | {{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }} |
ibumarskov | 76aa5c7 | 2018-06-13 10:15:37 +0400 | [diff] [blame] | 21 | |
ibumarskov | 7e88667 | 2018-08-23 13:52:13 +0400 | [diff] [blame] | 22 | {{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }} |
| 23 | |
| 24 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }} |
| 25 | |
| 26 | {{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER() }} |
| 27 | |
ibumarskov | 7bdc7ed | 2018-08-24 12:06:38 +0400 | [diff] [blame] | 28 | # SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON |
ibumarskov | 7e88667 | 2018-08-23 13:52:13 +0400 | [diff] [blame] | 29 | |
| 30 | - description: Install neutron service on primary node |
ibumarskov | 76aa5c7 | 2018-06-13 10:15:37 +0400 | [diff] [blame] | 31 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
ibumarskov | 7e88667 | 2018-08-23 13:52:13 +0400 | [diff] [blame] | 32 | -C "I@neutron:server and *01*" state.sls neutron.server |
ibumarskov | e23c10e | 2018-08-20 15:47:58 +0400 | [diff] [blame] | 33 | node_name: {{ HOSTNAME_CFG01 }} |
| 34 | retry: {count: 1, delay: 5} |
| 35 | skip_fail: false |
| 36 | |
ibumarskov | 7e88667 | 2018-08-23 13:52:13 +0400 | [diff] [blame] | 37 | - description: Install neutron service on other nodes |
ibumarskov | e23c10e | 2018-08-20 15:47:58 +0400 | [diff] [blame] | 38 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
ibumarskov | 7e88667 | 2018-08-23 13:52:13 +0400 | [diff] [blame] | 39 | -C "I@neutron:server" state.sls neutron.server |
ibumarskov | 76aa5c7 | 2018-06-13 10:15:37 +0400 | [diff] [blame] | 40 | node_name: {{ HOSTNAME_CFG01 }} |
| 41 | retry: {count: 1, delay: 5} |
| 42 | skip_fail: false |
| 43 | |
| 44 | - description: Install neutron on gtw node |
| 45 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 46 | -C 'I@neutron:gateway' state.sls neutron |
| 47 | node_name: {{ HOSTNAME_CFG01 }} |
| 48 | retry: {count: 1, delay: 5} |
| 49 | skip_fail: false |
| 50 | |
ibumarskov | c075df8 | 2018-07-30 13:23:07 +0400 | [diff] [blame] | 51 | # WORKAROUND PROD-20976 |
| 52 | - description: WORKAROUND PROD-20976 |
| 53 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 54 | -C 'I@neutron:server or I@neutron:gateway' cmd.run "sed -i |
| 55 | 's/#min_l3_agents_per_router = 2/min_l3_agents_per_router = 1/' |
| 56 | /etc/neutron/neutron.conf" |
| 57 | node_name: {{ HOSTNAME_CFG01 }} |
| 58 | retry: {count: 1, delay: 5} |
| 59 | skip_fail: false |
| 60 | |
ibumarskov | f108695 | 2018-08-23 16:32:59 +0400 | [diff] [blame] | 61 | - description: Restart Neutron services |
| 62 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 63 | -C 'I@neutron:server or I@neutron:gateway' cmd.run 'systemctl restart |
| 64 | neutron*' |
| 65 | node_name: {{ HOSTNAME_CFG01 }} |
| 66 | retry: {count: 1, delay: 5} |
| 67 | skip_fail: false |
| 68 | |
ibumarskov | 76aa5c7 | 2018-06-13 10:15:37 +0400 | [diff] [blame] | 69 | - description: Check neutron agent-list |
| 70 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 71 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list' |
| 72 | node_name: {{ HOSTNAME_CFG01 }} |
ibumarskov | 7bdc7ed | 2018-08-24 12:06:38 +0400 | [diff] [blame] | 73 | retry: {count: 3, delay: 20} |
ibumarskov | 76aa5c7 | 2018-06-13 10:15:37 +0400 | [diff] [blame] | 74 | skip_fail: false |
| 75 | |
ibumarskov | 7e88667 | 2018-08-23 13:52:13 +0400 | [diff] [blame] | 76 | {{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }} |
| 77 | |
Pavel Glazov | 9bf865d | 2018-12-13 17:22:01 +0400 | [diff] [blame] | 78 | {{ SHARED_OPENSTACK.MACRO_INSTALL_DESIGNATE(INSTALL_POWERDNS=true) }} |
ibumarskov | 76aa5c7 | 2018-06-13 10:15:37 +0400 | [diff] [blame] | 79 | |
ibumarskov | 7e88667 | 2018-08-23 13:52:13 +0400 | [diff] [blame] | 80 | {{ SHARED_OPENSTACK.MACRO_INSTALL_HORIZON() }} |
ibumarskov | 76aa5c7 | 2018-06-13 10:15:37 +0400 | [diff] [blame] | 81 | |
Pavel Glazov | c3780ef | 2018-12-13 17:44:30 +0400 | [diff] [blame] | 82 | {{ SHARED_OPENSTACK.MACRO_INSTALL_COMPUTE(CELL_MAPPING=true) }} |