Ask Your Question
0

cannot run instance

asked 2011-02-28 03:45:08 -0500

shihangwei gravatar image

RESERVATION r-4ucgmz2s PRO default INSTANCE i-00000001 ami-1jql5xv0 scheduling mykey (PRO, None) 0 m1.small 2011-02-28 02:55:55.015189 unknown zone

and it is nova-scheduler error : [root@localhost 3]# nova-scheduler 2011-02-28 10:20:56,061 AUDIT nova.root [-] Starting scheduler node (version 2011.1-workspace:tarmac-20110202111800-10sib5zxlu8xluca) 2011-02-28 10:55:55,338 ERROR nova.root [-] Exception during message handling (nova.root): TRACE: Traceback (most recent call last): (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/rpc.py", line 192, in receive (nova.root): TRACE: rval = node_func(context=ctxt, *node_args) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/scheduler/manager.py", line 63, in _schedule (nova.root): TRACE: host = self.driver.schedule(elevated, topic, *args, *kwargs) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/scheduler/chance.py", line 37, in schedule (nova.root): TRACE: raise driver.NoValidHost(_("No hosts found")) (nova.root): TRACE: NoValidHost: No hosts found (nova.root): TRACE:

edit retag flag offensive close merge delete

16 answers

Sort by ยป oldest newest most voted
0

answered 2011-03-01 02:04:28 -0500

shihangwei gravatar image

thx very much,sandy.

edit flag offensive delete link more
0

answered 2011-03-01 02:22:52 -0500

Hmm, I think there is a step missing in that tutorial (actually running the nova services and which nova.conf to use).

Let me ask around.

edit flag offensive delete link more
0

answered 2011-03-01 02:46:49 -0500

shihangwei gravatar image

OK ,thx Sandy

edit flag offensive delete link more
0

answered 2011-03-01 02:03:10 -0500

nova-compute

You can see how each Nova service is run here: http://wiki.openstack.org/XenServerDevelopment?action=subscribe#Run_Nova (http://wiki.openstack.org/XenServerDe...)

Hope it helps!

edit flag offensive delete link more
0

answered 2011-02-28 11:53:35 -0500

Is the Compute Service running?

edit flag offensive delete link more
0

answered 2011-03-01 00:52:03 -0500

shihangwei gravatar image

To Sandy Walsh: the Compute Service is ? and which the command can run the Compute Service.

edit flag offensive delete link more
0

answered 2011-03-01 02:13:53 -0500

shihangwei gravatar image

as this page http://nova.openstack.org/adminguide/single.node.install.html (http://nova.openstack.org/adminguide/...) my Virtual Machine is KVM . and when i execute command 'nova-compute ':

nova.root [-] Class get_connection cannot be found

is there something must i modify?

edit flag offensive delete link more
0

answered 2011-03-04 12:05:04 -0500

Looks like Glance is not installed: No module named glance.client

Vish ... didn't know about that 'raise' trick. Good to know.

edit flag offensive delete link more
0

answered 2011-03-03 01:40:40 -0500

janson071 gravatar image

OK, here is the list of "ps -aux | grep nova":

[root@localhost dowmload]# ps -aux | grep nova Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ root 6628 0.3 0.7 211512 27588 pts/2 S+ 09:23 0:03 /usr/bin/python /usr/bin/nova-network --flagfile /etc/nova/nova.conf root 6682 0.0 0.6 207192 23564 ? S 09:24 0:00 /usr/bin/python /usr/bin/nova-objectstore --flagfile /etc/nova/nova.conf root 6701 0.3 0.6 211132 27056 pts/4 S+ 09:25 0:02 /usr/bin/python /usr/bin/nova-scheduler --flagfile /etc/nova/nova.conf root 6728 0.1 0.8 224596 34184 pts/5 S+ 09:26 0:01 /usr/bin/python /usr/bin/nova-api --flagfile /etc/nova/nova.conf root 6807 0.0 0.0 61144 748 pts/6 S+ 09:40 0:00 grep nova

and I think that it's necessary to copy the result using nova-objectstore --flagfile /etc/nova/nova.conf and nova-compute --flagfile /etc/nova/nova.conf.

[root@localhost ~]# nova-objectstore --flagfile /etc/nova/nova.conf 2011-03-03 09:24:56,122 DEBUG nova.root [-] Full set of FLAGS: from MainProcess (pid=6674) serve /usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/twistd.py:264 2011-03-03 09:24:56,122 DEBUG nova.root [-] help : None from MainProcess (pid=6674) serve /usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/twistd.py:266 2011-03-03 09:24:56,122 DEBUG nova.root [-] ec2_dmz_host : 172.28.139.46 from MainProcess (pid=6674) serve /usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/twistd.py:266 2011-03-03 09:24:56,123 DEBUG nova.root [-] encrypted : None from MainProcess (pid=6674) serve /usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/twistd.py:266 2011-03-03 09:24:56,123 DEBUG nova.root [-] compute_topic : compute from MainProcess (pid=6674) serve /usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/twistd.py:266 2011-03-03 09:24:56,123 DEBUG nova.root [-] glance_port : 9292 from MainProcess (pid=6674) serve /usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/twistd.py:266 2011-03-03 09:24:56,123 DEBUG nova.root [-] report_profile : None from MainProcess (pid=6674) serve /usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/twistd.py:266 2011-03-03 09:24:56,123 DEBUG nova.root [-] rabbit_password : guest from MainProcess (pid=6674) serve /usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/twistd.py:266 2011-03-03 09:24:56,124 DEBUG nova.root [-] user_cert_subject : /C=US/ST=California/L=MountainView/O=AnsoLabs/OU=NovaDev/CN=%s-%s-%s from MainProcess (pid=6674) serve /usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/twistd.py:266 2011-03-03 09:24:56,124 DEBUG nova.root [-] s3_dmz : 172.28.139.46 from MainProcess (pid=6674) serve /usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/twistd.py:266 2011-03-03 09:24:56,124 DEBUG nova.root [-] originalname : None from MainProcess (pid=6674) serve /usr ... (more)

edit flag offensive delete link more
0

answered 2011-03-01 12:29:27 -0500

shihangwei,

I'm not really familiar with that tutorial, but here's what I would check:

  1. make sure you source novarc . novarc

  2. you may need to restart the nova services. Do a 'ps' to find them and then /etc/init.d (assuming they're running as part of the package install) ... or are you running them all manually?

  3. Regardless, make sure the services are running with a --flagfile=nova.conf statement in there. Could you post a copy of your nova.conf file please?

Let's see where that gets us. :)

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: 2011-02-28 03:45:08 -0500

Seen: 105 times

Last updated: Mar 04 '11