Advertisement
Guest User

Untitled

a guest
Sep 5th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.07 KB | None | 0 0
  1. [[local|localrc]]
  2.  
  3. # Log settings for better readability
  4. LOGFILE=devstack.log
  5. LOG_COLOR=False
  6.  
  7.  
  8. DATABASE_PASSWORD=password
  9. RABBIT_PASSWORD=password
  10. SERVICE_PASSWORD=password
  11. SERVICE_TOKEN=password
  12. ADMIN_PASSWORD=password
  13. IDENTITY_API_VERSION=3
  14.  
  15.  
  16. enable_plugin networking-ovn https://git.openstack.org/openstack/networking-ovn
  17. enable_service ovn-northd
  18. enable_service ovn-controller
  19. enable_service networking-ovn-metadata-agent
  20.  
  21. # Use Neutron instead of nova-network
  22. disable_service n-net
  23. enable_service q-svc
  24.  
  25. # Disable Neutron agents not used with OVN.
  26. disable_service q-agt
  27. disable_service q-l3
  28. disable_service q-dhcp
  29. disable_service q-meta
  30.  
  31. # Enable services, these services depend on neutron plugin.
  32. enable_plugin neutron https://git.openstack.org/openstack/neutron
  33. enable_service q-trunk
  34. #enable_service q-qos
  35.  
  36.  
  37. # Enable neutron tempest plugin tests
  38. enable_plugin neutron-tempest-plugin git://git.openstack.org/openstack/neutron-tempest-plugin
  39.  
  40. # Horizon (the web UI) is enabled by default. You may want to disable
  41. # it here to speed up DevStack a bit.
  42. disable_service horizon
  43.  
  44. # Cinder (OpenStack Block Storage) is disabled by default to speed up
  45. # DevStack a bit. You may enable it here if you would like to use it.
  46. disable_service cinder c-sch c-api c-vol
  47. #enable_service cinder c-sch c-api c-vol
  48.  
  49.  
  50. # Octavia with OVN provider driver. OVN provider driver uses the OVN native
  51. # load balancer and it only supports L4 TCP load balancer and doesn't support
  52. # health check monitor and other advanced features supported by Octavia
  53. # amphore driver. If you want to enable Octavia amphore driver, please see
  54. # the local.conf sample in the octavia repo.
  55. enable_plugin octavia https://git.openstack.org/openstack/octavia
  56. LIBS_FROM_GIT+=python-octaviaclient
  57. enable_service octavia
  58. enable_service o-api
  59. enable_service o-cw
  60. enable_service o-hm
  61. enable_service o-hk
  62.  
  63.  
  64. enable_service disable_service
  65. #disable_service o-hm
  66. enable_plugin octavia-tempest-plugin https://git.openstack.org/openstack/octavia-tempest-plugin
  67.  
  68. KURYR_K8S_LBAAS_USE_OCTAVIA=True
  69.  
  70.  
  71. enable_plugin kuryr-kubernetes \
  72. https://git.openstack.org/openstack/kuryr-kubernetes
  73.  
  74. # Keystone
  75. enable_service key
  76.  
  77. # dependencies
  78. enable_service mysql
  79. enable_service rabbit
  80.  
  81.  
  82. if [[ "$KURYR_K8S_LBAAS_USE_OCTAVIA" == "True" ]]; then
  83. # Octavia LBaaSv2
  84. ## Octavia Deps
  85. # Current Octavia image generation using diskimage-builder is broken ATM
  86. # You can fetch a precreated qcow image from here [1] and set up octavia to
  87. # use it by uncommenting the following lines.
  88. # [1] https://tarballs.openstack.org/octavia/test-images/
  89. # test-only-amphora-x64-haproxy-ubuntu-xenial.qcow2
  90. OCTAVIA_AMP_IMAGE_FILE=/tmp/test-only-amphora-x64-haproxy-ubuntu-xenial.qcow2
  91. OCTAVIA_AMP_IMAGE_SIZE=3
  92. OCTAVIA_AMP_IMAGE_NAME=test-only-amphora-x64-haproxy-ubuntu-xenial
  93. ### Image
  94. ### Barbican
  95. enable_plugin barbican https://git.openstack.org/openstack/barbican
  96. ### Nova
  97. enable_service n-api
  98. enable_service n-api-meta
  99. enable_service n-cpu
  100. enable_service n-cond
  101. enable_service n-sch
  102. enable_service placement-api
  103. enable_service placement-client
  104. ### Glance
  105. enable_service g-api
  106. enable_service g-reg
  107. else
  108. # LBaaSv2 service and Haproxy agent
  109. enable_plugin neutron-lbaas \
  110. git://git.openstack.org/openstack/neutron-lbaas
  111. enable_service q-lbaasv2
  112. fi
  113. # Docker
  114. # ======
  115. # If you already have docker configured, running and with its socket writable
  116. # by the stack user, you can omit the following line.
  117. enable_plugin devstack-plugin-container https://git.openstack.org/openstack/devstack-plugin-container
  118.  
  119. # Etcd
  120. # ====
  121. # The default is for devstack to run etcd for you.
  122. enable_service etcd3
  123.  
  124. # You can also run the deprecated etcd containerized and select the image and
  125. # version of it by commenting the etcd3 service enablement and uncommenting
  126. #
  127. # enable legacy_etcd
  128. #
  129. # You can also modify the following defaults.
  130. # KURYR_ETCD_IMAGE="quay.io/coreos/etcd"
  131. # KURYR_ETCD_VERSION="v3.0.8"
  132. #
  133. # You can select the listening and advertising client and peering Etcd
  134. # addresses by uncommenting and changing from the following defaults:
  135. # KURYR_ETCD_ADVERTISE_CLIENT_URL=http://my_host_ip:2379}
  136. # KURYR_ETCD_ADVERTISE_PEER_URL=http://my_host_ip:2380}
  137. # KURYR_ETCD_LISTEN_CLIENT_URL=http://0.0.0.0:2379}
  138. # KURYR_ETCD_LISTEN_PEER_URL=http://0.0.0.0:2380}
  139. #
  140. # If you already have an etcd cluster configured and running, you can just
  141. # comment out the lines enabling legacy_etcd and etcd3
  142. # then uncomment and set the following line:
  143. # KURYR_ETCD_CLIENT_URL="http://etcd_ip:etcd_client_port"
  144.  
  145. # Kubernetes
  146. # ==========
  147. #
  148.  
  149. # Kubernetes is run from the hyperkube docker image
  150. # If you already have a Kubernetes deployment, you can use it instead and omit
  151. # enabling the Kubernetes service (except Kubelet, which must be run by
  152. # devstack so that it uses our development CNI driver.
  153. #
  154. # The default is, again, for devstack to run the Kubernetes services:
  155. enable_service kubernetes-api
  156. enable_service kubernetes-controller-manager
  157. enable_service kubernetes-scheduler
  158.  
  159. # We use hyperkube to run the services. You can select the hyperkube image and/
  160. # or version by uncommenting and setting the following ENV vars different
  161. # to the following defaults:
  162. # KURYR_HYPERKUBE_IMAGE="gcr.io/google_containers/hyperkube-amd64"
  163. # KURYR_HYPERKUBE_VERSION="v1.6.2"
  164. #
  165. # If you have the 8080 port already bound to another service, you will need to
  166. # have kubernetes API server bind to another port. In order to do that,
  167. # uncomment and set a different port number in:
  168. # KURYR_K8S_API_PORT="8080"
  169.  
  170. # If you want to test with a different range for the Cluster IPs uncomment and
  171. # set the following ENV var to a different CIDR
  172. # KURYR_K8S_CLUSTER_IP_RANGE="10.0.0.0/24"
  173. #
  174. # If, however, you are reusing an existing deployment, you should uncomment and
  175. # set an ENV var so that the Kubelet devstack runs can find the API server:
  176. # KURYR_K8S_API_URL="http (or https, if K8S is SSL/TLS enabled)://k8s_api_ip:k8s_api_port"
  177. #
  178. # If kubernetes API server is 'https' enabled, set path of the ssl cert files
  179. # KURYR_K8S_API_CERT="/etc/kubernetes/certs/kubecfg.crt"
  180. # KURYR_K8S_API_KEY="/etc/kubernetes/certs/kubecfg.key"
  181. # KURYR_K8S_API_CACERT="/etc/kubernetes/certs/ca.crt"
  182.  
  183. # Kubelet
  184. # =======
  185. #
  186. # Kubelet should almost invariably be run by devstack
  187. enable_service kubelet
  188.  
  189. # You can specify a different location for the hyperkube binary that will be
  190. # extracted from the hyperkube container into the Host filesystem:
  191. # KURYR_HYPERKUBE_BINARY=/usr/local/bin/hyperkube
  192. #
  193. # NOTE: KURYR_HYPERKUBE_IMAGE, KURYR_HYPERKUBE_VERSION also affect which
  194. # the selected binary for the Kubelet.
  195.  
  196. # Kuryr watcher
  197. #
  198. # Just like the Kubelet, you'll want to have the watcher enabled. It is the
  199. # part of the codebase that connects to the Kubernetes API server to read the
  200. # resource events and convert them to Neutron actions
  201. enable_service kuryr-kubernetes
  202.  
  203.  
  204. # Kuryr Daemon
  205. # ============
  206. #
  207. # Kuryr runs CNI plugin in daemonized way - i.e. kubelet will run kuryr CNI
  208. # driver and the driver will pass requests to Kuryr daemon running on the node,
  209. # instead of processing them on its own. This limits the number of Kubernetes
  210. # API requests (as only Kuryr Daemon will watch for new pod events) and should
  211. # increase scalability in environments that often delete and create pods.
  212. # Since Rocky release this is a default deployment configuration.
  213. enable_service kuryr-daemon
  214.  
  215. if [[ "$KURYR_K8S_LBAAS_USE_OCTAVIA" == "True" ]]; then
  216. IMAGE_URLS+=",http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"
  217. else
  218.  
  219. NEUTRON_LBAAS_SERVICE_PROVIDERV2="LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default"
  220. fi
  221.  
  222. [[post-config|$OCTAVIA_CONF]]
  223. [controller_worker]
  224. amp_active_retries=9999
  225.  
  226. [[post-config|$OCTAVIA_CONF]]
  227. [api_settings]
  228. enabled_provider_drivers = amphora:The Octavia Amphora driver, ovn:justtetets
  229.  
  230. [[post-config|$NOVA_CONF]]
  231. [scheduler]
  232. discover_hosts_in_cells_interval = 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement