Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.19 KB | None | 0 0
  1. for x in mariadb keystone horizon rabbitmq memcached nova-api \
  2. nova-conductor nova-scheduler glance-api-haproxy \
  3. glance-registry-haproxy glance-api glance-registry \
  4. neutron-server neutron-dhcp-agent neutron-l3-agent \
  5. neutron-metadata-agent neutron-openvswitch-agent \
  6. openvswitch-db-server openvswitch-vswitchd nova-libvirt \
  7. nova-compute nova-consoleauth nova-novncproxy \
  8. nova-novncproxy-haproxy neutron-server-haproxy \
  9. nova-api-haproxy cinder-api cinder-api-haproxy \
  10. cinder-backup cinder-scheduler cinder-volume; \
  11. do
  12. kolla-kubernetes resource create configmap $x
  13. done
  14.  
  15. for x in mariadb rabbitmq glance; do
  16. kolla-kubernetes resource create pv $x
  17. kolla-kubernetes resource create pvc $x
  18. done
  19.  
  20. #### Had run into issues previously creating the cinder-api. Resolved by enabling cinder in globals.yml
  21.  
  22. for x in mariadb memcached keystone-admin keystone-public rabbitmq \
  23. rabbitmq-management nova-api glance-api glance-registry \
  24. neutron-server nova-metadata nova-novncproxy horizon \
  25. cinder-api; \
  26. do
  27. kolla-kubernetes resource create svc $x
  28. done
  29.  
  30.  
  31. # mariadb-bootstrap fails sometimes if the mariadb directory is not empty. This can be fixed by deleting the mariadb folder on the server that is running the bootstrap
  32.  
  33. for x in mariadb-bootstrap rabbitmq-bootstrap; do
  34. kolla-kubernetes resource create bootstrap $x
  35. done
  36.  
  37. watch kubectl get jobs --namespace kolla
  38.  
  39. for x in mariadb-bootstrap rabbitmq-bootstrap; do
  40. kolla-kubernetes resource delete bootstrap $x
  41. done
  42.  
  43. for x in mariadb memcached rabbitmq; do
  44. kolla-kubernetes resource create pod $x
  45. done
  46.  
  47. watch kubectl get pods --namespace kolla
  48.  
  49. # The following command seems to fail and restart a few times for keystone endpoints, but is eventually successful after about a minute or so
  50.  
  51. for x in keystone-create-db keystone-endpoints keystone-manage-db; do
  52. kolla-kubernetes resource create bootstrap $x
  53. done
  54.  
  55. watch kubectl get jobs --namespace kolla
  56.  
  57. for x in keystone-create-db keystone-endpoints keystone-manage-db; do
  58. kolla-kubernetes resource delete bootstrap $x
  59. done
  60.  
  61. kolla-kubernetes resource create pod keystone
  62.  
  63.  
  64. ********** Creation of bootstraps ****************
  65.  
  66. # We split a for loop into multiple ones below
  67.  
  68. for x in glance-create-db glance-create-keystone-endpoint-public \
  69. glance-create-keystone-endpoint-internal glance-create-keystone-endpoint-admin \
  70. glance-manage-db; \
  71. do
  72. kolla-kubernetes resource create bootstrap $x
  73. done
  74.  
  75. # nova-create-api-db takes about 2-3 minutes to be successful
  76.  
  77. for x in nova-create-api-db nova-create-keystone-endpoint-public \
  78. nova-create-keystone-endpoint-internal nova-create-keystone-endpoint-admin \
  79. nova-create-db; \
  80. do
  81. kolla-kubernetes resource create bootstrap $x
  82. done
  83.  
  84. # neutron-manage-db takes 2-3 minutes to be successful
  85.  
  86. for x in neutron-create-db neutron-create-keystone-endpoint-public \
  87. neutron-create-keystone-endpoint-internal neutron-create-keystone-endpoint-admin \
  88. neutron-manage-db; \
  89. do
  90. kolla-kubernetes resource create bootstrap $x
  91. done
  92.  
  93.  
  94. for x in cinder-create-db cinder-create-keystone-endpoint-public \
  95. cinder-create-keystone-endpoint-publicv2 cinder-create-keystone-endpoint-admin \
  96. cinder-create-keystone-endpoint-adminv2 cinder-create-keystone-endpoint-internal \
  97. cinder-create-keystone-endpoint-internalv2 cinder-manage-db; \
  98. do
  99. kolla-kubernetes resource create bootstrap $x
  100. done
  101.  
  102.  
  103. ******* Deleting of bootstraps *************
  104.  
  105. # We split a for loop into multiple ones below
  106.  
  107. for x in glance-create-db glance-create-keystone-endpoint-public \
  108. glance-create-keystone-endpoint-internal glance-create-keystone-endpoint-admin \
  109. glance-manage-db; \
  110. do
  111. kolla-kubernetes resource delete bootstrap $x
  112. done
  113.  
  114. for x in nova-create-api-db nova-create-keystone-endpoint-public \
  115. nova-create-keystone-endpoint-internal nova-create-keystone-endpoint-admin \
  116. nova-create-db; \
  117. do
  118. kolla-kubernetes resource delete bootstrap $x
  119. done
  120.  
  121.  
  122. for x in neutron-create-db neutron-create-keystone-endpoint-public \
  123. neutron-create-keystone-endpoint-internal neutron-create-keystone-endpoint-admin \
  124. neutron-manage-db; \
  125. do
  126. kolla-kubernetes resource delete bootstrap $x
  127. done
  128.  
  129. for x in cinder-create-db cinder-create-keystone-endpoint-public \
  130. cinder-create-keystone-endpoint-publicv2 cinder-create-keystone-endpoint-admin \
  131. cinder-create-keystone-endpoint-adminv2 cinder-create-keystone-endpoint-internal \
  132. cinder-create-keystone-endpoint-internalv2 cinder-manage-db; \
  133. do
  134. kolla-kubernetes resource delete bootstrap $x
  135. done
  136.  
  137.  
  138. ****************** Creation of pods ***********
  139.  
  140. #updated nova-control-conductor-pod.yml.j2 to change from PetSet to StatefulSet
  141. #updated nova-control-scheduler-pod.yml.j2 to change from PetSet to StatefulSet
  142. #updated nova-control-consoleauth-pod.yml.j2 to change from PetSet to StatefulSet
  143.  
  144. for x in nova-api nova-conductor nova-scheduler glance-api \
  145. glance-registry neutron-server horizon nova-consoleauth \
  146. nova-novncproxy cinder-api cinder-scheduler; \
  147. do
  148. kolla-kubernetes resource create pod $x
  149. done
  150.  
  151.  
  152. ************* Creation of other pods ************
  153.  
  154. # Updated openvswitch-ovsdb-daemonset.yml.j2 to add imagePullPolicy
  155. # Updated openvswitch-vswitchb-daemonset.yml.j2 to add imagePullPolicy
  156. # Updated neutron-openvswitch-agent-daemonset.yml.j2 to add imagePullPolicy in two places
  157. # Updated neutron-l3-agent-daemonset.yml.j2 to add imagePullPolicy in two places
  158. # "imagePullPolicy": "IfNotPresent",
  159.  
  160.  
  161. for x in openvswitch-ovsdb-network openvswitch-vswitchd-network \
  162. neutron-openvswitch-agent-network neutron-dhcp-agent \
  163. neutron-metadata-agent-network neutron-l3-agent-network; \
  164. do
  165. kolla-kubernetes resource create pod $x
  166. done
  167.  
  168.  
  169. # Updated the following files to add imagePullPolicy
  170. # nova-libvirt-pod.yml.j2
  171. # nova-compute-pod.yml.j2 in two places
  172.  
  173. kolla-kubernetes resource create pod nova-libvirt
  174. kolla-kubernetes resource create pod nova-compute
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement