After reboot instance shuts down and nova-compute throws a libvrit error
After stress reboot test, nova-compute can't start because of this error:
2012-08-10 11:35:45 CRITICAL nova [-] Unable to pre-create chardev file '/var/lib/
2012-08-10 11:35:45 TRACE nova Traceback (most recent call last):
2012-08-10 11:35:45 TRACE nova File "/usr/bin/
2012-08-10 11:35:45 TRACE nova service.wait()
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova _launcher.wait()
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova service.wait()
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova return self._exit_
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova return hubs.get_
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova return self.greenlet.
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova result = function(*args, **kwargs)
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova server.start()
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova self.manager.
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova self.reboot_
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova return f(*args, **kw)
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova function(self, context, instance_uuid, *args, **kwargs)
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova sys.exc_info())
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova self.gen.next()
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova return function(self, context, instance_uuid, *args, **kwargs)
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova reboot_type)
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova return f(*args, **kw)
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova if self._soft_
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova dom.create()
2012-08-10 11:35:45 TRACE nova File "/usr/lib/
2012-08-10 11:35:45 TRACE nova if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
2012-08-10 11:35:45 TRACE nova libvirtError: Unable to pre-create chardev file '/var/lib/
2012-08-10 11:35:45 TRACE nova
It seems that in nova db the instance is exists, but on the host it doesn't. Libvirt sees this instance as shut off.
root@KVM7:~# virsh list --all
Id Name State
-------
- instance-00000047 shut off
- instance-00000048 shut off
- instance-00000049 shut off
- instance-00000057 shut off
- instance-000000f9 shut off
root@KVM7:~# virsh start instance-00000049
error: Failed to start domain instance-00000049
error: Unable to pre-create chardev file '/var/lib/
Here is mentioned instance record (exported to json format - for readability) form nova.instance table:
[
{
'created_at' : '2012-07-24 15:15:12',
'updated_at' : '2012-07-24 15:26:42',
'deleted_at' : '2012-07-24 15:26:42',
'deleted' : 1,
'id' : 2,
'internal_id' : NULL,
'user_id' : '1f5039d64f624c
'project_id' : 'f4ac28a96c0747
'image_ref' : '9e4e2f95-
'kernel_id' : '',
'ramdisk_id' : '',
'server_name' : NULL,
'launch_index' : 1,
'key_name' : 'mykey',
'key_data' : 'ssh-rsa AAAAB3NzaC1yc2E
'power_state' : 1,
'vm_state' : 'deleted',
'memory_mb' : 2048,
'vcpus' : 1,
'hostname' : '10',
'host' : 'KVM7',
'user_data' : '',
'reservation_id' : 'r-bcv08dl8',
'scheduled_at' : '2012-07-24 15:15:13',
'launched_at' : '2012-07-24 15:15:30',
'terminated_at' : '2012-07-24 15:26:42',
'display_name' : '10',
'display_
'availability
'locked' : 0,
'os_type' : NULL,
'launched_on' : 'KVM7',
'instance_
'vm_mode' : NULL,
'uuid' : '3ccd3b88-
'architecture' : NULL,
'root_
'access_ip_v4' : NULL,
'access_ip_v6' : NULL,
'config_drive' : '',
'task_state' : NULL,
'default_
'default_
'progress' : 0,
'auto_
'shutdown_
'disable_
'root_gb' : 10,
'ephemeral_gb' : 20,
'cell_name' : NULL
}
]
Is it possible to recreate the /var/lib/
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: