cannot run instance
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-
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/
(nova.root): TRACE: rval = node_func(
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: host = self.driver.
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: raise driver.
(nova.root): TRACE: NoValidHost: No hosts found
(nova.root): TRACE:
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
Is the Compute Service running?
Revision history for this message
![]() |
#2 |
To Sandy Walsh:
the Compute Service is ? and which the command can run the Compute Service.
Revision history for this message
![]() |
#3 |
nova-compute
You can see how each Nova service is run here:
http://
Hope it helps!
Revision history for this message
![]() |
#5 |
as this page http://
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?
Revision history for this message
![]() |
#6 |
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.
Revision history for this message
![]() |
#8 |
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=
Let's see where that gets us. :)
Revision history for this message
![]() |
#9 |
i am sorry,i am at home
and i have no the environment now.
i will check tomorrow.
thx , Sand.
Revision history for this message
![]() |
#10 |
to Sandy,
hello, shihangwei is my colleague ,we are doing the same project.
as you said,
1, we really do ". novarc " to source novarc;
2,we restart nova services manually , when do "ps -A", the part of result as follows:
[root@localhost Desktop]# ps -A
16903 pts/2 00:00:00 bash
16962 pts/2 00:00:00 mysqld_safe
17012 pts/2 00:00:00 mysqld
17029 pts/2 00:00:02 nova-network
17049 pts/3 00:00:00 bash
17067 pts/3 00:00:02 nova-scheduler
17076 pts/4 00:00:00 bash
17104 pts/5 00:00:00 bash
17130 pts/5 00:00:00 man
17133 pts/5 00:00:00 sh
17134 pts/5 00:00:00 sh
17139 pts/5 00:00:00 less
17229 pts/2 00:01:02 nova-network
17247 pts/3 00:00:53 nova-scheduler
17289 pts/1 00:00:00 bash
17305 pts/1 00:00:01 nova-api
17328 pts/5 00:00:00 python2.5
17332 pts/5 00:00:00 tar
17333 pts/5 00:00:02 gzip
17920 ? 00:00:03 nova-objectstor <defunct>
3.when running the service with --flagfile=
[root@localhost ~]# nova-network --flagfile /etc/nova/nova.conf
2011-03-02 09:09:38,656 AUDIT nova.root [-] Starting network node (version 2011.1-
2011-03-02 09:09:38,657 DEBUG nova.root [-] Serving nova-network from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,657 DEBUG nova.root [-] Full set of FLAGS: from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,657 DEBUG nova.root [-] rabbit_
2011-03-02 09:09:38,657 DEBUG nova.root [-] volume_topic : volume from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,657 DEBUG nova.root [-] region_list : [] from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,658 DEBUG nova.root [-] help : None from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,658 DEBUG nova.root [-] ec2_dmz_host : 172.28.139.46 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,658 DEBUG nova.root [-] volume_
2011-03-02 09:09:38,658 DEBUG nova.root [-] compute_topic : compute from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,658 DEBUG nova.root [-] default_
2011-03-02 09:09:38,658 DEBUG nova.root [-] glance_port : 9292 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,659 DEBUG nova.root [-] rabbit_password : guest from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,659 DEBUG nova.root [-] network_manager : nova.network.
2011-03-02 09:09:38,659 DEBUG nova.root [-] default_log_levels : ['amqplib=WARN', 'sqlalchemy=WARN', 'eventlet.
2011-03-02 09:09:38,659 DEBUG nova.root [-] s3_dmz : 172.28.139.46 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,659 DEBUG nova.root [-] osapi_host : 172.28.139.46 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,660 DEBUG nova.root [-] vpn_key_suffix : -vpn from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,660 DEBUG nova.root [-] scheduler_topic : scheduler from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,660 DEBUG nova.root [-] logging_
2011-03-02 09:09:38,660 DEBUG nova.root [-] helpshort : None from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,660 DEBUG nova.root [-] aws_access_key_id : admin from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,661 DEBUG nova.root [-] null_kernel : nokernel from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,661 DEBUG nova.root [-] verbose : True from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,661 DEBUG nova.root [-] connection_type : libvirt from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,661 DEBUG nova.root [-] fake_rabbit : False from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,661 DEBUG nova.root [-] default_project : openstack from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,662 DEBUG nova.root [-] s3_port : 3333 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,662 DEBUG nova.root [-] ec2_scheme : http from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,662 DEBUG nova.root [-] logging_
2011-03-02 09:09:38,662 DEBUG nova.root [-] rabbit_host : 172.28.139.46 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,662 DEBUG nova.root [-] my_ip : 172.28.139.46 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,662 DEBUG nova.root [-] logging_
2011-03-02 09:09:38,663 DEBUG nova.root [-] sql_max_retries : 12 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,663 DEBUG nova.root [-] image_service : nova.image.
2011-03-02 09:09:38,663 DEBUG nova.root [-] instance_
2011-03-02 09:09:38,663 DEBUG nova.root [-] use_syslog : False from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,663 DEBUG nova.root [-] ec2_host : 172.28.139.46 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,663 DEBUG nova.root [-] osapi_path : /v1.0/ from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,664 DEBUG nova.root [-] node_availabili
2011-03-02 09:09:38,664 DEBUG nova.root [-] ec2_path : /services/Cloud from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,664 DEBUG nova.root [-] pidfile : None from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,664 DEBUG nova.root [-] logging_
2011-03-02 09:09:38,664 DEBUG nova.root [-] console_manager : nova.console.
2011-03-02 09:09:38,665 DEBUG nova.root [-] ? : None from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,665 DEBUG nova.root [-] helpxml : None from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,665 DEBUG nova.root [-] rabbit_userid : guest from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,665 DEBUG nova.root [-] osapi_scheme : http from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,665 DEBUG nova.root [-] report_interval : 10 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,666 DEBUG nova.root [-] scheduler_manager : nova.scheduler.
2011-03-02 09:09:38,666 DEBUG nova.root [-] ec2_port : 8773 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,666 DEBUG nova.root [-] sql_connection : mysql:/
2011-03-02 09:09:38,666 DEBUG nova.root [-] console_topic : console from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,666 DEBUG nova.root [-] osapi_port : 8774 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,666 DEBUG nova.root [-] auth_token_ttl : 3600 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,667 DEBUG nova.root [-] rabbit_port : 5672 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,667 DEBUG nova.root [-] host : localhost.
2011-03-02 09:09:38,667 DEBUG nova.root [-] volume_manager : nova.volume.
2011-03-02 09:09:38,667 DEBUG nova.root [-] rabbit_max_retries : 12 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,667 DEBUG nova.root [-] state_path : /var/lib/nova from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,667 DEBUG nova.root [-] vpn_image_id : ami-cloudpipe from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,668 DEBUG nova.root [-] logfile : None from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,668 DEBUG nova.root [-] ajax_console_
2011-03-02 09:09:38,668 DEBUG nova.root [-] db_backend : sqlalchemy from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,668 DEBUG nova.root [-] compute_manager : nova.compute.
2011-03-02 09:09:38,668 DEBUG nova.root [-] rabbit_virtual_host : / from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,668 DEBUG nova.root [-] sql_retry_interval : 10 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,669 DEBUG nova.root [-] ajax_console_
2011-03-02 09:09:38,669 DEBUG nova.root [-] ajax_console_
2011-03-02 09:09:38,669 DEBUG nova.root [-] sql_idle_timeout : 3600 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,669 DEBUG nova.root [-] glance_host : 172.28.139.46 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,669 DEBUG nova.root [-] default_image : ami-11111 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,670 DEBUG nova.root [-] control_exchange : nova from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,670 DEBUG nova.root [-] aws_secret_
2011-03-02 09:09:38,670 DEBUG nova.root [-] s3_host : 172.28.139.46 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,670 DEBUG nova.root [-] periodic_interval : 60 from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,670 DEBUG nova.root [-] enable_new_services : True from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,671 DEBUG nova.root [-] fake_network : False from MainProcess (pid=17029) serve /usr/lib/
2011-03-02 09:09:38,671 DEBUG nova.root [-] network_topic : network from MainProcess (pid=17029) serve /usr/lib/
It the same as nova-scheduler --flagfile /etc/nova/
and the last post a copy of my nova.conf file:
--daemonize=1
--dhcpbridge_
--dhcpbridge=
--logdir=
--state_
--sql_connectio
--s3_host=
--rabbit_
--ec2_host=
--verbose
--ec2_url=http://
--network_
--fixed_
--network_size=64
hoping for your help, thank you very much!
Revision history for this message
![]() |
#11 |
I would suggest running nova with the flag files option. The output looks fine. I don't see any errors coming from it. Running without the .conf will certainly cause problems. Could you paste a 'ps -aux | grep nova' just so we I can ensure the correct nova.conf is being picked up?
From your process list above, compute and object-store aren't running, so that will definitely cause problems.
Revision history for this message
![]() |
#12 |
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/
root 6628 0.3 0.7 211512 27588 pts/2 S+ 09:23 0:03 /usr/bin/python /usr/bin/
root 6682 0.0 0.6 207192 23564 ? S 09:24 0:00 /usr/bin/python /usr/bin/
root 6701 0.3 0.6 211132 27056 pts/4 S+ 09:25 0:02 /usr/bin/python /usr/bin/
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/
[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/
2011-03-03 09:24:56,122 DEBUG nova.root [-] help : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,122 DEBUG nova.root [-] ec2_dmz_host : 172.28.139.46 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,123 DEBUG nova.root [-] encrypted : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,123 DEBUG nova.root [-] compute_topic : compute from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,123 DEBUG nova.root [-] glance_port : 9292 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,123 DEBUG nova.root [-] report_profile : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,123 DEBUG nova.root [-] rabbit_password : guest from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,124 DEBUG nova.root [-] user_cert_subject : /C=US/ST=
2011-03-03 09:24:56,124 DEBUG nova.root [-] s3_dmz : 172.28.139.46 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,124 DEBUG nova.root [-] originalname : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,124 DEBUG nova.root [-] rundir : . from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,124 DEBUG nova.root [-] aws_access_key_id : admin from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,124 DEBUG nova.root [-] s3_listen_host : from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,125 DEBUG nova.root [-] prefix : nova-objectstore from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,125 DEBUG nova.root [-] enable_new_services : True from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,125 DEBUG nova.root [-] my_ip : 172.28.139.46 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,125 DEBUG nova.root [-] spew : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,125 DEBUG nova.root [-] umask : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,125 DEBUG nova.root [-] nodaemon : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,126 DEBUG nova.root [-] source : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,126 DEBUG nova.root [-] version : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,126 DEBUG nova.root [-] logdir : /var/log/nova from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,126 DEBUG nova.root [-] python : /usr/lib/
2011-03-03 09:24:56,126 DEBUG nova.root [-] rabbit_port : 5672 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,126 DEBUG nova.root [-] euid : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,127 DEBUG nova.root [-] rabbit_max_retries : 12 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,127 DEBUG nova.root [-] logfile : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,127 DEBUG nova.root [-] ajax_console_
2011-03-03 09:24:56,127 DEBUG nova.root [-] ajax_console_
2011-03-03 09:24:56,127 DEBUG nova.root [-] pidfile : /root/nova-
2011-03-03 09:24:56,127 DEBUG nova.root [-] debug : False from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,128 DEBUG nova.root [-] use_project_ca : False from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,128 DEBUG nova.root [-] rabbit_userid : guest from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,128 DEBUG nova.root [-] volume_topic : volume from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,128 DEBUG nova.root [-] volume_
2011-03-03 09:24:56,128 DEBUG nova.root [-] syslog : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,129 DEBUG nova.root [-] connection_type : libvirt from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,129 DEBUG nova.root [-] default_project : openstack from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,129 DEBUG nova.root [-] s3_port : 3333 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,129 DEBUG nova.root [-] logging_
2011-03-03 09:24:56,129 DEBUG nova.root [-] instance_
2011-03-03 09:24:56,129 DEBUG nova.root [-] ec2_host : 172.28.139.46 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,130 DEBUG nova.root [-] credential_key_file : pk.pem from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,130 DEBUG nova.root [-] default_image : ami-11111 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,130 DEBUG nova.root [-] logging_
2011-03-03 09:24:56,130 DEBUG nova.root [-] console_manager : nova.console.
2011-03-03 09:24:56,130 DEBUG nova.root [-] ? : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,130 DEBUG nova.root [-] default_log_levels : ['amqplib=WARN', 'sqlalchemy=WARN', 'eventlet.
2011-03-03 09:24:56,131 DEBUG nova.root [-] osapi_scheme : http from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,131 DEBUG nova.root [-] credential_rc_file : %src from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,131 DEBUG nova.root [-] sql_connection : mysql:/
2011-03-03 09:24:56,131 DEBUG nova.root [-] console_topic : console from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,131 DEBUG nova.root [-] host : localhost.
2011-03-03 09:24:56,132 DEBUG nova.root [-] db_backend : sqlalchemy from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,132 DEBUG nova.root [-] credentials_
2011-03-03 09:24:56,132 DEBUG nova.root [-] sql_retry_interval : 10 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,132 DEBUG nova.root [-] crl_file : crl.pem from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,132 DEBUG nova.root [-] s3_host : 172.28.139.46 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,132 DEBUG nova.root [-] images_path : /var/lib/
2011-03-03 09:24:56,133 DEBUG nova.root [-] scheduler_topic : scheduler from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,133 DEBUG nova.root [-] verbose : True from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,133 DEBUG nova.root [-] sql_max_retries : 12 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,133 DEBUG nova.root [-] default_
2011-03-03 09:24:56,133 DEBUG nova.root [-] vpn_key_suffix : -vpn from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,133 DEBUG nova.root [-] null_kernel : nokernel from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,134 DEBUG nova.root [-] vpn_client_template : /usr/lib/
2011-03-03 09:24:56,134 DEBUG nova.root [-] gid : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,134 DEBUG nova.root [-] credential_vpn_file : nova-vpn.conf from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,134 DEBUG nova.root [-] credential_
2011-03-03 09:24:56,134 DEBUG nova.root [-] allowed_roles : ['cloudadmin', 'itsec', 'sysadmin', 'netadmin', 'developer'] from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,134 DEBUG nova.root [-] logging_
2011-03-03 09:24:56,135 DEBUG nova.root [-] scheduler_manager : nova.scheduler.
2011-03-03 09:24:56,135 DEBUG nova.root [-] ec2_port : 8773 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,135 DEBUG nova.root [-] osapi_port : 8774 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,135 DEBUG nova.root [-] auth_token_ttl : 3600 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,135 DEBUG nova.root [-] profile : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,135 DEBUG nova.root [-] ec2_scheme : http from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,136 DEBUG nova.root [-] keys_path : /var/lib/nova/keys from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,136 DEBUG nova.root [-] vpn_image_id : ami-cloudpipe from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,136 DEBUG nova.root [-] b : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,139 DEBUG nova.root [-] ca_file : cacert.pem from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,139 DEBUG nova.root [-] state_path : /var/lib/nova from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,139 DEBUG nova.root [-] profiler : hotshot from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,140 DEBUG nova.root [-] sql_idle_timeout : 3600 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,140 DEBUG nova.root [-] glance_host : 172.28.139.46 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,140 DEBUG nova.root [-] r : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,140 DEBUG nova.root [-] vpn_cert_subject : /C=US/ST=
2011-03-03 09:24:56,140 DEBUG nova.root [-] savestats : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,141 DEBUG nova.root [-] aws_secret_
2011-03-03 09:24:56,141 DEBUG nova.root [-] key_file : private/cakey.pem from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,141 DEBUG nova.root [-] fake_network : False from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,141 DEBUG nova.root [-] region_list : [] from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,141 DEBUG nova.root [-] uid : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,141 DEBUG nova.root [-] buckets_path : /var/lib/
2011-03-03 09:24:56,142 DEBUG nova.root [-] auth_driver : nova.auth.
2011-03-03 09:24:56,142 DEBUG nova.root [-] network_manager : nova.network.
2011-03-03 09:24:56,142 DEBUG nova.root [-] osapi_host : 172.28.139.46 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,142 DEBUG nova.root [-] file : twistd.tap from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,142 DEBUG nova.root [-] logging_
2011-03-03 09:24:56,142 DEBUG nova.root [-] fake_rabbit : False from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,143 DEBUG nova.root [-] chroot : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,143 DEBUG nova.root [-] help_reactors : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,143 DEBUG nova.root [-] rabbit_host : 172.28.139.46 from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,143 DEBUG nova.root [-] use_syslog : False from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,143 DEBUG nova.root [-] superuser_roles : ['cloudadmin'] from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,143 DEBUG nova.root [-] osapi_path : /v1.0/ from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,144 DEBUG nova.root [-] ec2_path : /services/Cloud from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,144 DEBUG nova.root [-] control_exchange : nova from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,144 DEBUG nova.root [-] rabbit_
2011-03-03 09:24:56,144 DEBUG nova.root [-] node_availabili
2011-03-03 09:24:56,144 DEBUG nova.root [-] reactor : None from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,145 DEBUG nova.root [-] volume_manager : nova.volume.
2011-03-03 09:24:56,145 DEBUG nova.root [-] global_roles : ['cloudadmin', 'itsec'] from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,145 DEBUG nova.root [-] no_save : True from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,145 DEBUG nova.root [-] rabbit_virtual_host : / from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,145 DEBUG nova.root [-] ajax_console_
2011-03-03 09:24:56,145 DEBUG nova.root [-] project_
2011-03-03 09:24:56,146 DEBUG nova.root [-] image_service : nova.image.
2011-03-03 09:24:56,146 DEBUG nova.root [-] ca_path : /var/lib/nova/CA from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,146 DEBUG nova.root [-] compute_manager : nova.compute.
2011-03-03 09:24:56,146 DEBUG nova.root [-] network_topic : network from MainProcess (pid=6674) serve /usr/lib/
2011-03-03 09:24:56,146 AUDIT nova.root [-] Starting nova-objectstore
Removing stale pidfile /root/nova-
[root@localhost ~]#
[root@localhost ~]# nova-compute --flagfile /etc/nova/nova.conf
2011-03-03 09:22:49,607 AUDIT nova.root [-] Starting compute node (version 2011.1-
2011-03-03 09:22:49,607 DEBUG nova.root [-] Serving nova-compute from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,607 DEBUG nova.root [-] Full set of FLAGS: from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,608 DEBUG nova.root [-] rabbit_
2011-03-03 09:22:49,608 DEBUG nova.root [-] volume_topic : volume from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,608 DEBUG nova.root [-] region_list : [] from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,608 DEBUG nova.root [-] help : None from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,609 DEBUG nova.root [-] ec2_dmz_host : 172.28.139.46 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,609 DEBUG nova.root [-] volume_
2011-03-03 09:22:49,609 DEBUG nova.root [-] compute_topic : compute from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,609 DEBUG nova.root [-] default_
2011-03-03 09:22:49,610 DEBUG nova.root [-] glance_port : 9292 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,610 DEBUG nova.root [-] rabbit_password : guest from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,610 DEBUG nova.root [-] network_manager : nova.network.
2011-03-03 09:22:49,610 DEBUG nova.root [-] default_log_levels : ['amqplib=WARN', 'sqlalchemy=WARN', 'eventlet.
2011-03-03 09:22:49,610 DEBUG nova.root [-] s3_dmz : 172.28.139.46 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,611 DEBUG nova.root [-] osapi_host : 172.28.139.46 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,611 DEBUG nova.root [-] vpn_key_suffix : -vpn from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,611 DEBUG nova.root [-] scheduler_topic : scheduler from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,611 DEBUG nova.root [-] logging_
2011-03-03 09:22:49,612 DEBUG nova.root [-] helpshort : None from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,612 DEBUG nova.root [-] aws_access_key_id : admin from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,612 DEBUG nova.root [-] null_kernel : nokernel from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,612 DEBUG nova.root [-] verbose : True from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,613 DEBUG nova.root [-] connection_type : libvirt from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,613 DEBUG nova.root [-] fake_rabbit : False from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,613 DEBUG nova.root [-] default_project : openstack from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,613 DEBUG nova.root [-] s3_port : 3333 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,613 DEBUG nova.root [-] ec2_scheme : http from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,614 DEBUG nova.root [-] logging_
2011-03-03 09:22:49,614 DEBUG nova.root [-] rabbit_host : 172.28.139.46 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,614 DEBUG nova.root [-] my_ip : 172.28.139.46 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,614 DEBUG nova.root [-] logging_
2011-03-03 09:22:49,615 DEBUG nova.root [-] sql_max_retries : 12 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,615 DEBUG nova.root [-] image_service : nova.image.
2011-03-03 09:22:49,615 DEBUG nova.root [-] instance_
2011-03-03 09:22:49,615 DEBUG nova.root [-] use_syslog : False from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,616 DEBUG nova.root [-] ec2_host : 172.28.139.46 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,616 DEBUG nova.root [-] osapi_path : /v1.0/ from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,616 DEBUG nova.root [-] node_availabili
2011-03-03 09:22:49,619 DEBUG nova.root [-] ec2_path : /services/Cloud from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,619 DEBUG nova.root [-] pidfile : None from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,619 DEBUG nova.root [-] logging_
2011-03-03 09:22:49,619 DEBUG nova.root [-] console_manager : nova.console.
2011-03-03 09:22:49,619 DEBUG nova.root [-] ? : None from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,620 DEBUG nova.root [-] helpxml : None from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,620 DEBUG nova.root [-] rabbit_userid : guest from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,620 DEBUG nova.root [-] osapi_scheme : http from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,621 DEBUG nova.root [-] report_interval : 10 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,621 DEBUG nova.root [-] scheduler_manager : nova.scheduler.
2011-03-03 09:22:49,621 DEBUG nova.root [-] ec2_port : 8773 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,621 DEBUG nova.root [-] sql_connection : mysql:/
2011-03-03 09:22:49,622 DEBUG nova.root [-] console_topic : console from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,622 DEBUG nova.root [-] osapi_port : 8774 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,622 DEBUG nova.root [-] auth_token_ttl : 3600 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,622 DEBUG nova.root [-] rabbit_port : 5672 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,622 DEBUG nova.root [-] host : localhost.
2011-03-03 09:22:49,623 DEBUG nova.root [-] volume_manager : nova.volume.
2011-03-03 09:22:49,623 DEBUG nova.root [-] rabbit_max_retries : 12 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,623 DEBUG nova.root [-] state_path : /var/lib/nova from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,623 DEBUG nova.root [-] vpn_image_id : ami-cloudpipe from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,624 DEBUG nova.root [-] logfile : None from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,624 DEBUG nova.root [-] ajax_console_
2011-03-03 09:22:49,624 DEBUG nova.root [-] db_backend : sqlalchemy from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,624 DEBUG nova.root [-] compute_manager : nova.compute.
2011-03-03 09:22:49,624 DEBUG nova.root [-] rabbit_virtual_host : / from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,625 DEBUG nova.root [-] sql_retry_interval : 10 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,625 DEBUG nova.root [-] ajax_console_
2011-03-03 09:22:49,625 DEBUG nova.root [-] ajax_console_
2011-03-03 09:22:49,625 DEBUG nova.root [-] sql_idle_timeout : 3600 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,626 DEBUG nova.root [-] glance_host : 172.28.139.46 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,626 DEBUG nova.root [-] default_image : ami-11111 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,626 DEBUG nova.root [-] control_exchange : nova from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,626 DEBUG nova.root [-] aws_secret_
2011-03-03 09:22:49,627 DEBUG nova.root [-] s3_host : 172.28.139.46 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,627 DEBUG nova.root [-] periodic_interval : 60 from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,627 DEBUG nova.root [-] enable_new_services : True from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,628 DEBUG nova.root [-] fake_network : False from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,628 DEBUG nova.root [-] network_topic : network from MainProcess (pid=6495) serve /usr/lib/
2011-03-03 09:22:49,866 DEBUG nova.root [-] Inner Exception: No module named glance.client from MainProcess (pid=6495) import_class /usr/lib/
2011-03-03 09:22:49,867 CRITICAL nova.root [-] Class get_connection cannot be found
(nova.root): TRACE: Traceback (most recent call last):
(nova.root): TRACE: File "/usr/bin/
(nova.root): TRACE: pkg_resources.
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: self.require(
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: execfile(
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: service.serve()
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: x.start()
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: **self.
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: self.driver = utils.import_
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: cls = import_
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: raise exception.
(nova.root): TRACE: NotFound: Class get_connection cannot be found
(nova.root): TRACE:
[root@localhost ~]#
there seems some errors happen when opening nova-compute service.
and when we run or describe instances , some other errors occur like this:
[root@localhost dowmload]# euca-describe-
Warning: failed to parse error message from AWS: <unknown>:1:0: syntax error
EC2ResponseError: 403 Forbidden
403 Forbidden
Access was denied to this resource.
Revision history for this message
![]() |
#13 |
Add this to your nova.conf
--connection_
and cross your fingers :)
Revision history for this message
![]() |
#14 |
I am sorry to tell you, after add --connection_
when nova-compute --flagfile /etc/nova/nova.conf , it's the same errors:
2011-03-04 13:25:51,235 DEBUG nova.root [-] network_topic : network from MainProcess (pid=4145) serve /usr/lib/
2011-03-04 13:25:51,538 DEBUG nova.root [-] Inner Exception: No module named glance.client from MainProcess (pid=4145) import_class /usr/lib/
2011-03-04 13:25:51,538 CRITICAL nova.root [-] Class get_connection cannot be found
(nova.root): TRACE: Traceback (most recent call last):
(nova.root): TRACE: File "/usr/bin/
(nova.root): TRACE: pkg_resources.
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: self.require(
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: execfile(
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: service.serve()
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: x.start()
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: **self.
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: self.driver = utils.import_
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: cls = import_
(nova.root): TRACE: File "/usr/lib/
(nova.root): TRACE: raise exception.
(nova.root): TRACE: NotFound: Class get_connection cannot be found
Revision history for this message
![]() |
#15 |
Generally this is from a missing python package (python-cheetah for example) if you add the following line:
raise
to line 56 of nova/utils.py (above the other exception) it will tell you which module it is failing to import.
On Mar 3, 2011, at 9:27 PM, janson wrote:
> Question #147177 on OpenStack Compute (nova) changed:
> https:/
>
> janson posted a new comment:
> I am sorry to tell you, after add --connection_
> nova.conf,
>
> when nova-compute --flagfile /etc/nova/nova.conf , it's the same errors:
>
> 2011-03-04 13:25:51,235 DEBUG nova.root [-] network_topic : network from MainProcess (pid=4145) serve /usr/lib/
> 2011-03-04 13:25:51,538 DEBUG nova.root [-] Inner Exception: No module named glance.client from MainProcess (pid=4145) import_class /usr/lib/
> 2011-03-04 13:25:51,538 CRITICAL nova.root [-] Class get_connection cannot be found
> (nova.root): TRACE: Traceback (most recent call last):
> (nova.root): TRACE: File "/usr/bin/
> (nova.root): TRACE: pkg_resources.
> (nova.root): TRACE: File "/usr/lib/
> (nova.root): TRACE: self.require(
> (nova.root): TRACE: File "/usr/lib/
> (nova.root): TRACE: execfile(
> (nova.root): TRACE: File "/usr/lib/
> (nova.root): TRACE: service.serve()
> (nova.root): TRACE: File "/usr/lib/
> (nova.root): TRACE: x.start()
> (nova.root): TRACE: File "/usr/lib/
> (nova.root): TRACE: **self.
> (nova.root): TRACE: File "/usr/lib/
> (nova.root): TRACE: self.driver = utils.import_
> (nova.root): TRACE: File "/usr/lib/
> (nova.root): TRACE: cls = import_
> (nova.root): TRACE: File "/usr/lib/
> (nova.root): TRACE: raise exception.
> (nova.root): TRACE: NotFound: Class get_connection cannot be found
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).
Revision history for this message
![]() |
#16 |
Looks like Glance is not installed: No module named glance.client
Vish ... didn't know about that 'raise' trick. Good to know.
Can you help with this problem?
Provide an answer of your own, or ask shihangwei for more information if necessary.