Ask Your Question
0

instance stuck in building nova_key

asked 2011-05-17 16:46:45 -0600

fred-yang gravatar image

Doing "euca-run-instances ami-595fe7fc -k nova_key -t m1.tiny" , the instance is stuck in "building nova_key(Ras, stocky) 0" - logs seems fine, any hint? Thanks,

$ euca-describe-instances RESERVATION r-ir2svb20 Ras default INSTANCE i-00000004 ami-595fe7fc 10.0.0.2 10.0.0.2 building nova_key (Ras, stocky) 0 m1.tiny 2011-05-17T14:40:33Z nova RESERVATION r-7dadcvps Ras default INSTANCE i-00000002 ami-595fe7fc scheduling nova_key (Ras, None) 0 m1.tiny 2011-05-17T05:31:55Z unknown zone RESERVATION r-v9bnwoxr Ras default INSTANCE i-00000001 ami-595fe7fc scheduling mykey (Ras, None) 0 m1.tiny 2011-05-17T05:29:53Z unknown zone RESERVATION r-wogqc75e Ras default INSTANCE i-00000003 ami-595fe7fc scheduling nova_key (Ras, None) 0 m1.tiny 2011-05-17T05:54:21Z unknown zone

api.log - 2011-05-17 07:40:33,596 DEBUG nova.rpc [-] received {u'_context_request_id': u'JANVAYDFOHF7JSV-KNXC', u'_context_read_deleted': False, u'args': {u'instance_id': 4, u'injected_files': None, u'availability_zone': None}, u'_context_is_admin': True, u'_context_timestamp': u'2011-05-17T14:40:33Z', u'_context_user': u'fredy', u'method': u'run_instance', u'_context_project': u'Ras', u'_context_remote_address': u'192.168.0.14'} from (pid=2394) _receive /home/fred/openstack/nova/nova/rpc.py:177 2011-05-17 07:40:33,596 DEBUG nova.rpc [-] unpacked context: {'timestamp': u'2011-05-17T14:40:33Z', 'remote_address': u'192.168.0.14', 'project': u'Ras', 'is_admin': True, 'user': u'fredy', 'request_id': u'JANVAYDFOHF7JSV-KNXC', 'read_deleted': False} from (pid=2394) _unpack_context /home/fred/openstack/nova/nova/rpc.py:350 2011-05-17 07:40:33,643 AUDIT nova.compute.manager [JANVAYDFOHF7JSV-KNXC fredy Ras] instance 4: starting... 2011-05-17 07:40:33,743 DEBUG nova.rpc [-] Making asynchronous call on network ... from (pid=2394) call /home/fred/openstack/nova/nova/rpc.py:370 2011-05-17 07:40:33,743 DEBUG nova.rpc [-] MSG_ID is 50414ef869074031ae9d8331745fd9ab from (pid=2394) call /home/fred/openstack/nova/nova/rpc.py:373 2011-05-17 07:40:34,027 DEBUG nova.rpc [-] Making asynchronous call on network.stocky ... from (pid=2394) call /home/fred/openstack/nova/nova/rpc.py:370 2011-05-17 07:40:34,027 DEBUG nova.rpc [-] MSG_ID is 82a45bfab7714519b1f316e80e6d825c from (pid=2394) call /home/fred/openstack/nova/nova/rpc.py:373 2011-05-17 07:40:34,493 DEBUG nova.virt.libvirt_conn [-] instance instance-00000004: starting toXML method from (pid=2394) to_xml /home/fred/openstack/nova/nova/virt/libvirt_conn.py:1039 2011-05-17 07:40:34,593 DEBUG nova.virt.libvirt_conn [-] instance instance-00000004: finished toXML method from (pid=2394) to_xml /home/fred/openstack/nova/nova/virt/libvirt_conn.py:1042 2011-05-17 07:40:34,608 INFO nova [-] called setup_basic_filtering in nwfilter 2011-05-17 07:40:34,609 INFO nova [-] ensuring static filters 2011-05-17 07:40:34,673 DEBUG nova.utils [-] Attempting to grab semaphore "iptables" for method "apply"... from (pid=2394) inner /home/fred/openstack/nova/nova/utils.py:576 2011-05-17 07:40:34,673 DEBUG nova.utils [-] Attempting to grab file lock "iptables" for method "apply"... from (pid=2394) inner /home/fred/openstack/nova/nova/utils.py:581 2011-05-17 07:40:34,677 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=2394) execute /home/fred/openstack/nova/nova/utils.py:141 2011-05-17 07:41:14,984 INFO ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2011-05-18 23:54:31 -0600

fred-yang gravatar image

