Cannot launch Cirros image - Remote error: DBDeadlock (OperationalError) (1213, \'Deadlock found when trying to get lock; try restarting transaction

asked 2014-10-02 15:53:05 -0600

RedCricket gravatar image

Hi,

I cannot seem to get my Cirros image to launch.

I issue this command ...

nova boot --nic net-id=7e2dec60-f28d-4bcd-a792-29613958aca7 --flavor 1 --image Cirros rbc-test

... but eventually the instance errors out and I see this ...

# nova show rbc-test
+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property                              | Value                                                                                                                                                                                                                    |
+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| status                                | ERROR                                                                                                                                                                                                                    |
| updated                               | 2014-10-02T20:45:19Z                                                                                                                                                                                                     |
| OS-EXT-STS:task_state                 | None                                                                                                                                                                                                                     |
| OS-EXT-SRV-ATTR:host                  | None                                                                                                                                                                                                                     |
| key_name                              | None                                                                                                                                                                                                                     |
| image                                 | Cirros (d3b3c4a4-7db7-4e26-b10c-f9994f7f4236)                                                                                                                                                                            |
| hostId                                |                                                                                                                                                                                                                          |
| OS-EXT-STS:vm_state                   | error                                                                                                                                                                                                                    |
| OS-EXT-SRV-ATTR:instance_name         | rbc-test                                                                                                                                                                                                                 |
| OS-SRV-USG:launched_at                | None                                                                                                                                                                                                                     |
| OS-EXT-SRV-ATTR:hypervisor_hostname   | None                                                                                                                                                                                                                     |
| flavor                                | m1.tiny (1)                                                                                                                                                                                                              |
| id                                    | df24fdea-16e3-43dd-b645-ba8becd8a75c                                                                                                                                                                                     |
| OS-SRV-USG:terminated_at              | None                                                                                                                                                                                                                     |
| user_id                               | abf2627749a745c68acbae01584dd815                                                                                                                                                                                         |
| name                                  | rbc-test                                                                                                                                                                                                                 |
| created                               | 2014-10-02T20:44:55Z                                                                                                                                                                                                     |
| tenant_id                             | 4a86603c3d0f40f983b1fb5868fede01                                                                                                                                                                                         |
| OS-DCF:diskConfig                     | MANUAL                                                                                                                                                                                                                   |
| metadata                              | {}                                                                                                                                                                                                                       |
| svlhiav-openstack-client-iv17 network | 10.29.104.148                                                                                                                                                                                                            |
| os-extended-volumes:volumes_attached  | [{u'id': u'c53a274b-4fee-464c-a357-5bd9d64f1f64'}]                                                                                                                                                                       |
| accessIPv4                            |                                                                                                                                                                                                                          |
| accessIPv6                            |                                                                                                                                                                                                                          |
| fault                                 | {u'message': u'Remote error: DBDeadlock (OperationalError) (1213, \'Deadlock found when trying to get lock; try restarting transaction\') None None                                                                      |
|                                       | [u\'Traceback (most recent call last):\                                                                                                                                                                                  |
|                                       | \', u\'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/amqp.py", lin', u'code': 500, u'details': u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 259, in decorated_function |
|                                       |     return function(self, context, *args, **kwargs)                                                                                                                                                                      |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1632, in run_instance                                                                                                                            |
|                                       |     do_run_instance()                                                                                                                                                                                                    |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", line 246, in inner                                                                                                                         |
|                                       |     return f(*args, **kwargs)                                                                                                                                                                                            |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1631, in do_run_instance                                                                                                                         |
|                                       |     legacy_bdm_in_spec)                                                                                                                                                                                                  |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 970, in _run_instance                                                                                                                            |
|                                       |     notify("error", msg=unicode(e))  # notify that build failed                                                                                                                                                          |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 954, in _run_instance                                                                                                                            |
|                                       |     instance, image_meta, legacy_bdm_in_spec)                                                                                                                                                                            |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1013, in _build_instance                                                                                                                         |
|                                       |     self._default_block_device_names(context, instance, image_meta, bdms)                                                                                                                                                |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1371, in _default_block_device_names                                                                                                             |
|                                       |     block_device_mapping)                                                                                                                                                                                                |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1302, in _default_device_names_for_instance                                                                                                      |
|                                       |     *block_device_lists)                                                                                                                                                                                                 |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 4826, in default_device_names_for_instance                                                                                                   |
|                                       |     block_device_mapping)                                                                                                                                                                                                |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/blockinfo.py", line 436, in default_device_names                                                                                                              |
|                                       |     update_func(bdm)                                                                                                                                                                                                     |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 4820, in _update_func                                                                                                                        |
|                                       |     bdm_id, bdm)                                                                                                                                                                                                         |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 417, in block_device_mapping_update                                                                                                              |
|                                       |     context, bdm_id, values)                                                                                                                                                                                             |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/conductor/api.py", line 186, in block_device_mapping_update                                                                                                                |
|                                       |     context, values, create=False)                                                                                                                                                                                       |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/conductor/rpcapi.py", line 258, in block_device_mapping_update_or_create                                                                                                   |
|                                       |     values=values, create=create)                                                                                                                                                                                        |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/rpcclient.py", line 85, in call                                                                                                                                            |
|                                       |     return self._invoke(self.proxy.call, ctxt, method, **kwargs)                                                                                                                                                         |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/rpcclient.py", line 63, in _invoke                                                                                                                                         |
|                                       |     return cast_or_call(ctxt, msg, **self.kwargs)                                                                                                                                                                        |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/proxy.py", line 126, in call                                                                                                                          |
|                                       |     result = rpc.call(context, real_topic, msg, timeout)                                                                                                                                                                 |
|                                       |   File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/__init__.py", line 139, in call                                                                                                                       |
|                                       |     return _get_impl().call(CONF ...
(more)
edit retag flag offensive close merge delete