termie / nova-migration-demo

Nova is a cloud computing fabric controller (the main part of an IaaS system). It is written in Python.
http://openstack.org/projects/compute/
Apache License 2.0
2 stars 0 forks source link

exception.NotFound occurred when installing nova-objectstore in a different marchine from nova-compute #817

Open termie opened 13 years ago

termie commented 13 years ago

I tried to install nova-objectstore on a different machine from nova-compute. But I got the following error.

2011-04-14 15:07:31,360 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-restore from (pid=24064) execute /usr/lib/pymodules/python2.6/nova/utils.py:150 2011-04-14 15:07:31,390 DEBUG nova.utils [-] Running cmd (subprocess): mkdir -p /var/lib/nova/instances/instance-00000001/ from (pid=24064) execute /usr/lib/pymodules/python2.6/nova/utils.py:150 2011-04-14 15:07:31,396 INFO nova.virt.libvirt_conn [-] instance instance-00000001: Creating image 2011-04-14 15:07:31,469 DEBUG nova.utils [-] Attempting to grab semaphore "5d5fa351" for method "call_if_not_exists"... from (pid=24064) inner /usr/lib/pymodules/python2.6/nova/utils.py:594 2011-04-14 15:07:31,478 ERROR nova.compute.manager [JI-KOPJNBE64MT5FCXWJ anne IRT] Instance '1' failed to spawn. Is virtualization enabled in the BIOS? (nova.compute.manager): TRACE: Traceback (most recent call last): (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 234, in run_instance (nova.compute.manager): TRACE: self.driver.spawn(instance_ref) (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 120, in _wrap (nova.compute.manager): TRACE: return f(_args, _kw) (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 616, in spawn (nova.compute.manager): TRACE: self._create_image(instance, xml, network_info) (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 841, in _create_image (nova.compute.manager): TRACE: project=project) (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 776, in _cache_image (nova.compute.manager): TRACE: call_if_not_exists(base, fn, _args, _kwargs) (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/utils.py", line 607, in inner (nova.compute.manager): TRACE: retval = f(_args, _kwargs) (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 774, in call_if_not_exists (nova.compute.manager): TRACE: fn(target=base, _args, _kwargs) (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 787, in _fetch_image (nova.compute.manager): TRACE: images.fetch(image_id, target, user, project) (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/images.py", line 51, in fetch (nova.compute.manager): TRACE: metadata = image_service.get(elevated, image_id, image_file) (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/image/local.py", line 116, in get (nova.compute.manager): TRACE: raise exception.NotFound (nova.compute.manager): TRACE: NotFound: None (nova.compute.manager): TRACE: 2011-04-14 15:07:48,960 INFO nova.compute.manager [-] Found instance 'instance-00000001' in DB but no VM. State=8, so setting state to shutoff. 2011-04-14 15:07:48,960 INFO nova.compute.manager [-] DB/VM state mismatch. Changing state from '8' to '5' 2011-04-14 15:08:49,053 INFO nova.compute.manager [-] Found instance 'instance-00000001' in DB but no VM. State=5, so setting state to shutoff. 2011-04-14 15:09:49,087 INFO nova.compute.manager [-] Found instance 'instance-00000001' in DB but no VM. State=5, so setting state to shutoff.

The version I used is 2011.2~gamma2~bzr987-0ubuntu0ppa1~maverick1. And the content of nova.conf is as followings.

--sql_connection=mysql://root:nova@ubuntu2/nova --s3_host=ubuntu2 --rabbit_host=192.168.32.202 --cc_host=192.168.32.202 --ec2_url=http://192.168.32.202:8773/services/Cloud

--daemonize=1

--dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge

--FAKE_subdomain=ec2

--ca_path=/var/lib/nova/CA --keys_path=/var/lib/nova/keys --networks_path=/var/lib/nova/networks --instances_path=/var/lib/nova/instances --images_path=/var/lib/nova/images --buckets_path=/var/lib/nova/buckets

--libvirt_type=kvm

--network_manager=nova.network.manager.FlatManager

--vlan_interface=eth0

--logdir=/var/log/nova --verbose --volume_group=ubuntu1 --fixed_range=10.0.0.0/8 --network_size=5000 --lock_path=/var/lib/nova/tmp --flat_interface=eth0

BTW, I succeeded in the same case when using Bexar before.