Skip to content

Instantly share code, notes, and snippets.

@yosshy
Created July 15, 2014 15:57
Show Gist options
  • Save yosshy/85145352519d2856cdfe to your computer and use it in GitHub Desktop.
Save yosshy/85145352519d2856cdfe to your computer and use it in GitHub Desktop.
Monkey Patch for Nova
#!/bin/bash
LINE=""
/bin/grep -Ev '^#' $HOME/nova_list > /tmp/list2
while read i ; do
if [ -n "$LINE" ]; then
LINE=$LINE,$i:nova.ct.ct
else
LINE=$i:nova.ct.ct
fi
done < /tmp/list2
sed -e "s/%%%%/$LINE/" $HOME/nova.conf > /etc/nova/nova.conf
[DEFAULT]
monkey_patch = True
monkey_patch_modules = %%%%
vif_plugging_timeout = 300
vif_plugging_is_fatal = True
service_neutron_metadata_proxy = True
linuxnet_interface_driver =
libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtGenericVIFDriver
security_group_api = neutron
neutron_url = http://192.168.33.102:9696
neutron_region_name = RegionOne
neutron_admin_tenant_name = service
neutron_auth_strategy = keystone
neutron_admin_auth_url = http://192.168.33.102:35357/v2.0
neutron_admin_password = openstack
neutron_admin_username = neutron
network_api_class = nova.network.neutronv2.api.API
firewall_driver = nova.virt.firewall.NoopFirewallDriver
compute_driver = libvirt.LibvirtDriver
default_ephemeral_format = ext4
use_usb_tablet = False
glance_api_servers = 192.168.33.102:9292
rabbit_password = openstack
rabbit_hosts = 192.168.33.102
rpc_backend = nova.openstack.common.rpc.impl_kombu
ec2_dmz_host = 192.168.33.102
vncserver_proxyclient_address = 127.0.0.1
vncserver_listen = 127.0.0.1
vnc_enabled = true
xvpvncproxy_base_url = http://192.168.33.102:6081/console
novncproxy_base_url = http://192.168.33.102:6080/vnc_auto.html
vnc_keymap = ja
notification_driver = messaging
notify_on_state_change = vm_and_task_state
instance_usage_audit_period = hour
instance_usage_audit = True
logging_exception_prefix = %(color)s%(asctime)s.%(msecs)03d TRACE %(name)s %(instance)s
logging_debug_format_suffix = from (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d
logging_default_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [-%(color)s] %(instance)s%(color)s%(message)s
logging_context_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [%(request_id)s %(user_name)s %(project_name)s%(color)s] %(instance)s%(color)s%(message)s
force_config_drive = always
instances_path = /opt/stack/data/nova/instances
lock_path = /opt/stack/data/nova
state_path = /opt/stack/data/nova
volume_api_class = nova.volume.cinder.API
enabled_apis = ec2,osapi_compute,metadata
instance_name_template = instance-%08x
sql_connection = mysql://root:[email protected]/nova?charset=utf8
metadata_workers = 4
ec2_workers = 4
osapi_compute_workers = 4
my_ip = 192.168.33.102
osapi_compute_extension = nova.api.openstack.compute.contrib.standard_extensions
s3_port = 3333
s3_host = 192.168.33.102
default_floating_pool = public
fixed_range =
force_dhcp_release = True
dhcpbridge_flagfile = /etc/nova/nova.conf
scheduler_driver = nova.scheduler.filter_scheduler.FilterScheduler
rootwrap_config = /etc/nova/rootwrap.conf
api_paste_config = /etc/nova/api-paste.ini
allow_resize_to_same_host = True
auth_strategy = keystone
debug = True
verbose = True
[conductor]
workers = 4
[osapi_v3]
enabled = True
[keystone_authtoken]
signing_dir = /var/cache/nova
admin_password = openstack
admin_user = nova
cafile =
admin_tenant_name = service
auth_protocol = http
auth_port = 35357
auth_host = 192.168.33.102
[spice]
enabled = false
html5proxy_base_url = http://192.168.33.102:6082/spice_auto.html
[libvirt]
inject_partition = -2
cpu_mode = none
virt_type = qemu
[keymgr]
fixed_key = 7337045F4A24CF6998C486BD1C787D1CA46C04B4E7F31B2756D63B8CCC73C55A
#nova.api.openstack
#nova.api.openstack.xmlutil
#nova.api.openstack.compute.versions
nova.api.openstack.compute.image_metadata
#nova.api.openstack.compute
#nova.api.openstack.compute.schemas
#nova.api.openstack.compute.schemas.v3.agents
#nova.api.openstack.compute.schemas.v3
#nova.api.openstack.compute.schemas.v3.rescue
#nova.api.openstack.compute.schemas.v3.extended_volumes
#nova.api.openstack.compute.schemas.v3.evacuate
#nova.api.openstack.compute.schemas.v3.console_output
#nova.api.openstack.compute.schemas.v3.admin_password
#nova.api.openstack.compute.schemas.v3.flavor_access
#nova.api.openstack.compute.schemas.v3.keypairs
#nova.api.openstack.compute.schemas.v3.multinic
nova.api.openstack.compute.server_metadata
nova.api.openstack.compute.flavors
#nova.api.openstack.compute.views.versions
#nova.api.openstack.compute.views
#nova.api.openstack.compute.views.flavors
#nova.api.openstack.compute.views.addresses
#nova.api.openstack.compute.views.images
#nova.api.openstack.compute.views.limits
#nova.api.openstack.compute.views.servers
nova.api.openstack.compute.contrib.preserve_ephemeral_rebuild
nova.api.openstack.compute.contrib.extended_server_attributes
nova.api.openstack.compute.contrib.os_networks
nova.api.openstack.compute.contrib.server_password
nova.api.openstack.compute.contrib.extended_ips_mac
nova.api.openstack.compute.contrib.cells
nova.api.openstack.compute.contrib.agents
nova.api.openstack.compute.contrib.volumes
nova.api.openstack.compute.contrib.services
nova.api.openstack.compute.contrib.floating_ip_dns
nova.api.openstack.compute.contrib.extended_services
nova.api.openstack.compute.contrib.extended_hypervisors
nova.api.openstack.compute.contrib.cell_capacities
#nova.api.openstack.compute.contrib
nova.api.openstack.compute.contrib.volume_attachment_update
nova.api.openstack.compute.contrib.availability_zone
#nova.api.openstack.compute.contrib.scheduler_hints
nova.api.openstack.compute.contrib.rescue
nova.api.openstack.compute.contrib.baremetal_ext_status
nova.api.openstack.compute.contrib.user_quotas
nova.api.openstack.compute.contrib.certificates
nova.api.openstack.compute.contrib.flavorextradata
#nova.api.openstack.compute.contrib.disk_config
nova.api.openstack.compute.contrib.extended_ips
nova.api.openstack.compute.contrib.server_start_stop
nova.api.openstack.compute.contrib.flavor_rxtx
nova.api.openstack.compute.contrib.migrations
nova.api.openstack.compute.contrib.extended_services_delete
nova.api.openstack.compute.contrib.deferred_delete
nova.api.openstack.compute.contrib.fixed_ips
nova.api.openstack.compute.contrib.createserverext
nova.api.openstack.compute.contrib.networks_associate
nova.api.openstack.compute.contrib.extended_volumes
nova.api.openstack.compute.contrib.floating_ip_pools
nova.api.openstack.compute.contrib.fping
nova.api.openstack.compute.contrib.floating_ips
nova.api.openstack.compute.contrib.evacuate
nova.api.openstack.compute.contrib.image_size
nova.api.openstack.compute.contrib.aggregates
nova.api.openstack.compute.contrib.block_device_mapping_v2_boot
nova.api.openstack.compute.contrib.console_output
nova.api.openstack.compute.contrib.extended_floating_ips
nova.api.openstack.compute.contrib.server_groups
nova.api.openstack.compute.contrib.multiple_create
nova.api.openstack.compute.contrib.user_data
nova.api.openstack.compute.contrib.instance_usage_audit_log
nova.api.openstack.compute.contrib.server_diagnostics
nova.api.openstack.compute.contrib.server_usage
nova.api.openstack.compute.contrib.os_tenant_networks
nova.api.openstack.compute.contrib.extended_virtual_interfaces_net
nova.api.openstack.compute.contrib.floating_ips_bulk
nova.api.openstack.compute.contrib.admin_actions
nova.api.openstack.compute.contrib.attach_interfaces
nova.api.openstack.compute.contrib.flavor_disabled
nova.api.openstack.compute.contrib.extended_quotas
nova.api.openstack.compute.contrib.flavorextraspecs
nova.api.openstack.compute.contrib.used_limits_for_admin
nova.api.openstack.compute.contrib.flavor_access
nova.api.openstack.compute.contrib.security_groups
nova.api.openstack.compute.contrib.shelve
nova.api.openstack.compute.contrib.config_drive
nova.api.openstack.compute.contrib.consoles
nova.api.openstack.compute.contrib.hosts
nova.api.openstack.compute.contrib.flavormanage
nova.api.openstack.compute.contrib.flavor_swap
nova.api.openstack.compute.contrib.cloudpipe_update
nova.api.openstack.compute.contrib.hypervisors
nova.api.openstack.compute.contrib.instance_actions
nova.api.openstack.compute.contrib.assisted_volume_snapshots
nova.api.openstack.compute.contrib.cloudpipe
nova.api.openstack.compute.contrib.extended_status
nova.api.openstack.compute.contrib.hide_server_addresses
nova.api.openstack.compute.contrib.used_limits
nova.api.openstack.compute.contrib.extended_availability_zone
nova.api.openstack.compute.contrib.keypairs
nova.api.openstack.compute.contrib.security_group_default_rules
nova.api.openstack.compute.contrib.quotas
nova.api.openstack.compute.contrib.server_external_events
nova.api.openstack.compute.contrib.console_auth_tokens
nova.api.openstack.compute.contrib.simple_tenant_usage
nova.api.openstack.compute.contrib.baremetal_nodes
nova.api.openstack.compute.contrib.multinic
nova.api.openstack.compute.contrib.virtual_interfaces
#nova.api.openstack.compute.plugins
#nova.api.openstack.compute.plugins.v3.extended_server_attributes
#nova.api.openstack.compute.plugins.v3.versions
#nova.api.openstack.compute.plugins.v3.lock_server
#nova.api.openstack.compute.plugins.v3.extension_info
#nova.api.openstack.compute.plugins.v3.server_password
#nova.api.openstack.compute.plugins.v3.cells
#nova.api.openstack.compute.plugins.v3.agents
#nova.api.openstack.compute.plugins.v3.services
#nova.api.openstack.compute.plugins.v3
#nova.api.openstack.compute.plugins.v3.availability_zone
#nova.api.openstack.compute.plugins.v3.block_device_mapping
#nova.api.openstack.compute.plugins.v3.create_backup
#nova.api.openstack.compute.plugins.v3.scheduler_hints
#nova.api.openstack.compute.plugins.v3.server_metadata
#nova.api.openstack.compute.plugins.v3.rescue
#nova.api.openstack.compute.plugins.v3.flavors
#nova.api.openstack.compute.plugins.v3.certificates
#nova.api.openstack.compute.plugins.v3.pause_server
#nova.api.openstack.compute.plugins.v3.flavor_rxtx
#nova.api.openstack.compute.plugins.v3.migrations
#nova.api.openstack.compute.plugins.v3.migrate_server
#nova.api.openstack.compute.plugins.v3.deferred_delete
#nova.api.openstack.compute.plugins.v3.flavors_extraspecs
#nova.api.openstack.compute.plugins.v3.extended_volumes
#nova.api.openstack.compute.plugins.v3.evacuate
#nova.api.openstack.compute.plugins.v3.aggregates
#nova.api.openstack.compute.plugins.v3.console_output
#nova.api.openstack.compute.plugins.v3.admin_password
#nova.api.openstack.compute.plugins.v3.pci
#nova.api.openstack.compute.plugins.v3.multiple_create
#nova.api.openstack.compute.plugins.v3.user_data
#nova.api.openstack.compute.plugins.v3.server_diagnostics
#nova.api.openstack.compute.plugins.v3.server_usage
#nova.api.openstack.compute.plugins.v3.admin_actions
#nova.api.openstack.compute.plugins.v3.attach_interfaces
#nova.api.openstack.compute.plugins.v3.ips
#nova.api.openstack.compute.plugins.v3.suspend_server
#nova.api.openstack.compute.plugins.v3.flavor_access
#nova.api.openstack.compute.plugins.v3.security_groups
#nova.api.openstack.compute.plugins.v3.shelve
#nova.api.openstack.compute.plugins.v3.config_drive
#nova.api.openstack.compute.plugins.v3.consoles
#nova.api.openstack.compute.plugins.v3.flavor_manage
#nova.api.openstack.compute.plugins.v3.hosts
#nova.api.openstack.compute.plugins.v3.hypervisors
#nova.api.openstack.compute.plugins.v3.instance_actions
#nova.api.openstack.compute.plugins.v3.remote_consoles
#nova.api.openstack.compute.plugins.v3.extended_status
#nova.api.openstack.compute.plugins.v3.hide_server_addresses
#nova.api.openstack.compute.plugins.v3.access_ips
#nova.api.openstack.compute.plugins.v3.extended_availability_zone
#nova.api.openstack.compute.plugins.v3.keypairs
#nova.api.openstack.compute.plugins.v3.server_external_events
#nova.api.openstack.compute.plugins.v3.quota_sets
#nova.api.openstack.compute.plugins.v3.console_auth_tokens
#nova.api.openstack.compute.plugins.v3.servers
#nova.api.openstack.compute.plugins.v3.multinic
#nova.api.openstack.compute.extensions
nova.api.openstack.compute.ips
nova.api.openstack.compute.images
nova.api.openstack.compute.consoles
#nova.api.openstack.compute.limits
nova.api.openstack.compute.servers
#nova.api.openstack.extensions
#nova.api.openstack.urlmap
#nova.api.openstack.auth
#nova.api.openstack.common
#nova.api.openstack.wsgi
#nova.api.validation.parameter_types
#nova.api.validation
#nova.api.validation.validators
#nova.api
#nova.api.validator
#nova.api.ec2
#nova.api.ec2.ec2utils
#nova.api.ec2.inst_state
#nova.api.ec2.faults
#nova.api.ec2.cloud
#nova.api.ec2.apirequest
#nova.api.metadata.password
#nova.api.metadata
#nova.api.metadata.handler
#nova.api.metadata.base
#nova.api.metadata.vendordata_json
#nova.api.sizelimit
#nova.api.manager
#nova.api.auth
nova.cells.weights
nova.cells.weights.mute_child
nova.cells.weights.ram_by_instance_type
nova.cells.weights.weight_offset
#nova.cells
nova.cells.driver
nova.cells.rpcapi
nova.cells.opts
nova.cells.filters.target_cell
#nova.cells.filters
nova.cells.filters.image_properties
#nova.cells.state
nova.cells.utils
nova.cells.messaging
nova.cells.manager
nova.cells.scheduler
nova.cells.rpc_driver
#nova.cert
nova.cert.rpcapi
nova.cert.manager
#nova.cloudpipe
nova.cloudpipe.pipelib
#nova.cmd.novnc
#nova.cmd.cells
#nova.cmd.baremetal_manage
#nova.cmd
#nova.cmd.manage
#nova.cmd.api
#nova.cmd.api_metadata
#nova.cmd.consoleauth
#nova.cmd.novncproxy
#nova.cmd.console
#nova.cmd.baremetal_deploy_helper
#nova.cmd.network
#nova.cmd.all
#nova.cmd.cert
#nova.cmd.dhcpbridge
#nova.cmd.api_ec2
#nova.cmd.compute
#nova.cmd.scheduler
#nova.cmd.api_os_compute
#nova.cmd.objectstore
#nova.cmd.conductor
#nova.cmd.xvpvncproxy
#nova.cmd.spicehtml5proxy
nova.compute.power_state
nova.compute.vm_mode
nova.compute.vm_states
#nova.compute
nova.compute.api
nova.compute.rpcapi
nova.compute.flavors
nova.compute.monitors.cpu_monitor
#nova.compute.monitors
nova.compute.monitors.virt.cpu_monitor
nova.compute.monitors.virt
nova.compute.claims
nova.compute.utils
nova.compute.task_states
nova.compute.cells_api
nova.compute.manager
nova.compute.instance_actions
nova.compute.resource_tracker
nova.compute.stats
nova.conductor.tasks
nova.conductor.tasks.live_migrate
#nova.conductor
nova.conductor.api
nova.conductor.rpcapi
nova.conductor.manager
#nova.console
nova.console.api
nova.console.websocketproxy
nova.console.rpcapi
#nova.console.fake
nova.console.vmrc_manager
nova.console.xvp
nova.console.manager
nova.console.vmrc
nova.consoleauth
nova.consoleauth.rpcapi
nova.consoleauth.manager
#nova.db
#nova.db.api
#nova.db.migration
#nova.db.base
#nova.db.sqlalchemy.types
#nova.db.sqlalchemy.migrate_repo
#nova.db.sqlalchemy.migrate_repo.manage
#nova.db.sqlalchemy.migrate_repo.versions.226_placeholder
#nova.db.sqlalchemy.migrate_repo.versions.233_add_stats_in_compute_nodes
#nova.db.sqlalchemy.migrate_repo.versions.220_placeholder
#nova.db.sqlalchemy.migrate_repo.versions
#nova.db.sqlalchemy.migrate_repo.versions.222_placeholder
#nova.db.sqlalchemy.migrate_repo.versions.229_add_extra_resources_in_compute_nodes
#nova.db.sqlalchemy.migrate_repo.versions.225_placeholder
#nova.db.sqlalchemy.migrate_repo.versions.221_placeholder
#nova.db.sqlalchemy.migrate_repo.versions.219_placeholder
#nova.db.sqlalchemy.migrate_repo.versions.218_placeholder
#nova.db.sqlalchemy.migrate_repo.versions.232_drop_dump_tables
#nova.db.sqlalchemy.migrate_repo.versions.216_havana
#nova.db.sqlalchemy.migrate_repo.versions.228_add_metrics_in_compute_nodes
#nova.db.sqlalchemy.migrate_repo.versions.223_placeholder
#nova.db.sqlalchemy.migrate_repo.versions.231_add_ephemeral_key_uuid
#nova.db.sqlalchemy.migrate_repo.versions.224_placeholder
#nova.db.sqlalchemy.migrate_repo.versions.230_add_details_column_to_instance_actions_events
#nova.db.sqlalchemy.migrate_repo.versions.217_placeholder
#nova.db.sqlalchemy.migrate_repo.versions.227_fix_project_user_quotas_resource_length
#nova.db.sqlalchemy
#nova.db.sqlalchemy.api
#nova.db.sqlalchemy.migration
#nova.db.sqlalchemy.models
#nova.db.sqlalchemy.utils
#nova.hacking
#nova.hacking.checks
#nova.image
nova.image.s3
nova.image.download
nova.image.download.file
nova.image.download.base
nova.image.glance
#nova.ipv6
nova.ipv6.api
nova.ipv6.rfc2462
nova.ipv6.account_identifier
nova.keymgr.not_implemented_key_mgr
#nova.keymgr
nova.keymgr.key_mgr
nova.keymgr.mock_key_mgr
nova.keymgr.conf_key_mgr
nova.keymgr.single_key_mgr
nova.keymgr.key
#nova.network
nova.network.driver
nova.network.nova_ipam_lib
nova.network.api
nova.network.rpcapi
#nova.network.model
nova.network.security_group.openstack_driver
nova.network.security_group
nova.network.security_group.security_group_base
nova.network.security_group.neutron_driver
nova.network.noop_dns_driver
nova.network.floating_ips
nova.network.dns_driver
nova.network.l3
nova.network.linux_net
nova.network.minidns
nova.network.manager
nova.network.neutronv2
nova.network.neutronv2.api
nova.network.neutronv2.constants
nova.network.ldapdns
#nova.objects.dns_domain
#nova.objects.instance_fault
#nova.objects.fixed_ip
#nova.objects
#nova.objects.pci_device
#nova.objects.fields
#nova.objects.external_event
#nova.objects.network
#nova.objects.compute_node
#nova.objects.instance
#nova.objects.migration
#nova.objects.floating_ip
#nova.objects.block_device
#nova.objects.base
#nova.objects.service
#nova.objects.aggregate
#nova.objects.security_group_rule
#nova.objects.keypair
#nova.objects.utils
#nova.objects.virtual_interface
#nova.objects.flavor
#nova.objects.instance_info_cache
#nova.objects.quotas
#nova.objects.security_group
#nova.objects.instance_group
#nova.objects.instance_action
#nova.objectstore.s3server
#nova.objectstore
#nova.openstack
#nova.openstack.common.policy
#nova.openstack.common.local
#nova.openstack.common.xmlutils
#nova.openstack.common.imageutils
#nova.openstack.common.periodic_task
#nova.openstack.common.gettextutils
#nova.openstack.common
#nova.openstack.common.loopingcall
#nova.openstack.common.importutils
#nova.openstack.common.versionutils
#nova.openstack.common.fileutils
#nova.openstack.common.report.guru_meditation_report
#nova.openstack.common.report.models.with_default_views
#nova.openstack.common.report.models
#nova.openstack.common.report.models.version
#nova.openstack.common.report.models.base
#nova.openstack.common.report.models.threading
#nova.openstack.common.report.models.conf
#nova.openstack.common.report
#nova.openstack.common.report.report
#nova.openstack.common.report.generators
#nova.openstack.common.report.generators.version
#nova.openstack.common.report.generators.threading
#nova.openstack.common.report.generators.conf
#nova.openstack.common.report.views.json
#nova.openstack.common.report.views.json.generic
#nova.openstack.common.report.views.text
#nova.openstack.common.report.views.text.header
#nova.openstack.common.report.views.text.generic
#nova.openstack.common.report.views.text.threading
#nova.openstack.common.report.views
#nova.openstack.common.report.views.xml
#nova.openstack.common.report.views.xml.generic
#nova.openstack.common.report.views.jinja_view
#nova.openstack.common.report.utils
#nova.openstack.common.jsonutils
#nova.openstack.common.uuidutils
#nova.openstack.common.excutils
#nova.openstack.common.processutils
#nova.openstack.common.service
#nova.openstack.common.config
#nova.openstack.common.config.generator
#nova.openstack.common.timeutils
#nova.openstack.common.eventlet_backdoor
#nova.openstack.common.threadgroup
#nova.openstack.common.network_utils
#nova.openstack.common.units
#nova.openstack.common.strutils
#nova.openstack.common.sslutils
#nova.openstack.common.middleware
#nova.openstack.common.middleware.request_id
#nova.openstack.common.middleware.base
#nova.openstack.common.db.exception
#nova.openstack.common.db
#nova.openstack.common.db.api
#nova.openstack.common.db.options
#nova.openstack.common.db.sqlalchemy.session
#nova.openstack.common.db.sqlalchemy.provision
#nova.openstack.common.db.sqlalchemy
#nova.openstack.common.db.sqlalchemy.migration
#nova.openstack.common.db.sqlalchemy.models
#nova.openstack.common.db.sqlalchemy.utils
#nova.openstack.common.db.sqlalchemy.test_base
#nova.openstack.common.db.sqlalchemy.test_migrations
#nova.openstack.common.context
#nova.openstack.common.memorycache
#nova.openstack.common.fixture.logging
#nova.openstack.common.fixture
#nova.openstack.common.fixture.config
#nova.openstack.common.fixture.mockpatch
#nova.openstack.common.fixture.moxstubout
#nova.openstack.common.fixture.lockutils
#nova.openstack.common.cliutils
#nova.openstack.common.lockutils
#nova.openstack.common.log
nova.pci.pci_stats
#nova.pci
nova.pci.pci_request
nova.pci.pci_utils
nova.pci.pci_manager
nova.pci.pci_whitelist
#nova.rdp
nova.scheduler.weights.metrics
nova.scheduler.weights
nova.scheduler.weights.ram
#nova.scheduler
nova.scheduler.filter_scheduler
nova.scheduler.driver
nova.scheduler.host_manager
nova.scheduler.scheduler_options
nova.scheduler.rpcapi
nova.scheduler.filters.compute_capabilities_filter
nova.scheduler.filters.disk_filter
nova.scheduler.filters.trusted_filter
nova.scheduler.filters.image_props_filter
nova.scheduler.filters.ram_filter
nova.scheduler.filters.aggregate_multitenancy_isolation
nova.scheduler.filters
nova.scheduler.filters.availability_zone_filter
nova.scheduler.filters.num_instances_filter
nova.scheduler.filters.isolated_hosts_filter
nova.scheduler.filters.core_filter
nova.scheduler.filters.compute_filter
nova.scheduler.filters.metrics_filter
nova.scheduler.filters.all_hosts_filter
nova.scheduler.filters.pci_passthrough_filter
nova.scheduler.filters.aggregate_instance_extra_specs
nova.scheduler.filters.json_filter
nova.scheduler.filters.type_filter
nova.scheduler.filters.aggregate_image_properties_isolation
nova.scheduler.filters.extra_specs_ops
nova.scheduler.filters.retry_filter
nova.scheduler.filters.io_ops_filter
nova.scheduler.filters.affinity_filter
nova.scheduler.baremetal_host_manager
nova.scheduler.utils
nova.scheduler.manager
nova.scheduler.chance
nova.scheduler.caching_scheduler
#nova.servicegroup
nova.servicegroup.api
nova.servicegroup.drivers.zk
nova.servicegroup.drivers
nova.servicegroup.drivers.mc
nova.servicegroup.drivers.db
nova.spice
#nova.storage
nova.storage.linuxscsi
##nova.tests.fake_loadables
##nova.tests.fake_loadables.fake_loadable2
##nova.tests.fake_loadables.fake_loadable1
#nova.tests.test_quota
#nova.tests.test_cinder
#nova.tests.test_configdrive2
#nova.tests.integrated.api
#nova.tests.integrated.api.client
#nova.tests.integrated
#nova.tests.integrated.test_login
#nova.tests.integrated.test_servers
#nova.tests.integrated.integrated_helpers
#nova.tests.integrated.test_xml
#nova.tests.integrated.test_multiprocess_api
#nova.tests.integrated.test_extensions
#nova.tests.integrated.v3.test_config_drive
#nova.tests.integrated.v3.test_cells
#nova.tests.integrated.v3.test_aggregates
#nova.tests.integrated.v3.test_multinic
#nova.tests.integrated.v3.test_server_usage
#nova.tests.integrated.v3.test_admin_password
#nova.tests.integrated.v3.test_quota_sets
#nova.tests.integrated.v3.test_lock_server
#nova.tests.integrated.v3.test_servers_ips
#nova.tests.integrated.v3.test_flavor_extraspecs
#nova.tests.integrated.v3.test_extended_status
#nova.tests.integrated.v3
#nova.tests.integrated.v3.test_hypervisors
#nova.tests.integrated.v3.test_servers
#nova.tests.integrated.v3.test_suspend_server
#nova.tests.integrated.v3.test_attach_interfaces
#nova.tests.integrated.v3.test_availability_zone
#nova.tests.integrated.v3.test_flavors
#nova.tests.integrated.v3.test_pci
#nova.tests.integrated.v3.test_flavor_manage
#nova.tests.integrated.v3.test_pause_server
#nova.tests.integrated.v3.test_create_backup
#nova.tests.integrated.v3.test_admin_actions
#nova.tests.integrated.v3.test_extended_server_attributes
#nova.tests.integrated.v3.test_keypairs
#nova.tests.integrated.v3.test_server_metadata
#nova.tests.integrated.v3.test_agents
#nova.tests.integrated.v3.test_evacuate
#nova.tests.integrated.v3.test_remote_consoles
#nova.tests.integrated.v3.test_user_data
#nova.tests.integrated.v3.test_shelve
#nova.tests.integrated.v3.test_consoles
#nova.tests.integrated.v3.test_scheduler_hints
#nova.tests.integrated.v3.test_migrate_server
#nova.tests.integrated.v3.test_hide_server_addresses
#nova.tests.integrated.v3.test_migrations
#nova.tests.integrated.v3.test_server_diagnostics
#nova.tests.integrated.v3.test_flavor_rxtx
#nova.tests.integrated.v3.test_server_external_events
#nova.tests.integrated.v3.test_extension_info
#nova.tests.integrated.v3.api_sample_base
#nova.tests.integrated.v3.test_security_groups
#nova.tests.integrated.v3.test_rescue
#nova.tests.integrated.v3.test_flavor_access
#nova.tests.integrated.v3.test_console_output
#nova.tests.integrated.v3.test_extended_volumes
#nova.tests.integrated.v3.test_certificates
#nova.tests.integrated.v3.test_hosts
#nova.tests.integrated.v3.test_deferred_delete
#nova.tests.integrated.v3.test_extended_availability_zone
#nova.tests.integrated.v3.test_console_auth_tokens
#nova.tests.integrated.v3.test_instance_actions
#nova.tests.integrated.v3.test_access_ips
#nova.tests.integrated.v3.test_services
#nova.tests.integrated.test_api_samples
#nova.tests.integrated.api_samples_test_base
#nova.tests.test_context
#nova.tests.test_service
#nova.tests.test_crypto
##nova.tests.fake_instance_actions
#nova.tests.api.test_validator
#nova.tests.api.openstack
#nova.tests.api.openstack.test_xmlutil
#nova.tests.api.openstack.compute.test_api
#nova.tests.api.openstack.compute.test_server_actions
#nova.tests.api.openstack.compute.test_auth
#nova.tests.api.openstack.compute
#nova.tests.api.openstack.compute.test_urlmap
#nova.tests.api.openstack.compute.test_servers
#nova.tests.api.openstack.compute.test_flavors
#nova.tests.api.openstack.compute.contrib.test_floating_ips
#nova.tests.api.openstack.compute.contrib.test_config_drive
#nova.tests.api.openstack.compute.contrib.test_cells
#nova.tests.api.openstack.compute.contrib.test_multinic_xs
#nova.tests.api.openstack.compute.contrib.test_aggregates
#nova.tests.api.openstack.compute.contrib.test_fixed_ips
#nova.tests.api.openstack.compute.contrib.test_extended_virtual_interfaces_net
#nova.tests.api.openstack.compute.contrib.test_snapshots
#nova.tests.api.openstack.compute.contrib.test_server_usage
#nova.tests.api.openstack.compute.contrib.test_security_group_default_rules
#nova.tests.api.openstack.compute.contrib.test_virtual_interfaces
#nova.tests.api.openstack.compute.contrib.test_extended_status
#nova.tests.api.openstack.compute.contrib
#nova.tests.api.openstack.compute.contrib.test_hypervisors
#nova.tests.api.openstack.compute.contrib.test_baremetal_nodes
#nova.tests.api.openstack.compute.contrib.test_attach_interfaces
#nova.tests.api.openstack.compute.contrib.test_extended_hypervisors
#nova.tests.api.openstack.compute.contrib.test_availability_zone
#nova.tests.api.openstack.compute.contrib.test_neutron_security_groups
#nova.tests.api.openstack.compute.contrib.test_flavor_manage
#nova.tests.api.openstack.compute.contrib.test_flavors_extra_specs
#nova.tests.api.openstack.compute.contrib.test_instance_usage_audit_log
#nova.tests.api.openstack.compute.contrib.test_admin_actions
#nova.tests.api.openstack.compute.contrib.test_image_size
#nova.tests.api.openstack.compute.contrib.test_networks
#nova.tests.api.openstack.compute.contrib.test_floating_ip_dns
#nova.tests.api.openstack.compute.contrib.test_fping
#nova.tests.api.openstack.compute.contrib.test_flavorextradata
#nova.tests.api.openstack.compute.contrib.test_extended_server_attributes
#nova.tests.api.openstack.compute.contrib.test_server_start_stop
#nova.tests.api.openstack.compute.contrib.test_keypairs
#nova.tests.api.openstack.compute.contrib.test_createserverext
#nova.tests.api.openstack.compute.contrib.test_volumes
#nova.tests.api.openstack.compute.contrib.test_used_limits
#nova.tests.api.openstack.compute.contrib.test_server_groups
#nova.tests.api.openstack.compute.contrib.test_agents
#nova.tests.api.openstack.compute.contrib.test_evacuate
#nova.tests.api.openstack.compute.contrib.test_flavor_swap
#nova.tests.api.openstack.compute.contrib.test_shelve
#nova.tests.api.openstack.compute.contrib.test_consoles
#nova.tests.api.openstack.compute.contrib.test_scheduler_hints
#nova.tests.api.openstack.compute.contrib.test_server_password
#nova.tests.api.openstack.compute.contrib.test_hide_server_addresses
#nova.tests.api.openstack.compute.contrib.test_extended_ips
#nova.tests.api.openstack.compute.contrib.test_migrations
#nova.tests.api.openstack.compute.contrib.test_server_diagnostics
#nova.tests.api.openstack.compute.contrib.test_flavor_rxtx
#nova.tests.api.openstack.compute.contrib.test_server_external_events
#nova.tests.api.openstack.compute.contrib.test_cloudpipe
#nova.tests.api.openstack.compute.contrib.test_disk_config
#nova.tests.api.openstack.compute.contrib.test_floating_ip_pools
#nova.tests.api.openstack.compute.contrib.test_security_groups
#nova.tests.api.openstack.compute.contrib.test_rescue
#nova.tests.api.openstack.compute.contrib.test_flavor_access
#nova.tests.api.openstack.compute.contrib.test_console_output
#nova.tests.api.openstack.compute.contrib.test_cloudpipe_update
#nova.tests.api.openstack.compute.contrib.test_flavor_disabled
#nova.tests.api.openstack.compute.contrib.test_floating_ip_bulk
#nova.tests.api.openstack.compute.contrib.test_extended_volumes
#nova.tests.api.openstack.compute.contrib.test_certificates
#nova.tests.api.openstack.compute.contrib.test_hosts
#nova.tests.api.openstack.compute.contrib.test_extended_ips_mac
#nova.tests.api.openstack.compute.contrib.test_deferred_delete
#nova.tests.api.openstack.compute.contrib.test_simple_tenant_usage
#nova.tests.api.openstack.compute.contrib.test_extended_availability_zone
#nova.tests.api.openstack.compute.contrib.test_quotas
#nova.tests.api.openstack.compute.contrib.test_console_auth_tokens
#nova.tests.api.openstack.compute.contrib.test_instance_actions
#nova.tests.api.openstack.compute.contrib.test_services
#nova.tests.api.openstack.compute.plugins
#nova.tests.api.openstack.compute.plugins.v3.test_config_drive
#nova.tests.api.openstack.compute.plugins.v3.test_block_device_mapping
#nova.tests.api.openstack.compute.plugins.v3.test_cells
#nova.tests.api.openstack.compute.plugins.v3.test_server_actions
#nova.tests.api.openstack.compute.plugins.v3.test_aggregates
#nova.tests.api.openstack.compute.plugins.v3.test_multinic
#nova.tests.api.openstack.compute.plugins.v3.test_server_usage
#nova.tests.api.openstack.compute.plugins.v3.test_admin_password
#nova.tests.api.openstack.compute.plugins.v3.test_quota_sets
#nova.tests.api.openstack.compute.plugins.v3.test_lock_server
#nova.tests.api.openstack.compute.plugins.v3.test_extended_status
#nova.tests.api.openstack.compute.plugins.v3
#nova.tests.api.openstack.compute.plugins.v3.test_hypervisors
#nova.tests.api.openstack.compute.plugins.v3.test_servers
#nova.tests.api.openstack.compute.plugins.v3.test_suspend_server
#nova.tests.api.openstack.compute.plugins.v3.test_attach_interfaces
#nova.tests.api.openstack.compute.plugins.v3.test_availability_zone
#nova.tests.api.openstack.compute.plugins.v3.test_flavors
#nova.tests.api.openstack.compute.plugins.v3.test_pci
#nova.tests.api.openstack.compute.plugins.v3.test_flavor_manage
#nova.tests.api.openstack.compute.plugins.v3.test_flavors_extra_specs
#nova.tests.api.openstack.compute.plugins.v3.test_pause_server
#nova.tests.api.openstack.compute.plugins.v3.test_create_backup
#nova.tests.api.openstack.compute.plugins.v3.test_admin_actions
#nova.tests.api.openstack.compute.plugins.v3.test_extended_server_attributes
#nova.tests.api.openstack.compute.plugins.v3.test_keypairs
#nova.tests.api.openstack.compute.plugins.v3.test_server_metadata
#nova.tests.api.openstack.compute.plugins.v3.test_agents
#nova.tests.api.openstack.compute.plugins.v3.test_evacuate
#nova.tests.api.openstack.compute.plugins.v3.test_remote_consoles
#nova.tests.api.openstack.compute.plugins.v3.test_user_data
#nova.tests.api.openstack.compute.plugins.v3.test_multiple_create
#nova.tests.api.openstack.compute.plugins.v3.test_shelve
#nova.tests.api.openstack.compute.plugins.v3.test_consoles
#nova.tests.api.openstack.compute.plugins.v3.test_scheduler_hints
#nova.tests.api.openstack.compute.plugins.v3.test_server_password
#nova.tests.api.openstack.compute.plugins.v3.test_migrate_server
#nova.tests.api.openstack.compute.plugins.v3.test_hide_server_addresses
#nova.tests.api.openstack.compute.plugins.v3.test_migrations
#nova.tests.api.openstack.compute.plugins.v3.test_server_diagnostics
#nova.tests.api.openstack.compute.plugins.v3.test_flavor_rxtx
#nova.tests.api.openstack.compute.plugins.v3.test_server_external_events
#nova.tests.api.openstack.compute.plugins.v3.test_extension_info
#nova.tests.api.openstack.compute.plugins.v3.test_security_groups
#nova.tests.api.openstack.compute.plugins.v3.test_rescue
#nova.tests.api.openstack.compute.plugins.v3.admin_only_action_common
#nova.tests.api.openstack.compute.plugins.v3.test_flavor_access
#nova.tests.api.openstack.compute.plugins.v3.test_versions
#nova.tests.api.openstack.compute.plugins.v3.test_console_output
#nova.tests.api.openstack.compute.plugins.v3.test_extended_volumes
#nova.tests.api.openstack.compute.plugins.v3.test_certificates
#nova.tests.api.openstack.compute.plugins.v3.test_hosts
#nova.tests.api.openstack.compute.plugins.v3.test_deferred_delete
#nova.tests.api.openstack.compute.plugins.v3.test_extended_availability_zone
#nova.tests.api.openstack.compute.plugins.v3.test_console_auth_tokens
#nova.tests.api.openstack.compute.plugins.v3.test_instance_actions
#nova.tests.api.openstack.compute.plugins.v3.test_access_ips
#nova.tests.api.openstack.compute.plugins.v3.test_services
#nova.tests.api.openstack.compute.extensions
#nova.tests.api.openstack.compute.extensions.foxinsocks
#nova.tests.api.openstack.compute.test_server_metadata
#nova.tests.api.openstack.compute.test_limits
#nova.tests.api.openstack.compute.test_extensions
#nova.tests.api.openstack.compute.test_image_metadata
#nova.tests.api.openstack.compute.test_consoles
#nova.tests.api.openstack.compute.test_v3_extensions
#nova.tests.api.openstack.compute.test_versions
#nova.tests.api.openstack.compute.test_v3_auth
#nova.tests.api.openstack.compute.test_images
#nova.tests.api.openstack.test_common
#nova.tests.api.openstack.test_faults
#nova.tests.api.openstack.test_wsgi
#nova.tests.api.openstack.common
#nova.tests.api.openstack.test_mapper
##nova.tests.api.openstack.fakes
#nova.tests.api.test_auth
#nova.tests.api
#nova.tests.api.ec2.test_api
#nova.tests.api.ec2.test_middleware
#nova.tests.api.ec2
#nova.tests.api.ec2.test_cinder_cloud
#nova.tests.api.ec2.test_cloud
#nova.tests.api.ec2.test_faults
#nova.tests.api.ec2.test_error_response
#nova.tests.api.ec2.test_ec2_validate
#nova.tests.api.test_wsgi
#nova.tests.api.test_sizelimit
##nova.tests.fake_hosts
#nova.tests
#nova.tests.test_safeutils
##nova.tests.fake_ldap
##nova.tests.fake_policy
#nova.tests.test_pipelib
#nova.tests.matchers
#nova.tests.cast_as_call
#nova.tests.keymgr.test_single_key_mgr
#nova.tests.keymgr.test_key_mgr
#nova.tests.keymgr
##nova.tests.keymgr.fake
#nova.tests.keymgr.test_mock_key_mgr
#nova.tests.keymgr.test_key
#nova.tests.keymgr.test_conf_key_mgr
#nova.tests.keymgr.test_not_implemented_key_mgr
#nova.tests.test_metadata
#nova.tests.scheduler.test_chance_scheduler
#nova.tests.scheduler.test_scheduler_options
#nova.tests.scheduler
#nova.tests.scheduler.test_caching_scheduler
#nova.tests.scheduler.test_weights
#nova.tests.scheduler.test_filter_scheduler
#nova.tests.scheduler.test_scheduler_utils
#nova.tests.scheduler.test_rpcapi
#nova.tests.scheduler.test_scheduler
#nova.tests.scheduler.test_host_filters
#nova.tests.scheduler.test_host_manager
#nova.tests.scheduler.test_filters
##nova.tests.scheduler.fakes
#nova.tests.conductor.tasks
#nova.tests.conductor.tasks.test_live_migrate
#nova.tests.conductor
#nova.tests.conductor.test_conductor
#nova.tests.test_weights
#nova.tests.test_flavors
#nova.tests.glance
#nova.tests.glance.stubs
#nova.tests.test_linuxscsi
#nova.tests.pci.test_pci_whitelist
#nova.tests.pci.test_pci_stats
#nova.tests.pci
#nova.tests.pci.test_pci_utils
#nova.tests.pci.test_pci_request
#nova.tests.pci.test_pci_manager
#nova.tests.test_block_device
#nova.tests.test_loadables
#nova.tests.conf_fixture
##nova.tests.fake_volume
##nova.tests.fake_notifier
#nova.tests.policy_fixture
#nova.tests.test_baserpc
#nova.tests.test_matchers
#nova.tests.compute.test_resource_tracker
#nova.tests.compute.test_compute_cells
#nova.tests.compute
#nova.tests.compute.test_claims
##nova.tests.compute.fake_resource_tracker
#nova.tests.compute.test_vmmode
#nova.tests.compute.test_host_api
#nova.tests.compute.monitors
#nova.tests.compute.monitors.test_monitors
#nova.tests.compute.monitors.test_cpu_monitor
#nova.tests.compute.test_compute
#nova.tests.compute.test_rpcapi
#nova.tests.compute.test_compute_xen
#nova.tests.compute.test_compute_mgr
#nova.tests.compute.test_keypairs
#nova.tests.compute.test_compute_api
#nova.tests.compute.test_shelve
#nova.tests.compute.test_compute_utils
#nova.tests.compute.test_virtapi
#nova.tests.compute.test_stats
#nova.tests.compute.test_multiple_nodes
#nova.tests.console
#nova.tests.console.test_rpcapi
#nova.tests.console.test_console
#nova.tests.test_objectstore
##nova.tests.fake_processutils
#nova.tests.cert
#nova.tests.cert.test_rpcapi
#nova.tests.test_notifications
##nova.tests.fake_instance
#nova.tests.test_wsgi
#nova.tests.test_nova_manage
#nova.tests.virt.xenapi.test_agent
#nova.tests.virt.xenapi.test_vmops
#nova.tests.virt.xenapi
#nova.tests.virt.xenapi.test_volume_utils
#nova.tests.virt.xenapi.test_driver
#nova.tests.virt.xenapi.client
#nova.tests.virt.xenapi.client.test_objects
#nova.tests.virt.xenapi.client.test_session
#nova.tests.virt.xenapi.stubs
#nova.tests.virt.xenapi.test_vm_utils
#nova.tests.virt.xenapi.test_xenapi
#nova.tests.virt.xenapi.test_volumeops
#nova.tests.virt.xenapi.image
#nova.tests.virt.xenapi.image.test_glance
#nova.tests.virt.xenapi.image.test_vdi_through_dev
#nova.tests.virt.xenapi.image.test_bittorrent
#nova.tests.virt.xenapi.image.test_utils
#nova.tests.virt.vmwareapi.test_error_util
#nova.tests.virt.vmwareapi.test_driver_api
#nova.tests.virt.vmwareapi.test_vmops
#nova.tests.virt.vmwareapi
#nova.tests.virt.vmwareapi.test_vim_util
#nova.tests.virt.vmwareapi.test_vm_util_datastore_selection
#nova.tests.virt.vmwareapi.test_read_write_util
#nova.tests.virt.vmwareapi.test_configdrive
#nova.tests.virt.vmwareapi.test_vm_util
#nova.tests.virt.vmwareapi.stubs
#nova.tests.virt.vmwareapi.test_ds_util
#nova.tests.virt.vmwareapi.test_io_util
#nova.tests.virt.vmwareapi.test_vif
#nova.tests.virt.vmwareapi.test_imagecache
#nova.tests.virt.vmwareapi.test_volumeops
#nova.tests.virt
#nova.tests.virt.disk.test_api
#nova.tests.virt.disk
#nova.tests.virt.disk.test_nbd
#nova.tests.virt.disk.test_loop
#nova.tests.virt.test_driver
#nova.tests.virt.baremetal.test_volume_driver
#nova.tests.virt.baremetal
#nova.tests.virt.baremetal.test_driver
#nova.tests.virt.baremetal.test_tilera_pdu
#nova.tests.virt.baremetal.test_nova_baremetal_deploy_helper
#nova.tests.virt.baremetal.test_ipmi
#nova.tests.virt.baremetal.test_iboot_pdu
#nova.tests.virt.baremetal.test_nova_baremetal_manage
#nova.tests.virt.baremetal.test_tilera
#nova.tests.virt.baremetal.test_virtual_power_driver
#nova.tests.virt.baremetal.test_utils
#nova.tests.virt.baremetal.db
#nova.tests.virt.baremetal.db.base
#nova.tests.virt.baremetal.db.utils
#nova.tests.virt.baremetal.db.test_bm_interface
#nova.tests.virt.baremetal.db.test_bm_node
#nova.tests.virt.baremetal.test_pxe
#nova.tests.virt.test_virt_drivers
#nova.tests.virt.hyperv.test_rdpconsoleutilsv2
#nova.tests.virt.hyperv.test_rdpconsoleutils
#nova.tests.virt.hyperv.test_vhdutils
#nova.tests.virt.hyperv.test_networkutilsv2
#nova.tests.virt.hyperv.test_vmutils
#nova.tests.virt.hyperv
#nova.tests.virt.hyperv.test_vhdutilsv2
##nova.tests.virt.hyperv.fake
#nova.tests.virt.hyperv.test_hypervapi
##nova.tests.virt.hyperv.db_fakes
#nova.tests.virt.hyperv.test_vmutilsv2
#nova.tests.virt.test_block_device
#nova.tests.virt.test_cpu
#nova.tests.virt.test_virt
#nova.tests.virt.libvirt.test_libvirt_utils
#nova.tests.virt.libvirt.test_designer
#nova.tests.virt.libvirt
##nova.tests.virt.libvirt.fakelibvirt
##nova.tests.virt.libvirt.test_fakelibvirt
#nova.tests.virt.libvirt.test_libvirt_blockinfo
##nova.tests.virt.libvirt.fake_imagebackend
##nova.tests.virt.libvirt.fake_libvirt_utils
#nova.tests.virt.libvirt.test_image_utils
#nova.tests.virt.libvirt.test_libvirt_volume
#nova.tests.virt.libvirt.test_imagebackend
#nova.tests.virt.libvirt.test_imagecache
#nova.tests.virt.libvirt.test_libvirt_config
#nova.tests.virt.libvirt.test_dmcrypt
#nova.tests.virt.libvirt.test_libvirt
#nova.tests.virt.libvirt.test_libvirt_vif
#nova.tests.virt.test_volumeutils
#nova.tests.virt.test_virt_disk_vfs_guestfs
#nova.tests.virt.test_virt_disk_vfs_localfs
#nova.tests.virt.test_virt_disk
#nova.tests.virt.test_imagecache
#nova.tests.virt.test_images
##nova.tests.fakeguestfs
#nova.tests.test_test_utils
#nova.tests.test_hacking
##nova.tests.fake_utils
#nova.tests.utils
#nova.tests.test_policy
#nova.tests.test_api_validation
#nova.tests.test_bdm
##nova.tests.fake_block_device
#nova.tests.test_hooks
#nova.tests.objects.test_floating_ip
#nova.tests.objects.test_service
#nova.tests.objects.test_compute_node
#nova.tests.objects.test_instance_action
#nova.tests.objects
#nova.tests.objects.test_keypair
#nova.tests.objects.test_objects
#nova.tests.objects.test_external_event
#nova.tests.objects.test_virtual_interface
#nova.tests.objects.test_instance_fault
#nova.tests.objects.test_flavor
#nova.tests.objects.test_fields
#nova.tests.objects.test_block_device
#nova.tests.objects.test_migration
#nova.tests.objects.test_security_group_rule
#nova.tests.objects.test_instance
#nova.tests.objects.test_network
#nova.tests.objects.test_dns_domain
#nova.tests.objects.test_aggregate
#nova.tests.objects.test_fixed_ip
#nova.tests.objects.test_security_group
#nova.tests.objects.test_pci_device
#nova.tests.objects.test_instance_group
#nova.tests.objects.test_instance_info_cache
#nova.tests.objects.test_quotas
#nova.tests.cells.test_cells_filters
#nova.tests.cells
#nova.tests.cells.test_cells_weights
#nova.tests.cells.test_cells_scheduler
#nova.tests.cells.test_cells_messaging
#nova.tests.cells.test_cells_rpc_driver
#nova.tests.cells.test_cells_utils
#nova.tests.cells.test_cells_state_manager
#nova.tests.cells.test_cells_rpcapi
#nova.tests.cells.test_cells_manager
##nova.tests.cells.fakes
##nova.tests.fake_network
#nova.tests.test_utils
#nova.tests.db
#nova.tests.db.test_sqlalchemy_utils
#nova.tests.db.test_migration_utils
#nova.tests.db.test_db_api
#nova.tests.db.test_migrations
#nova.tests.db.test_sqlite
##nova.tests.db.fakes
#nova.tests.test_exception
#nova.tests.test_versions
#nova.tests.servicegroup
#nova.tests.servicegroup.test_db_servicegroup
#nova.tests.servicegroup.test_mc_servicegroup
#nova.tests.servicegroup.test_zk_driver
#nova.tests.test_test
#nova.tests.test_instance_types_extra_specs
#nova.tests.image
#nova.tests.image.test_glance
##nova.tests.image.fake
#nova.tests.image.test_s3
##nova.tests.image.test_fake
#nova.tests.test_ipv6
#nova.tests.network.test_api
#nova.tests.network.test_network_info
#nova.tests.network
#nova.tests.network.security_group
#nova.tests.network.security_group.test_neutron_driver
#nova.tests.network.test_manager
#nova.tests.network.test_linux_net
#nova.tests.network.test_rpcapi
#nova.tests.network.test_neutronv2
#nova.tests.network.test_ipam_lib
##nova.tests.fake_network_cache_model
#nova.tests.test_availability_zones
##nova.tests.fake_crypto
#nova.tests.test_iptables_network
#nova.tests.monkey_patch_example
#nova.tests.monkey_patch_example.example_b
#nova.tests.monkey_patch_example.example_a
#nova.tests.volume.test_cinder
#nova.tests.volume
#nova.tests.volume.encryptors.test_nop
#nova.tests.volume.encryptors
#nova.tests.volume.encryptors.test_cryptsetup
#nova.tests.volume.encryptors.test_luks
#nova.tests.volume.encryptors.test_base
#nova.tests.consoleauth.test_consoleauth
#nova.tests.consoleauth
#nova.tests.consoleauth.test_rpcapi
nova.virt.xenapi.agent
nova.virt.xenapi.volume_utils
nova.virt.xenapi.vif
nova.virt.xenapi.firewall
nova.virt.xenapi
nova.virt.xenapi.driver
#nova.virt.xenapi.fake
nova.virt.xenapi.pool_states
nova.virt.xenapi.client.session
nova.virt.xenapi.client
nova.virt.xenapi.client.objects
nova.virt.xenapi.network_utils
nova.virt.xenapi.volumeops
nova.virt.xenapi.vm_utils
nova.virt.xenapi.host
nova.virt.xenapi.vmops
nova.virt.xenapi.image.vdi_through_dev
nova.virt.xenapi.image
nova.virt.xenapi.image.utils
nova.virt.xenapi.image.bittorrent
nova.virt.xenapi.image.glance
nova.virt.xenapi.pool
nova.virt.volumeutils
nova.virt.cpu
nova.virt.vmwareapi.vim
nova.virt.vmwareapi.ds_util
nova.virt.vmwareapi.vm_util
nova.virt.vmwareapi.vmware_images
nova.virt.vmwareapi.vif
#nova.virt.vmwareapi
nova.virt.vmwareapi.driver
#nova.virt.vmwareapi.fake
nova.virt.vmwareapi.error_util
nova.virt.vmwareapi.vim_util
nova.virt.vmwareapi.read_write_util
nova.virt.vmwareapi.volumeops
nova.virt.vmwareapi.imagecache
nova.virt.vmwareapi.volume_util
nova.virt.vmwareapi.host
nova.virt.vmwareapi.vmops
nova.virt.vmwareapi.network_util
nova.virt.vmwareapi.io_util
nova.virt.firewall
#nova.virt
#nova.virt.disk
nova.virt.disk.api
nova.virt.disk.vfs
nova.virt.disk.vfs.api
nova.virt.disk.vfs.localfs
nova.virt.disk.vfs.guestfs
nova.virt.disk.mount
nova.virt.disk.mount.nbd
nova.virt.disk.mount.api
nova.virt.disk.mount.loop
nova.virt.driver
nova.virt.storage_users
nova.virt.baremetal.ipmi
nova.virt.baremetal.baremetal_states
#nova.virt.baremetal
nova.virt.baremetal.driver
#nova.virt.baremetal.fake
nova.virt.baremetal.virtual_power_driver
nova.virt.baremetal.virtual_power_driver_settings
nova.virt.baremetal.iboot_pdu
nova.virt.baremetal.vif_driver
nova.virt.baremetal.base
nova.virt.baremetal.pxe
nova.virt.baremetal.utils
nova.virt.baremetal.tilera_pdu
nova.virt.baremetal.volume_driver
nova.virt.baremetal.db
nova.virt.baremetal.db.api
#nova.virt.baremetal.db.migration
nova.virt.baremetal.db.sqlalchemy.session
#nova.virt.baremetal.db.sqlalchemy.migrate_repo
#nova.virt.baremetal.db.sqlalchemy.migrate_repo.versions.002_drop_bm_deployments
#nova.virt.baremetal.db.sqlalchemy.migrate_repo.versions
#nova.virt.baremetal.db.sqlalchemy.migrate_repo.versions.008_remove_bm_pxe_ips_table
#nova.virt.baremetal.db.sqlalchemy.migrate_repo.versions.001_init
#nova.virt.baremetal.db.sqlalchemy.migrate_repo.versions.009_add_ephemeral_mb_to_bm_nodes
#nova.virt.baremetal.db.sqlalchemy.migrate_repo.versions.005_drop_unused_columns_from_nodes
#nova.virt.baremetal.db.sqlalchemy.migrate_repo.versions.003_add_uuid_to_bm_nodes
#nova.virt.baremetal.db.sqlalchemy.migrate_repo.versions.004_add_instance_name_to_bm_nodes
#nova.virt.baremetal.db.sqlalchemy.migrate_repo.versions.006_move_prov_mac_address
#nova.virt.baremetal.db.sqlalchemy.migrate_repo.versions.010_add_preserve_ephemeral
#nova.virt.baremetal.db.sqlalchemy.migrate_repo.versions.007_drop_prov_mac_address
#nova.virt.baremetal.db.sqlalchemy
nova.virt.baremetal.db.sqlalchemy.api
#nova.virt.baremetal.db.sqlalchemy.migration
#nova.virt.baremetal.db.sqlalchemy.models
nova.virt.baremetal.tilera
nova.virt.baremetal.common
nova.virt.watchdog_actions
#nova.virt.fake
nova.virt.hyperv.networkutilsv2
nova.virt.hyperv.volumeutilsv2
nova.virt.hyperv.vhdutils
nova.virt.hyperv.volumeutils
nova.virt.hyperv.vif
nova.virt.hyperv.vmutilsv2
#nova.virt.hyperv
nova.virt.hyperv.rdpconsoleops
nova.virt.hyperv.driver
nova.virt.hyperv.snapshotops
nova.virt.hyperv.hostutils
nova.virt.hyperv.hostops
nova.virt.hyperv.constants
nova.virt.hyperv.basevolumeutils
nova.virt.hyperv.utilsfactory
nova.virt.hyperv.migrationops
nova.virt.hyperv.networkutils
nova.virt.hyperv.volumeops
nova.virt.hyperv.imagecache
nova.virt.hyperv.vhdutilsv2
nova.virt.hyperv.livemigrationutils
nova.virt.hyperv.vmutils
nova.virt.hyperv.pathutils
nova.virt.hyperv.vmops
nova.virt.hyperv.rdpconsoleutilsv2
nova.virt.hyperv.rdpconsoleutils
nova.virt.hyperv.livemigrationops
nova.virt.configdrive
nova.virt.virtapi
nova.virt.libvirt.designer
nova.virt.libvirt.volume
nova.virt.libvirt.imagebackend
nova.virt.libvirt.vif
nova.virt.libvirt.dmcrypt
nova.virt.libvirt.firewall
nova.virt.libvirt
nova.virt.libvirt.driver
nova.virt.libvirt.config
nova.virt.libvirt.blockinfo
nova.virt.libvirt.utils
nova.virt.libvirt.imagecache
#nova.virt.event
nova.virt.block_device
nova.virt.imagehandler
nova.virt.images
nova.virt.imagecache
nova.virt.netutils
#nova.vnc
nova.vnc.xvp_proxy
#nova.volume
nova.volume.cinder
nova.volume.encryptors.luks
nova.volume.encryptors
nova.volume.encryptors.base
nova.volume.encryptors.cryptsetup
nova.volume.encryptors.nop
commit 37f6e5b03c223052899b2a4951ee82340aef042d
Author: Akira Yoshiyama <[email protected]>
Date: Mon Jun 23 12:51:05 2014 +0000
Added calltrace monkey patch.
diff --git a/nova/ct.py b/nova/ct.py
new file mode 100644
index 0000000..939255b
--- /dev/null
+++ b/nova/ct.py
@@ -0,0 +1,48 @@
+import fcntl
+import inspect
+import os.path
+import eventlet.corolocal
+
+from oslo.config import cfg
+
+
+LOGFILE = "/tmp/calltrace.log"
+binary = os.path.basename(inspect.stack()[-1][1])
+
+PERIODIC_TASKS = [
+ "periodic_tasks",
+ "_report_state",
+ "service_update",
+]
+
+tls = eventlet.corolocal.local()
+
+
+def ct(name, fn):
+
+ def wrapped_func(*args, **kwarg):
+ tid = eventlet.corolocal.get_ident()
+ if hasattr(tls, "periodic_task"):
+ return fn(*args, **kwarg)
+
+ func_name = name.rsplit('.')[-1]
+ if func_name in PERIODIC_TASKS:
+ tls.periodic_task = 1
+ return fn(*args, **kwarg)
+
+ if not hasattr(tls, "count"):
+ tls.count = 0
+ try:
+ with open(LOGFILE, "a") as f:
+ f.write("%s-%s %sentering %s\n" % (
+ binary, tid, "|" * tls.count, name))
+ tls.count += 1
+ return fn(*args, **kwarg)
+
+ finally:
+ tls.count -= 1
+ with open(LOGFILE, "a") as f:
+ f.write("%s-%s %sexiting %s\n" % (
+ binary, tid, "|" * tls.count, name))
+
+ return wrapped_func
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment