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

Bug #760422 reported by guanxiaohua2k6
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Undecided
Unassigned

Bug Description

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.

Revision history for this message
Andrey Brindeyev (abrindeyev) wrote :
Revision history for this message
Andrey Brindeyev (abrindeyev) wrote :

My local storage in on same host

Revision history for this message
Thierry Carrez (ttx) wrote :

I'll let others confirm, but I think that's a consequence of the refactoring of nova-objectstore. For serious deployments you are supposed to be using Glance anyway.

Changed in nova:
status: New → Incomplete
Revision history for this message
Vish Ishaya (vishvananda) wrote :

I guess this is for the Cactus release, because the local image service does not exist in the current code. In cactus you can use the local image service by sharing the directory with all of the images to all of the compute hosts. The recommended solution, however is to use glance instead.

Thierry Carrez (ttx)
Changed in nova:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.