Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [[local|localrc]]
- # Log settings for better readability
- LOGFILE=devstack.log
- LOG_COLOR=False
- DATABASE_PASSWORD=password
- RABBIT_PASSWORD=password
- SERVICE_PASSWORD=password
- SERVICE_TOKEN=password
- ADMIN_PASSWORD=password
- IDENTITY_API_VERSION=3
- enable_plugin networking-ovn https://git.openstack.org/openstack/networking-ovn
- enable_service ovn-northd
- enable_service ovn-controller
- enable_service networking-ovn-metadata-agent
- # Use Neutron instead of nova-network
- disable_service n-net
- enable_service q-svc
- # Disable Neutron agents not used with OVN.
- disable_service q-agt
- disable_service q-l3
- disable_service q-dhcp
- disable_service q-meta
- # Enable services, these services depend on neutron plugin.
- enable_plugin neutron https://git.openstack.org/openstack/neutron
- enable_service q-trunk
- #enable_service q-qos
- # Enable neutron tempest plugin tests
- enable_plugin neutron-tempest-plugin git://git.openstack.org/openstack/neutron-tempest-plugin
- # Horizon (the web UI) is enabled by default. You may want to disable
- # it here to speed up DevStack a bit.
- disable_service horizon
- # Cinder (OpenStack Block Storage) is disabled by default to speed up
- # DevStack a bit. You may enable it here if you would like to use it.
- disable_service cinder c-sch c-api c-vol
- #enable_service cinder c-sch c-api c-vol
- # Octavia with OVN provider driver. OVN provider driver uses the OVN native
- # load balancer and it only supports L4 TCP load balancer and doesn't support
- # health check monitor and other advanced features supported by Octavia
- # amphore driver. If you want to enable Octavia amphore driver, please see
- # the local.conf sample in the octavia repo.
- enable_plugin octavia https://git.openstack.org/openstack/octavia
- LIBS_FROM_GIT+=python-octaviaclient
- enable_service octavia
- enable_service o-api
- enable_service o-cw
- enable_service o-hm
- enable_service o-hk
- enable_service disable_service
- #disable_service o-hm
- enable_plugin octavia-tempest-plugin https://git.openstack.org/openstack/octavia-tempest-plugin
- KURYR_K8S_LBAAS_USE_OCTAVIA=True
- enable_plugin kuryr-kubernetes \
- https://git.openstack.org/openstack/kuryr-kubernetes
- # Keystone
- enable_service key
- # dependencies
- enable_service mysql
- enable_service rabbit
- if [[ "$KURYR_K8S_LBAAS_USE_OCTAVIA" == "True" ]]; then
- # Octavia LBaaSv2
- ## Octavia Deps
- # Current Octavia image generation using diskimage-builder is broken ATM
- # You can fetch a precreated qcow image from here [1] and set up octavia to
- # use it by uncommenting the following lines.
- # [1] https://tarballs.openstack.org/octavia/test-images/
- # test-only-amphora-x64-haproxy-ubuntu-xenial.qcow2
- OCTAVIA_AMP_IMAGE_FILE=/tmp/test-only-amphora-x64-haproxy-ubuntu-xenial.qcow2
- OCTAVIA_AMP_IMAGE_SIZE=3
- OCTAVIA_AMP_IMAGE_NAME=test-only-amphora-x64-haproxy-ubuntu-xenial
- ### Image
- ### Barbican
- enable_plugin barbican https://git.openstack.org/openstack/barbican
- ### Nova
- enable_service n-api
- enable_service n-api-meta
- enable_service n-cpu
- enable_service n-cond
- enable_service n-sch
- enable_service placement-api
- enable_service placement-client
- ### Glance
- enable_service g-api
- enable_service g-reg
- else
- # LBaaSv2 service and Haproxy agent
- enable_plugin neutron-lbaas \
- git://git.openstack.org/openstack/neutron-lbaas
- enable_service q-lbaasv2
- fi
- # Docker
- # ======
- # If you already have docker configured, running and with its socket writable
- # by the stack user, you can omit the following line.
- enable_plugin devstack-plugin-container https://git.openstack.org/openstack/devstack-plugin-container
- # Etcd
- # ====
- # The default is for devstack to run etcd for you.
- enable_service etcd3
- # You can also run the deprecated etcd containerized and select the image and
- # version of it by commenting the etcd3 service enablement and uncommenting
- #
- # enable legacy_etcd
- #
- # You can also modify the following defaults.
- # KURYR_ETCD_IMAGE="quay.io/coreos/etcd"
- # KURYR_ETCD_VERSION="v3.0.8"
- #
- # You can select the listening and advertising client and peering Etcd
- # addresses by uncommenting and changing from the following defaults:
- # KURYR_ETCD_ADVERTISE_CLIENT_URL=http://my_host_ip:2379}
- # KURYR_ETCD_ADVERTISE_PEER_URL=http://my_host_ip:2380}
- # KURYR_ETCD_LISTEN_CLIENT_URL=http://0.0.0.0:2379}
- # KURYR_ETCD_LISTEN_PEER_URL=http://0.0.0.0:2380}
- #
- # If you already have an etcd cluster configured and running, you can just
- # comment out the lines enabling legacy_etcd and etcd3
- # then uncomment and set the following line:
- # KURYR_ETCD_CLIENT_URL="http://etcd_ip:etcd_client_port"
- # Kubernetes
- # ==========
- #
- # Kubernetes is run from the hyperkube docker image
- # If you already have a Kubernetes deployment, you can use it instead and omit
- # enabling the Kubernetes service (except Kubelet, which must be run by
- # devstack so that it uses our development CNI driver.
- #
- # The default is, again, for devstack to run the Kubernetes services:
- enable_service kubernetes-api
- enable_service kubernetes-controller-manager
- enable_service kubernetes-scheduler
- # We use hyperkube to run the services. You can select the hyperkube image and/
- # or version by uncommenting and setting the following ENV vars different
- # to the following defaults:
- # KURYR_HYPERKUBE_IMAGE="gcr.io/google_containers/hyperkube-amd64"
- # KURYR_HYPERKUBE_VERSION="v1.6.2"
- #
- # If you have the 8080 port already bound to another service, you will need to
- # have kubernetes API server bind to another port. In order to do that,
- # uncomment and set a different port number in:
- # KURYR_K8S_API_PORT="8080"
- # If you want to test with a different range for the Cluster IPs uncomment and
- # set the following ENV var to a different CIDR
- # KURYR_K8S_CLUSTER_IP_RANGE="10.0.0.0/24"
- #
- # If, however, you are reusing an existing deployment, you should uncomment and
- # set an ENV var so that the Kubelet devstack runs can find the API server:
- # KURYR_K8S_API_URL="http (or https, if K8S is SSL/TLS enabled)://k8s_api_ip:k8s_api_port"
- #
- # If kubernetes API server is 'https' enabled, set path of the ssl cert files
- # KURYR_K8S_API_CERT="/etc/kubernetes/certs/kubecfg.crt"
- # KURYR_K8S_API_KEY="/etc/kubernetes/certs/kubecfg.key"
- # KURYR_K8S_API_CACERT="/etc/kubernetes/certs/ca.crt"
- # Kubelet
- # =======
- #
- # Kubelet should almost invariably be run by devstack
- enable_service kubelet
- # You can specify a different location for the hyperkube binary that will be
- # extracted from the hyperkube container into the Host filesystem:
- # KURYR_HYPERKUBE_BINARY=/usr/local/bin/hyperkube
- #
- # NOTE: KURYR_HYPERKUBE_IMAGE, KURYR_HYPERKUBE_VERSION also affect which
- # the selected binary for the Kubelet.
- # Kuryr watcher
- #
- # Just like the Kubelet, you'll want to have the watcher enabled. It is the
- # part of the codebase that connects to the Kubernetes API server to read the
- # resource events and convert them to Neutron actions
- enable_service kuryr-kubernetes
- # Kuryr Daemon
- # ============
- #
- # Kuryr runs CNI plugin in daemonized way - i.e. kubelet will run kuryr CNI
- # driver and the driver will pass requests to Kuryr daemon running on the node,
- # instead of processing them on its own. This limits the number of Kubernetes
- # API requests (as only Kuryr Daemon will watch for new pod events) and should
- # increase scalability in environments that often delete and create pods.
- # Since Rocky release this is a default deployment configuration.
- enable_service kuryr-daemon
- if [[ "$KURYR_K8S_LBAAS_USE_OCTAVIA" == "True" ]]; then
- IMAGE_URLS+=",http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"
- else
- NEUTRON_LBAAS_SERVICE_PROVIDERV2="LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default"
- fi
- [[post-config|$OCTAVIA_CONF]]
- [controller_worker]
- amp_active_retries=9999
- [[post-config|$OCTAVIA_CONF]]
- [api_settings]
- enabled_provider_drivers = amphora:The Octavia Amphora driver, ovn:justtetets
- [[post-config|$NOVA_CONF]]
- [scheduler]
- discover_hosts_in_cells_interval = 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement