unable to create dump file for instance

asked 2017-07-17 07:45:12 -0600

balki gravatar image

updated 2017-07-18 19:25:20 -0600

Hi All,

I am trying to create dump file for instance created on openstack. But unable to create a dump. Particular CLI commands throwing below error.

[root@control-packstack ~(keystone_admin)]# openstack server dump create vm2

API version '2.0' is not supported on 'novaclient.v2.servers.[class ServerManager(base.BootingManagerWithFind):].trigger_crash_dump' method.

Can anyone help me to fix this issue. Do I need to upgrade novaclient or openstack python client? My openstack version is Ocata and am using openstack with opendaylight controller.

debug log:

[root@control-packstack ~(keystone_admin)]# openstack --debug server dump create vm5
START with options: [u'--debug', u'server', u'dump', u'create', u'vm5']
options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', auth_type='', auth_url='http://10.106.138.21:5000/v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', consumer_key='', consumer_secret='***', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', key='', log_file=None, old_profile=None, openid_scope='', os_beta_command=False, os_compute_api_version='', os_data_processing_api_version='1.1', os_data_processing_url='', os_database_api_version='1', os_dns_api_version='2', os_identity_api_version='3', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_volume_api_version='', os_workflow_api_version='2', passcode='', password='***', profile=None, project_domain_id='', project_domain_name='Default', project_id='', project_name='admin', protocol='', redirect_uri='', region_name='', service_provider_endpoint='', service_provider_entity_id='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='Default', user_id='', username='admin', verbose_level=3, verify=None)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://10.106.138.21:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
defaults: {u'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', u'container_infra_api_version': u'1', u'metering_api_version': u'2', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://10.106.138.21:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username ...
(more)
edit retag flag offensive close merge delete

Comments

You need version 2.17 (https://developer.openstack.org/api-r...).

Try openstack --os-compute-api-version 2.17 server dump create, and nova version-list.

Bernd Bausch gravatar imageBernd Bausch ( 2017-07-18 19:24:20 -0600 )edit

Interestingly, your debug output says "Instance vm5 could not be found."

You are doing this as admin; is the instance owned by the admin project? If not, you can't use the instance name; try its ID instead.

Bernd Bausch gravatar imageBernd Bausch ( 2017-07-18 19:29:36 -0600 )edit

Hi Bemd Bausch, Thanks for your response.Now the command execution was success. could you please tell me where the dump file will be created? will be create in openstack control node or this will be create inside VM instance?

balki gravatar imagebalki ( 2017-07-26 06:19:14 -0600 )edit

The documentation says:

you can find a Kernel Crash Dump file in a certain location of the filesystem. For example, for Ubuntu you can find it in the /var/crash directory

Bernd Bausch gravatar imageBernd Bausch ( 2017-07-26 09:54:08 -0600 )edit

In other words, it depends on the distro.

Bernd Bausch gravatar imageBernd Bausch ( 2017-07-26 09:54:31 -0600 )edit