[[local|localrc]]
disable_service dstat

# We cannot change the hostname of the inbuild n-cpu
# But on the current host runs also the networking gateway
# So, the gateway and the cpu host would have the same name,
# but we need to bind them differently (nsx-t vs. ovs)
# Alternative: Find a way to fix the host-name of n-cpu.
# post-config didn't seem to work.
disable_service n-cpu

disable_service n-novnc # At best, we can do MKS

disable_service q-ovn-metadata-agent
disable_service ovn-controller
disable_service ovn-northd

# We might want to copy more defaults from here, instead of doing it with our script afterwards
# https://github.com/openstack/neutron/blob/master/devstack/ml2-ovs-local.conf.sample


enable_plugin networking-nsx-t https://github.com/sapcc/networking-nsx-t devstack

DEST=/opt/stack/
LOGFILE=$DEST/logs/stack.sh.log
LOG_COLOR=False
GIT_DEPTH=10 


TARGET_BRANCH=master

NOVA_BRANCH=35af4b345d997b63f999a090e236d91b78ea4304







DOWNLOAD_DEFAULT_IMAGES=False


IMAGE_URLS="https://repo.eu-de-1.cloud.sap/sap-openstack-ci/images/cirros-0.6.2-x86_64-ide.vmdk" # Monolithic Sparse, IDE

# Script will add {VERSION}/etcd-{ETCD_VERSION}-linux-amd64.tar.gz to the url
ETCD_DOWNLOAD_URL="https://repo.eu-de-1.cloud.sap/sap-openstack-ci/etcd"

DATABASE_****
RABBIT_****
SERVICE_****
ADMIN_****

HOST_IP=10.180.1.21
VIRT_DRIVER=vsphere
VMWAREAPI_USER=Administrator@vsphere.local
VMWAREAPI_****
VMWAREAPI_IP=vc1.osci.c.eu-de-1.cloud.sap
VMWAREAPI_CLUSTER=testcl1

CINDER_DRIVER=vsphere
CINDER_ENABLED_BACKENDS=vmdk:vsphere
CELLSV2_SETUP=singleconductor


Q_USE_SECGROUP=True
FLOATING_RANGE="172.18.161.0/24"
IPV4_ADDRS_SAFE_TO_USE="10.0.0.0/24"
Q_FLOATING_ALLOCATION_POOL=start=172.18.161.250,end=172.18.161.254
PUBLIC_NETWORK_GATEWAY="172.18.161.1"
PUBLIC_INTERFACE=ens224

Q_USE_PROVIDERNET_FOR_PUBLIC=True


Q_AGENT=openvswitch
LB_PHYSICAL_INTERFACE=ens224
PUBLIC_PHYSICAL_NETWORK=default
LB_INTERFACE_MAPPINGS=default:ens224
IP_VERSION=4
Q_USE_SECGROUP=True
ENABLE_TENANT_VLANS=True
TENANT_VLAN_RANGE=2:999
NEUTRON_CREATE_INITIAL_NETWORKS=False

# Tempest values
IPV6_ENABLED=False

[[post-config|$NOVA_CONF]]
[neutron]
service_metadata_proxy=True

[[post-config|$CINDER_CONF]]
[vsphere]
vmware_insecure=True

[[post-config|$NEUTRON_CONF]]
[DEFAULT]
global_physnet_mtu=8950

[experimental]
linuxbridge=true

[[post-config|/$Q_PLUGIN_CONF_FILE]]
[ml2]
type_drivers=vlan
path_mtu=8950
tenant_network_types=vlan
extension_drivers=port_security
overlay_ip_version=4
mechanism_drivers=nsxv3,openvswitch,logger

[ml2_type_vlan]
network_vlan_ranges = default:2:999,public:1000:2000

[securitygroup]
enable_security_group=True
firewall_driver=noop

[[post-config|/etc/neutron/dhcp_agent.ini]]
[DEFAULT]
host=gateway
enable_isolated_metadata=True
interface_driver=openvswitch
dnsmasq_dns_servers=147.204.9.200, 147.204.9.201