Skip to content

Instantly share code, notes, and snippets.

@kahou82
Created August 31, 2015 21:49
Show Gist options
  • Save kahou82/a1e960259f43b15ae983 to your computer and use it in GitHub Desktop.
Save kahou82/a1e960259f43b15ae983 to your computer and use it in GitHub Desktop.
# TODO:
# -Get xvnc working
# NOTE:
# Common config now lives in local.conf.common
[[local|localrc]]
disable_service n-obj
disable_service n-xvnc
disable_service tempest
disable_service n-net
enable_service mcapi
enable_service graphite
ENABLED_SERVICES=n-cpu,rabbit,neutron,q-agt
# Passwords. Edit to taste
ADMIN_PASSWORD=secrete
DATABASE_PASSWORD=secrete
MYSQL_PASSWORD=secrete
RABBIT_PASSWORD=secrete
SERVICE_PASSWORD=secrete
SERVICE_TOKEN=secrete
# NOTE(nic): multi-node RabbitMQ should instead define a user/pw
SERVICE_HOST=192.168.58.104
HOST_IP=192.168.58.106
RABBIT_HOST=$SERVICE_HOST
# Neutron Setup
Q_PLUGIN=ml2
Q_AGENT=linuxbridge
IP_VERSION=4
Q_USE_PROVIDER_NETWORKING=True
PHYSICAL_NETWORK=external
PROVIDER_NETWORK_TYPE=vlan
SEGMENTATION_ID=101
FIXED_RANGE=192.168.1.0/24
NETWORK_GATEWAY=192.168.1.1
## END localrc
[[post-config|$NEUTRON_CONF]]
[metacloud]
enable_ipv6 = False
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[ml2]
tenant_network_types = vlan
type_drivers = vlan
mechanism_drivers = linuxbridge
[ml2_type_vlan]
network_vlan_ranges = external
[linux_bridge]
physical_interface_mappings = external:eth1
[dhcp_agent]
dhcp_broadcast_reply = True
[[post-config|$Q_DHCP_CONF_FILE]]
[DEFAULT]
enable_isolated_metadata = True
enable_metadata_network = False
[[post-config|$NOVA_CONF]]
[DEFAULT]
metadata_host = 127.0.0.1
defer_iptables_apply = True
network_manager=nova.network.manager.MetacloudVlanManager
compute_driver=nova.metacloud.virt.libvirt.driver.MetacloudLibvirtDriver
compute_manager=nova.metacloud.compute.manager.MetacloudComputeManager
max_retries=1
metadata_cache_expiration=60
dhcp_lease_time=14400
resume_guests_state_on_host_boot=True
send_arp_for_ha=True
root_helper=sudo
scheduler_default_filters=RetryFilter,AggregateInstanceExtraSpecsFilter,AggregateMultiTenancyIsolation,AvailabilityZoneFilter,ComputeFilter,RamFilter,CoreFilter,ServerGroupAffinityFilter,ServerGroupAntiAffinityFilter,DifferentHostFilter,SameHostFilter
ram_allocation_ratio=0.95
cpu_allocation_ratio=6
ram_weight_multiplier=1
disk_allocation_ratio=0.9
scheduler_max_attempts=5
rpc_response_timeout=120
rpc_conn_pool_size=60
rpc_thread_pool_size=128
dnsmasq_opts=--log-async=100
dnsmasq_opts=--dhcp-ignore=tag:!known
live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE
block_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_NON_SHARED_INC,VIR_MIGRATE_LIVE
libvirt_nonblocking=True
remove_unused_base_images=False
running_deleted_instance_poll_interval=600
[conductor]
manager=nova.conductor.manager.ConductorManager
provider_firewall_use_dse=False
[spice]
enabled=True
[libvirt]
vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver
snapshot_compression=True
[metacloud]
defer_instance_deletes = 0.013
enable_global_verify_hard_enforcement = True
use_host_chains = True
compute_stateful_restart = True
compute_apply_partial_iptables = False
mc_net_enabled = True
default_interface_type = VLAN
network_use_dse = False
dse_network_fourcc = NNIN
dse_vxlan_fourcc = NVXI
vxlan_address_type = multicast
libvirt_bootmenu = True
libvirt_migration_maxdowntime = 1
vxlan_mtu_size = 1450
recover_service_ref = True
mcapi_sql_connection=mysql://mcapi:some_password@localhost/metacloud?charset=utf8
mcapi_sql_min_pool_size=1
mcapi_sql_max_pool_size=5
## END $NOVA_CONF
[[post-config|$CINDER_CONF]]
[DEFAULT]
rpc_response_timeout = 120
[metacloud]
enable_global_verify_hard_enforcement = True
## END $CINDER_CONF
[[post-config|$KEYSTONE_CONF]]
[identity]
driver = keystone.metacloud.identity.metacloud_backend.Identity
[metacloud]
enable_global_verify_hard_enforcement = True
# ldap_user_dn_format = CN=%s,OU=Employees,OU=CiscoUsers,DC=cisco,DC=com
# ldap_uri = ldap://ada-xch2-c1-16.cisco.com/
# enable_ldapsql = True
## END $KEYSTONE_CONF
[[post-config|$NOVA_NETWORK_CONF]]
[DEFAULT]
log_config=/etc/nova/logging.conf
logging_context_format_string="1 %(isotime)s %(hostname)s nova-network %(process)d - [MetaCloud@40521 levelname="%(levelname)s" component="nova-network" funcname="%(name)s" request_id="%(request_id)s" user="%(user)s" tenant="%(tenant)s" instance="%(instance)s" lineno="%(pathname)s:%(lineno)d"] %(name)s %(message)s"
logging_default_format_string="1 %(isotime)s %(hostname)s nova-network %(process)d - [MetaCloud@40521 levelname="%(levelname)s" component="nova-network" funcname="%(name)s" instance="%(instance)s" lineno="%(pathname)s:%(lineno)d"] %(name)s %(message)s"
logging_exception_prefix="!!!NL!!! %(process)d TRACE %(name)s %(instance)s"
## END $NOVA_NETWORK_CONF
[[post-config|$GLANCE_API_CONF]]
[DEFAULT]
delayed_delete = True
scrub_time = 60
scrubber_datadir = /opt/stack/data/glance/scrubber
lock_path = /opt/stack/data/glance/lock
## END $GLANCE_API_CONF
[[post-config|$GLANCE_CONF_DIR/glance-scrubber.conf]]
[DEFAULT]
daemon = False
scrubber_datadir = /opt/stack/data/glance/scrubber
filesystem_store_datadir = /opt/stack/data/glance/images
cleanup_scrubber = True
scrub_time = 60
cleanup_scrubber_time = 60
registry_host = 0.0.0.0
registry_port = 9191
ignore_in_use_images = True
lock_path = /opt/stack/data/glance/lock
# According to the docs, these configuration options are not needed,
# but according to the code, they're absolutely required
admin_user = admin
admin_password = secrete
admin_tenant_name = admin
auth_url = http://localhost:5000/v2.0
# I'm pretty sure this is unused, but the Grizzly docs say it needs to be set
[app:glance-scrubber]
paste.app_factory = glance.store.scrubber:app_factory
## END $GLANCE_CONF_DIR/glance-scrubber.conf
# TODO:
# -Get xvnc working
# NOTE:
# Common config now lives in local.conf.common
[[local|localrc]]
disable_service n-obj
disable_service n-xvnc
disable_service tempest
disable_service n-net
enable_service mcapi
enable_service graphite
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-meta
# Passwords. Edit to taste
ADMIN_PASSWORD=secrete
DATABASE_PASSWORD=secrete
MYSQL_PASSWORD=secrete
RABBIT_PASSWORD=secrete
SERVICE_PASSWORD=secrete
SERVICE_TOKEN=secrete
# NOTE(nic): multi-node RabbitMQ should instead define a user/pw
HOST_IP=192.168.58.104
RABBIT_HOST=$HOST_IP
SERVICE_HOST=$HOST_IP
IMAGE_HOST=$HOST_IP
IDENTITY_HOST=$HOST_IP
disable_service n-cpu
# Neutron Setup
Q_PLUGIN=ml2
Q_AGENT=linuxbridge
IP_VERSION=4
Q_USE_PROVIDER_NETWORKING=True
PHYSICAL_NETWORK=external
PROVIDER_NETWORK_TYPE=vlan
SEGMENTATION_ID=101
FIXED_RANGE=192.168.1.0/24
NETWORK_GATEWAY=192.168.1.1
## END localrc
[[post-config|$NEUTRON_CONF]]
[metacloud]
enable_ipv6 = False
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[ml2]
tenant_network_types = vlan
type_drivers = vlan
mechanism_drivers = linuxbridge
[ml2_type_vlan]
network_vlan_ranges = external
[linux_bridge]
physical_interface_mappings = external:eth1
[dhcp_agent]
dhcp_broadcast_reply = True
[[post-config|$Q_DHCP_CONF_FILE]]
[DEFAULT]
enable_isolated_metadata = True
enable_metadata_network = False
[[post-config|$NOVA_CONF]]
[DEFAULT]
metadata_host = 127.0.0.1
defer_iptables_apply = True
network_manager=nova.network.manager.MetacloudVlanManager
compute_driver=nova.metacloud.virt.libvirt.driver.MetacloudLibvirtDriver
compute_manager=nova.metacloud.compute.manager.MetacloudComputeManager
max_retries=1
metadata_cache_expiration=60
dhcp_lease_time=14400
resume_guests_state_on_host_boot=True
send_arp_for_ha=True
root_helper=sudo
scheduler_default_filters=RetryFilter,AggregateInstanceExtraSpecsFilter,AggregateMultiTenancyIsolation,AvailabilityZoneFilter,ComputeFilter,RamFilter,CoreFilter,ServerGroupAffinityFilter,ServerGroupAntiAffinityFilter,DifferentHostFilter,SameHostFilter
ram_allocation_ratio=0.95
cpu_allocation_ratio=6
ram_weight_multiplier=1
disk_allocation_ratio=0.9
scheduler_max_attempts=5
rpc_response_timeout=120
rpc_conn_pool_size=60
rpc_thread_pool_size=128
dnsmasq_opts=--log-async=100
dnsmasq_opts=--dhcp-ignore=tag:!known
live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE
block_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_NON_SHARED_INC,VIR_MIGRATE_LIVE
libvirt_nonblocking=True
remove_unused_base_images=False
running_deleted_instance_poll_interval=600
[conductor]
manager=nova.conductor.manager.ConductorManager
provider_firewall_use_dse=False
[spice]
enabled=True
[libvirt]
vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver
snapshot_compression=True
[metacloud]
defer_instance_deletes = 0.013
enable_global_verify_hard_enforcement = True
use_host_chains = True
compute_stateful_restart = True
compute_apply_partial_iptables = False
mc_net_enabled = True
default_interface_type = VLAN
network_use_dse = False
dse_network_fourcc = NNIN
dse_vxlan_fourcc = NVXI
vxlan_address_type = multicast
libvirt_bootmenu = True
libvirt_migration_maxdowntime = 1
vxlan_mtu_size = 1450
recover_service_ref = True
mcapi_sql_connection=mysql://mcapi:some_password@localhost/metacloud?charset=utf8
mcapi_sql_min_pool_size=1
mcapi_sql_max_pool_size=5
## END $NOVA_CONF
[[post-config|$CINDER_CONF]]
[DEFAULT]
rpc_response_timeout = 120
[metacloud]
enable_global_verify_hard_enforcement = True
## END $CINDER_CONF
[[post-config|$KEYSTONE_CONF]]
[identity]
driver = keystone.metacloud.identity.metacloud_backend.Identity
[metacloud]
enable_global_verify_hard_enforcement = True
# ldap_user_dn_format = CN=%s,OU=Employees,OU=CiscoUsers,DC=cisco,DC=com
# ldap_uri = ldap://ada-xch2-c1-16.cisco.com/
# enable_ldapsql = True
## END $KEYSTONE_CONF
[[post-config|$NOVA_NETWORK_CONF]]
[DEFAULT]
log_config=/etc/nova/logging.conf
logging_context_format_string="1 %(isotime)s %(hostname)s nova-network %(process)d - [MetaCloud@40521 levelname="%(levelname)s" component="nova-network" funcname="%(name)s" request_id="%(request_id)s" user="%(user)s" tenant="%(tenant)s" instance="%(instance)s" lineno="%(pathname)s:%(lineno)d"] %(name)s %(message)s"
logging_default_format_string="1 %(isotime)s %(hostname)s nova-network %(process)d - [MetaCloud@40521 levelname="%(levelname)s" component="nova-network" funcname="%(name)s" instance="%(instance)s" lineno="%(pathname)s:%(lineno)d"] %(name)s %(message)s"
logging_exception_prefix="!!!NL!!! %(process)d TRACE %(name)s %(instance)s"
## END $NOVA_NETWORK_CONF
[[post-config|$GLANCE_API_CONF]]
[DEFAULT]
delayed_delete = True
scrub_time = 60
scrubber_datadir = /opt/stack/data/glance/scrubber
lock_path = /opt/stack/data/glance/lock
## END $GLANCE_API_CONF
[[post-config|$GLANCE_CONF_DIR/glance-scrubber.conf]]
[DEFAULT]
daemon = False
scrubber_datadir = /opt/stack/data/glance/scrubber
filesystem_store_datadir = /opt/stack/data/glance/images
cleanup_scrubber = True
scrub_time = 60
cleanup_scrubber_time = 60
registry_host = 0.0.0.0
registry_port = 9191
ignore_in_use_images = True
lock_path = /opt/stack/data/glance/lock
# According to the docs, these configuration options are not needed,
# but according to the code, they're absolutely required
admin_user = admin
admin_password = secrete
admin_tenant_name = admin
auth_url = http://localhost:5000/v2.0
# I'm pretty sure this is unused, but the Grizzly docs say it needs to be set
[app:glance-scrubber]
paste.app_factory = glance.store.scrubber:app_factory
## END $GLANCE_CONF_DIR/glance-scrubber.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment