<commit_before>################################################
#
#              Generated by Chef
#
################################################

[DEFAULT]

# If using qpid...
#rpc_backend=nova.openstack.common.rpc.impl_qpid
#qpid_hostname=<%=node['bcpc']['management']['vip']%>
#qpid_username=admin
#qpid_password=<%=get_config('rabbitmq-password')%>

# Nova API settings
auth_strategy=keystone
api_paste_config=/etc/nova/api-paste.ini
s3_host=<%=node['bcpc']['management']['vip']%>
ec2_listen=<%= node['bcpc']['management']['ip'] %>
ec2_host=<%=node['bcpc']['management']['vip']%>
ec2_workers=<%=node['bcpc']['nova']['workers']%>
osapi_compute_listen=<%= node['bcpc']['management']['ip'] %>
osapi_compute_workers=<%=node['bcpc']['nova']['workers']%>
metadata_listen=169.254.169.254
metadata_host=169.254.169.254
metadata_workers=<%=node['bcpc']['nova']['workers']%>
dmz_cidr=169.254.169.254/32
<% if @servers.include?(node) -%>
enabled_apis=ec2,osapi_compute,metadata
<% else -%>
enabled_apis=metadata
<% end %>
<% if not node['bcpc']['vms_key'].nil? %>
osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
osapi_compute_extension=cobalt.nova.osapi.cobalt_extension.Cobalt_extension
<% end %>

# Nova Scheduler
scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
ram_allocation_ratio=<%=node['bcpc']['nova']['ram_allocation_ratio']%>
reserved_host_memory_mb=<%=node['bcpc']['nova']['reserved_host_memory_mb']%>
cpu_allocation_ratio=<%=node['bcpc']['nova']['cpu_allocation_ratio']%>

# Nova Network settings
network_manager=nova.network.manager.VlanManager
firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
allow_same_net_traffic=False
public_interface=<%=node['bcpc']['floating']['interface']%>
vlan_interface=<%=node['bcpc']['fixed']['vlan_interface']%>
vlan_start=<%=node['bcpc']['fixed']['vlan_start']%>
multi_host=True
fixed_range=<%=node['bcpc']['fixed']['cidr']%>
floating_range=<%=node['bcpc']['floating']['cidr']%>
network_size=<%=node['bcpc']['fixed']['network_size']%>
flat_network_dns=<%=node['bcpc']['management']['vip']%>
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
force_dhcp_release=False
share_dhcp_address=True
teardown_unused_network_gateway=True
fixed_ip_disassociate_timeout=30
dhcp_lease_time=<%=node['bcpc']['fixed']['dhcp_lease_time']%>
send_arp_for_ha=True
my_ip=<%=node['bcpc']['management']['ip']%>
routing_source_ip=<%=node['bcpc']['floating']['ip']%>
dhcp_domain=<%=node['bcpc']['domain_name']%>
default_availability_zone=<%=node['bcpc']['region_name']%>

# Nova Compute settings
connection_type=libvirt
libvirt_type=<%=node['bcpc']['virt_type']%>
libvirt_use_virtio_for_bridges=True
use_cow_images=True
#snapshot_image_format=qcow2
#start_guests_on_host_boot=True
#resume_guests_state_on_host_boot=True

# Nova Volume settings
volume_api_class=nova.volume.cinder.API

# Always boot nova VMs from RBD
libvirt_images_type=rbd
libvirt_images_rbd_pool=<%=node['bcpc']['ceph']['images']['name']%>
libvirt_images_rbd_ceph_conf=/etc/ceph/ceph.conf
rbd_user=admin
rbd_secret_uuid=<%=get_config('libvirt-secret-uuid')%>
# do not allow libvirt to try to inject into the local partition
libvirt_inject_password=false
libvirt_inject_key=false
libvirt_inject_partition=-2
# Set flags for libvirt live migration
libvirt_live_migration_flag="VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_PERSIST_DEST,VIR_MIGRATE_TUNNELLED"

# Nova VNC settings
ssl_only=True
key=/etc/nova/ssl-bcpc.key
cert=/etc/nova/ssl-bcpc.pem
novnc_enabled=True
novncproxy_base_url=https://<%=node['bcpc']['management']['ip']%>:6080/vnc_auto.html
vncserver_proxyclient_address=127.0.0.1
novncproxy_host=<%=node['bcpc']['management']['ip']%>
memcached_servers=<%=node['bcpc']['management']['vip']%>:11211

# Glance settings
image_service=nova.image.glance.GlanceImageService
glance_api_servers=<%=node['bcpc']['protocol']['glance']%>://<%=node['bcpc']['management']['vip']%>:9292
glance_api_insecure=True

# Cloudpipe
vpn_image_id=<%=get_config('glance-cloudpipe-uuid')%>
use_project_ca=True
cnt_vpn_clients=5

# Ceilometer metrics
#instance_usage_audit=True
#instance_usage_audit_period=hour
#notify_on_state_change=vm_and_task_state
#notification_driver=nova.openstack.common.notifier.rpc_notifier
#notification_driver=ceilometer.compute.nova_notifier

# Misc other settings<commit_msg>fixing memcached conf in nova, which is why everything ran horribly<commit_after>################################################
#
#              Generated by Chef
#
################################################

[DEFAULT]

# If using qpid...
#rpc_backend=nova.openstack.common.rpc.impl_qpid
#qpid_hostname=<%=node['bcpc']['management']['vip']%>
#qpid_username=admin
#qpid_password=<%=get_config('rabbitmq-password')%>

# memcached settings
memcached_servers=<%=@servers.map{|x| x['bcpc']['management']['ip'] + ":11211"}.join(",")%>

# Nova API settings
auth_strategy=keystone
api_paste_config=/etc/nova/api-paste.ini
s3_host=<%=node['bcpc']['management']['vip']%>
ec2_listen=<%= node['bcpc']['management']['ip'] %>
ec2_host=<%=node['bcpc']['management']['vip']%>
ec2_workers=<%=node['bcpc']['nova']['workers']%>
osapi_compute_listen=<%= node['bcpc']['management']['ip'] %>
osapi_compute_workers=<%=node['bcpc']['nova']['workers']%>
metadata_listen=169.254.169.254
metadata_host=169.254.169.254
metadata_workers=<%=node['bcpc']['nova']['workers']%>
dmz_cidr=169.254.169.254/32
<% if @servers.include?(node) -%>
enabled_apis=ec2,osapi_compute,metadata
<% else -%>
enabled_apis=metadata
<% end %>
<% if not node['bcpc']['vms_key'].nil? %>
osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
osapi_compute_extension=cobalt.nova.osapi.cobalt_extension.Cobalt_extension
<% end %>

# Nova Scheduler
scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
ram_allocation_ratio=<%=node['bcpc']['nova']['ram_allocation_ratio']%>
reserved_host_memory_mb=<%=node['bcpc']['nova']['reserved_host_memory_mb']%>
cpu_allocation_ratio=<%=node['bcpc']['nova']['cpu_allocation_ratio']%>

# Nova Network settings
network_manager=nova.network.manager.VlanManager
firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
allow_same_net_traffic=False
public_interface=<%=node['bcpc']['floating']['interface']%>
vlan_interface=<%=node['bcpc']['fixed']['vlan_interface']%>
vlan_start=<%=node['bcpc']['fixed']['vlan_start']%>
multi_host=True
fixed_range=<%=node['bcpc']['fixed']['cidr']%>
floating_range=<%=node['bcpc']['floating']['cidr']%>
network_size=<%=node['bcpc']['fixed']['network_size']%>
flat_network_dns=<%=node['bcpc']['management']['vip']%>
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
force_dhcp_release=False
share_dhcp_address=True
teardown_unused_network_gateway=True
fixed_ip_disassociate_timeout=30
dhcp_lease_time=<%=node['bcpc']['fixed']['dhcp_lease_time']%>
send_arp_for_ha=True
my_ip=<%=node['bcpc']['management']['ip']%>
routing_source_ip=<%=node['bcpc']['floating']['ip']%>
dhcp_domain=<%=node['bcpc']['domain_name']%>
default_availability_zone=<%=node['bcpc']['region_name']%>

# Nova Compute settings
connection_type=libvirt
libvirt_type=<%=node['bcpc']['virt_type']%>
libvirt_use_virtio_for_bridges=True
use_cow_images=True
#snapshot_image_format=qcow2
#start_guests_on_host_boot=True
#resume_guests_state_on_host_boot=True

# Nova Volume settings
volume_api_class=nova.volume.cinder.API

# Always boot nova VMs from RBD
libvirt_images_type=rbd
libvirt_images_rbd_pool=<%=node['bcpc']['ceph']['images']['name']%>
libvirt_images_rbd_ceph_conf=/etc/ceph/ceph.conf
rbd_user=admin
rbd_secret_uuid=<%=get_config('libvirt-secret-uuid')%>
# do not allow libvirt to try to inject into the local partition
libvirt_inject_password=false
libvirt_inject_key=false
libvirt_inject_partition=-2
# Set flags for libvirt live migration
libvirt_live_migration_flag="VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_PERSIST_DEST,VIR_MIGRATE_TUNNELLED"

# Nova VNC settings
ssl_only=True
key=/etc/nova/ssl-bcpc.key
cert=/etc/nova/ssl-bcpc.pem
novnc_enabled=True
novncproxy_base_url=https://<%=node['bcpc']['management']['ip']%>:6080/vnc_auto.html
vncserver_proxyclient_address=127.0.0.1
novncproxy_host=<%=node['bcpc']['management']['ip']%>

# Glance settings
image_service=nova.image.glance.GlanceImageService
glance_api_servers=<%=node['bcpc']['protocol']['glance']%>://<%=node['bcpc']['management']['vip']%>:9292
glance_api_insecure=True

# Cloudpipe
vpn_image_id=<%=get_config('glance-cloudpipe-uuid')%>
use_project_ca=True
cnt_vpn_clients=5

# Ceilometer metrics
#instance_usage_audit=True
#instance_usage_audit_period=hour
#notify_on_state_change=vm_and_task_state
#notification_driver=nova.openstack.common.notifier.rpc_notifier
#notification_driver=ceilometer.compute.nova_notifier

# Misc other settings
{'fraction_non_alphanumeric': 0.2000449286757273, 'fraction_numerical': 0.0152757497472762, 'mean_word_length': 13.407766990291263, 'pattern_counts': {'":': 1, '<': 79, '<?xml version=': 0, '>': 79, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1207031', 'n_tokens_mistral': 3494, 'n_tokens_neox': 3319, 'n_words': 313}