Skip to content

Instantly share code, notes, and snippets.

View yosshy's full-sized avatar

Akira YOSHIYAMA yosshy

  • NEC Corporation
View GitHub Profile
@yosshy
yosshy / nova boot
Created June 11, 2014 13:56
nova-2014.1 (Icehouse) のコールトレース
nova-api-140536913893168 entering nova.api.openstack.compute.images.Controller.index
nova-api-140536913893168 |entering nova.api.openstack.compute.images.Controller._get_filters
nova-api-140536913893168 |exiting nova.api.openstack.compute.images.Controller._get_filters
nova-api-140536913893168 |entering nova.image.glance.GlanceImageService.detail
nova-api-140536913893168 ||entering nova.image.glance._extract_query_params
nova-api-140536913893168 ||exiting nova.image.glance._extract_query_params
nova-api-140536913893168 ||entering nova.image.glance.GlanceClientWrapper.call
nova-api-140536913893168 |||entering nova.image.glance.GlanceClientWrapper._create_onetime_client
nova-api-140536913893168 ||||entering nova.image.glance._create_glance_client
nova-api-140536913893168 |||||entering nova.image.glance.generate_identity_headers
@yosshy
yosshy / nova boot
Created June 14, 2014 08:49
Calltrace of Nova/Neutron (Icehouse) for nova boot/list/delete
nova-api-140536913893168 entering nova.api.openstack.compute.images.Controller.index
nova-api-140536913893168 |entering nova.api.openstack.compute.images.Controller._get_filters
nova-api-140536913893168 |exiting nova.api.openstack.compute.images.Controller._get_filters
nova-api-140536913893168 |entering nova.image.glance.GlanceImageService.detail
nova-api-140536913893168 ||entering nova.image.glance._extract_query_params
nova-api-140536913893168 ||exiting nova.image.glance._extract_query_params
nova-api-140536913893168 ||entering nova.image.glance.GlanceClientWrapper.call
nova-api-140536913893168 |||entering nova.image.glance.GlanceClientWrapper._create_onetime_client
nova-api-140536913893168 ||||entering nova.image.glance._create_glance_client
nova-api-140536913893168 |||||entering nova.image.glance.generate_identity_headers
@yosshy
yosshy / neutron floatingip-associate
Created June 14, 2014 08:51
Calltrace of Nova/Neutron (Icehouse) for neutron floatingip-associate/-disassociate
neutron-server-140321548471664 entering neutron.policy.check_is_admin
neutron-server-140321548471664 |entering neutron.policy.init
neutron-server-140321548471664 |exiting neutron.policy.init
neutron-server-140321548471664 exiting neutron.policy.check_is_admin
neutron-server-140321548471664 entering neutron.api.v2.base.Controller.update
neutron-server-140321548471664 |entering neutron.api.v2.attributes._validate_uuid
neutron-server-140321548471664 |exiting neutron.api.v2.attributes._validate_uuid
neutron-server-140321548471664 |entering neutron.api.v2.base.Controller._item
neutron-server-140321548471664 ||entering neutron.services.l3_router.l3_router_plugin.L3RouterPlugin.get_floatingip
neutron-server-140321548471664 |||entering neutron.services.l3_router.l3_router_plugin.L3RouterPlugin._get_floatingip
@yosshy
yosshy / nova boot
Last active August 29, 2015 14:02
Calltrace of Nova, Glance, Neutron (Icehouse)
nova-conductor-140145870970064 entering nova.conductor.manager._ConductorManagerV2Proxy.task_log_get
nova-conductor-140145870970064 |entering nova.conductor.manager.ConductorManager.task_log_get
nova-conductor-140145870970064 |exiting nova.conductor.manager.ConductorManager.task_log_get
nova-conductor-140145870970064 exiting nova.conductor.manager._ConductorManagerV2Proxy.task_log_get
nova-conductor-140145847588816 entering nova.conductor.manager._ConductorManagerV2Proxy.object_class_action
nova-conductor-140145847588816 |entering nova.conductor.manager.ConductorManager.object_class_action
nova-conductor-140145847588816 ||entering nova.conductor.manager.ConductorManager._object_dispatch
nova-conductor-140145847588816 ||exiting nova.conductor.manager.ConductorManager._object_dispatch
nova-conductor-140145847588816 |exiting nova.conductor.manager.ConductorManager.object_class_action
nova-conductor-140145847588816 exiting nova.conductor.manager._ConductorManagerV2Proxy.object_class_action
@yosshy
yosshy / make_nova.sh
Created July 15, 2014 15:57
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
@yosshy
yosshy / make_neutron.sh
Created July 15, 2014 16:01
Monkey Patch for Neutron
#!/bin/bash
LINE=""
/bin/grep -Ev '^#' $HOME/neutron_list > /tmp/list2
while read i ; do
if [ -n "$LINE" ]; then
LINE=$LINE,$i:neutron.ct.ct
else
LINE=$i:neutron.ct.ct
@yosshy
yosshy / glance-api.conf
Created July 15, 2014 16:02
Monkey Patch for Glance
[DEFAULT]
rabbit_hosts = 192.168.33.102
rpc_backend = glance.openstack.common.rpc.impl_kombu
notification_driver = messaging
use_syslog = False
sql_connection = mysql://root:[email protected]/glance?charset=utf8
debug = True
# Show more verbose log output (sets INFO log level output)
#verbose = False
@yosshy
yosshy / nova boot (reduced)
Last active August 29, 2015 14:04
Calltrace reducer
nova-api-140536913893168 entering nova.api.openstack.compute.images.Controller.index
nova-api-140536913893168 |entering nova.image.glance.GlanceImageService.detail
nova-api-140536913893168 ||entering nova.image.glance._extract_query_params
nova-api-140536913893168 ||exiting nova.image.glance._extract_query_params
nova-api-140536913893168 ||entering nova.image.glance.GlanceClientWrapper.call
nova-api-140536913893168 ||||entering nova.image.glance._create_glance_client
nova-api-140536913893168 ||||exiting nova.image.glance._create_glance_client
nova-api-140536913893168 ||exiting nova.image.glance.GlanceClientWrapper.call
nova-conductor-140145844346704 entering nova.conductor.manager._ConductorManagerV2Proxy.task_log_get
nova-conductor-140145844346704 |entering nova.conductor.manager.ConductorManager.task_log_get
@yosshy
yosshy / nova.conf.sample
Created July 20, 2014 09:30
sample of nova.conf on Nova 2014.1 (Icehouse)
[DEFAULT]
#
# Options defined in oslo.messaging
#
# Use durable queues in amqp. (boolean value)
# Deprecated group/name - [DEFAULT]/rabbit_durable_queues
#amqp_durable_queues=false
@yosshy
yosshy / instance-00000005.xml
Last active August 29, 2015 14:04
Libvirt/QEMU iSCSI pass-through patch for Nova Juno
<domain type='qemu' id='9'>
<name>instance-00000005</name>
<uuid>528dc044-4ea2-4cb7-9ebe-f1a03875490c</uuid>
<memory unit='KiB'>2097152</memory>
<currentMemory unit='KiB'>2097152</currentMemory>
<vcpu placement='static'>1</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<sysinfo type='smbios'>