modified nova.conf, removed database & make sure host can boot KVM gust, reboot to get setup db from scratch couple times. Now I am always getting instance in launching state and I can't spot any error from logs. Checked rabbitmqctl list_queues, all 0. I suspect it is network setup, any hint, hint? Thanks

nova.conf and logs snips are attached, , $ euca-describe-instances RESERVATION r-gtdlwqtm RAS default INSTANCE i-00000001 ami-2b1b4131 10.0.0.2 10.0.0.2 launching mykey (RAS, stocky) 0 m1.tiny 2011-05-18T22:44:51Z nova

instance is created by following http://wiki.openstack.org/RunningNova using ttylinux test image

With ./bin/nova-manage network create 10.0.0.0/8 3 16 $ cat bin/nova.conf --network_manager=nova.network.manager.FlatManager --use_ipv6=false #--dhcpbridge_flagfile=/home/fred/open/nova/bin/nova.conf #--dhcpbridge=nova-dhcpbridge --verbose --s3_host=192.168.0.14 --cc_host=192.168.0.14 --ec2_url=http://192.168.0.14:8773/services/Cloud --fixed_range=10.0.0.0/12 --network_size=48 --routing_source_ip=192.168.0.14 --verbose --sql_connection=mysql://root:nova@localhost/nova --lock_path=/tmp --auth_driver=nova.auth.dbdriver.DbDriver

Compute.log -- 2011-05-18 15:44:52,252 DEBUG nova.rpc [-] received {u'_context_request_id': u'-GBWLO580A36T5HQ3WLO', u'_context_read_deleted': False, u'args': {u'instance_id': 1, u'injected_files': None, u'availability_zone': None}, u'_context_is_admin': True, u'_context_timestamp': u'2011-05-18T22:44:51Z', u'_context_user': u'fredy', u'method': u'run_instance', u'_context_project': u'RAS', u'_context_remote_address': u'192.168.0.14'} from (pid=2261) _receive /home/fred/open/nova/nova/rpc.py:167 2011-05-18 15:44:52,252 DEBUG nova.rpc [-] unpacked context: {'timestamp': u'2011-05-18T22:44:51Z', 'remote_address': u'192.168.0.14', 'project': u'RAS', 'is_admin': True, 'user': u'fredy', 'request_id': u'-GBWLO580A36T5HQ3WLO', 'read_deleted': False} from (pid=2261) _unpack_context /home/fred/open/nova/nova/rpc.py:331 2011-05-18 15:44:52,299 AUDIT nova.compute.manager [-GBWLO580A36T5HQ3WLO fredy RAS] instance 1: starting... 2011-05-18 15:44:52,299 DEBUG nova.compute.manager [-GBWLO580A36T5HQ3WLO fredy RAS] host stocky: lauched on stocky... from (pid=2261) run_instance /home/fred/open/nova/nova/compute/manager.py:205 2011-05-18 15:44:52,385 DEBUG nova.rpc [-] Making asynchronous call on network ... from (pid=2261) call /home/fred/open/nova/nova/rpc.py:350 2011-05-18 15:44:52,385 DEBUG nova.rpc [-] MSG_ID is da3c661a6a4f43539a0014e6677b383d from (pid=2261) call /home/fred/open/nova/nova/rpc.py:353 2011-05-18 15:44:52,687 DEBUG nova.rpc [-] Making asynchronous call on network.stocky ... from (pid=2261) call /home/fred/open/nova/nova/rpc.py:350 2011-05-18 15:44:52,687 DEBUG nova.rpc [-] MSG_ID is cc2514f2e0c14064b0a188f8fc29c08b from (pid=2261) call /home/fred/open/nova/nova/rpc.py:353 2011-05-18 15:44:53,086 DEBUG nova.compute.manager [-GBWLO580A36T5HQ3WLO fredy RAS] allocated fixed IP stocky: from (pid=2261) run_instance /home/fred/open/nova/nova/compute/manager.py:229 2011-05-18 15:44:53,136 DEBUG nova.compute.manager [-GBWLO580A36T5HQ3WLO fredy RAS] set Spawning stocky: from (pid=2261) run_instance /home/fred/open/nova/nova/compute/manager.py:240 2011-05-18 15:44:53 ... (more)

edit flag offensive delete link more
0

answered 2011-05-19 12:07:13 -0600

fred-yang gravatar image

Similar nova.conf from https://answers.launchpad.net/nova/+question/156120 (https://answers.launchpad.net/nova/+q...) w/o glance gets Cactus to Running mode. Thanks,

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-05-17 16:46:45 -0600

Seen: 62 times

Last updated: May 19 '11