Ask Your Question
0

After reboot instance shuts down and nova-compute throws a libvrit error

asked 2012-08-10 10:53:36 -0500

tomasz-michal-klosinski gravatar image

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/nova/instances/instance-00000049/console.log': No such file or directory 2012-08-10 11:35:45 TRACE nova Traceback (most recent call last): 2012-08-10 11:35:45 TRACE nova File "/usr/bin/nova-compute", line 49, in <module> 2012-08-10 11:35:45 TRACE nova service.wait() 2012-08-10 11:35:45 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 413, in wait 2012-08-10 11:35:45 TRACE nova _launcher.wait() 2012-08-10 11:35:45 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 131, in wait 2012-08-10 11:35:45 TRACE nova service.wait() 2012-08-10 11:35:45 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait 2012-08-10 11:35:45 TRACE nova return self._exit_event.wait() 2012-08-10 11:35:45 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait 2012-08-10 11:35:45 TRACE nova return hubs.get_hub().switch() 2012-08-10 11:35:45 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch 2012-08-10 11:35:45 TRACE nova return self.greenlet.switch() 2012-08-10 11:35:45 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main 2012-08-10 11:35:45 TRACE nova result = function(args, *kwargs) 2012-08-10 11:35:45 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in run_server 2012-08-10 11:35:45 TRACE nova server.start() 2012-08-10 11:35:45 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 162, in start 2012-08-10 11:35:45 TRACE nova self.manager.init_host() 2012-08-10 11:35:45 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 253, in init_host 2012-08-10 11:35:45 TRACE nova self.reboot_instance(context, instance['uuid']) 2012-08-10 11:35:45 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped 2012-08-10 11:35:45 TRACE nova return f(args, *kw) 2012-08-10 11:35:45 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 159, in decorated_function 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/python2.7/dist-packages/nova/compute/manager.py", line 183, in decorated_function 2012-08-10 11:35:45 TRACE nova sys.exc_info()) 2012-08-10 11:35:45 TRACE nova File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__ 2012-08-10 11:35:45 TRACE nova self.gen.next() 2012-08-10 11:35:45 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177, in decorated_function 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/python2.7/dist-packages/nova/compute/manager.py", line 904, in reboot_instance 2012-08-10 11:35:45 TRACE nova reboot_type ... (more)

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
1

answered 2012-12-20 05:38:47 -0500

fifieldt gravatar image

Hi Tomasz,

Do you still have this issue? Have you tried with Folsom?

edit flag offensive delete link more
0

answered 2012-08-10 11:10:19 -0500

tomasz-michal-klosinski gravatar image

One more thing:

root@KVM7:~# ls /var/lib/nova/instances/instance-00000049/ ls: cannot access /var/lib/nova/instances/instance-00000049/: No such file or directory

It seems that nova or libvirt have deleted this directory for some reason.

edit flag offensive delete link more
0

answered 2012-10-16 02:47:29 -0500

gtt116 gravatar image

Maybe the instance is in deleteing process. nova-compute just delete the /var/lib/nova/instance/instance-00000049, and not delete from database. And at this time, you reboot it, so the vm is in database, but the dictionary instance-00000049 can not be found.

edit flag offensive delete link more
0

answered 2012-10-16 05:39:33 -0500

tomasz-michal-klosinski gravatar image

Thank you TianTian for you answer. However, I still don't know how to deal with this problem. It seems that nova is (or at least was at time of Essex release) very immature project.

edit flag offensive delete link more
0

answered 2012-12-20 08:38:35 -0500

tomasz-michal-klosinski gravatar image

Hello Tom,

I haven't tried it yet. Unfortunetly time for R&D in my company passed and (maybe) I will get back to OpenStack in next year.

Best wishes, Tom

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-08-10 10:53:36 -0500

Seen: 71 times

Last updated: Dec 20 '12