NotFound: 404 Not Found

Asked by R. Krishna Kumar

When I tried to launch an instances, it failed saying "failed to spawn test". On going through nova-compute.log, this is the message:

2011-08-30 12:42:54,917 ERROR nova.compute.manager [V1XYS3H11PBED7ZKQ7EW arun openstack] Instance '19' 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.7/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.7/nova/virt/vmwareapi_conn.py", line 129, in spawn
(nova.compute.manager): TRACE: self._vmops.spawn(instance)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/vmwareapi/vmops.py", line 288, in spawn
(nova.compute.manager): TRACE: _fetch_image_on_esx_datastore()
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/vmwareapi/vmops.py", line 283, in _fetch_image_on_esx_datastore
(nova.compute.manager): TRACE: file_path=flat_uploaded_vmdk_name)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/vmwareapi/vmware_images.py", line 99, in fetch_image
(nova.compute.manager): TRACE: return func(image, instance, **kwargs)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/vmwareapi/vmware_images.py", line 121, in _get_glance_image
(nova.compute.manager): TRACE: metadata, read_iter = glance_client.get_image(image)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/glance/client.py", line 102, in get_image
(nova.compute.manager): TRACE: res = self.do_request("GET", "/images/%s" % image_id)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/glance/client.py", line 58, in do_request
(nova.compute.manager): TRACE: headers, params)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/glance/common/client.py", line 152, in do_request
(nova.compute.manager): TRACE: raise exception.NotFound(res.read())
(nova.compute.manager): TRACE: NotFound: 404 Not Found
(nova.compute.manager): TRACE:
(nova.compute.manager): TRACE: The resource could not be found.
(nova.compute.manager): TRACE:
(nova.compute.manager): TRACE: Image 1 is not active
(nova.compute.manager): TRACE:

We are using vmware as hypervisor.

/etc/nova/nova.conf:
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--verbose
--s3_host=127.0.0.1
--rabbit_host=127.0.0.1
--cc_host=127.0.0.1
--ec2_host=127.0.0.1
--ec2_url=http://127.0.0.1:8773/services/Cloud
--fixed_range=192.168.1.0/30
--network_size=10
--FAKE_subdomain=ec2
--routing_source_ip=127.0.0.1
--verbose
--sql_connection=mysql://root:wipro@123@127.0.0.1/nova
--network_manager=nova.network.manager.FlatManager
--connection_type=vmwareapi
--vmwareapi_host_ip=10.207.228.71
--vmwareapi_host_username=root
--vmwareapi_host_password=Openstack@123
--vmwareapi_wsdl_loc=http://127.0.0.1:8080/wsdl/vim25/vimService.wsdl
--glance_host=10.207.230.121
--image_service=nova.image.glance.GlanceImageService

euca-describe-images shows:
IMAGE ami-00000001 wpbucket/ArunCOS-flat.vmdk.manifest.xml available public i386 machine

euca-describe-instances:
RESERVATION r-uf6up2ts openstack default
INSTANCE i-00000013 ami-00000001 192.168.1.2 192.168.1.2 shutdown None (openstack, arun) 0 m1.small 2011-08-30T07:12:28Z nova

Please let me know what have I done wrong and how to proceed.

Thanks,
R. Krishna Kumar

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
R. Krishna Kumar
Solved:
Last query:
Last reply:
Revision history for this message
Brian Waldon (bcwaldon) said :
#1

We don't support the 'glance_host' flag anymore. Reconfigure your nodes to use the glance_api_servers flag. For example:

--glance_api_servers=10.207.230.121:9292

Revision history for this message
R. Krishna Kumar (krishna-kumar2) said :
#2

Thanks for the response. We changed the nova.conf file as mentioned but the issue is still there.

/etc/nova/nova.conf:
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--verbose
--s3_host=127.0.0.1
--rabbit_host=127.0.0.1
--cc_host=127.0.0.1
--ec2_host=127.0.0.1
--ec2_url=http://127.0.0.1:8773/services/Cloud
--fixed_range=192.168.1.0/30
--network_size=10
--FAKE_subdomain=ec2
--routing_source_ip=127.0.0.1
--verbose
--sql_connection=mysql://root:wipro@123@127.0.0.1/nova
--network_manager=nova.network.manager.FlatManager
--connection_type=vmwareapi
--vmwareapi_host_ip=10.207.228.71
--vmwareapi_host_username=root
--vmwareapi_host_password=Openstack@123
--vmwareapi_wsdl_loc=http://127.0.0.1:8080/wsdl/vim25/vimService.wsdl
--glance_api_servers=10.207.230.121:9292
--image_service=nova.image.glance.GlanceImageService

root@arun:~# ps -e | grep nova
 1193 ? 00:00:00 nova-objectstor
 1325 ? 00:00:00 nova-api
 1329 ? 00:00:07 nova-network
 1331 ? 00:00:07 nova-scheduler
 2605 ? 00:00:32 nova-compute

root@arun:~# ps -e | grep glance
 1330 ? 00:00:00 glance-api
 1332 ? 00:00:00 glance-registry

root@arun:~# euca-describe-images
IMAGE ami-00000001 wpbucket/ArunCOS-flat.vmdk.manifest.xml available public i386 machine

The /var/log/nova/nova-compute.log:
2011-09-02 09:52:38,677 DEBUG suds.resolver [-] push: (<suds.resolver.Frame instance at 0xee02fec>)
<suds.resolver.Frame instance at 0xed4492c>
<suds.resolver.Frame instance at 0xed4a0ec>
<suds.resolver.Frame instance at 0xee02fec> from (pid=2605) push /usr/lib/pymodules/python2.7/suds/resolver.py:258
2011-09-02 09:52:38,678 DEBUG suds.resolver [-] pop: (<suds.resolver.Frame instance at 0xee02fec>)
<suds.resolver.Frame instance at 0xed4492c>
<suds.resolver.Frame instance at 0xed4a0ec> from (pid=2605) pop /usr/lib/pymodules/python2.7/suds/resolver.py:280
2011-09-02 09:52:38,678 DEBUG suds.resolver [-] pop: (<suds.resolver.Frame instance at 0xed4a0ec>)
<suds.resolver.Frame instance at 0xed4492c> from (pid=2605) pop /usr/lib/pymodules/python2.7/suds/resolver.py:280
2011-09-02 09:52:38,678 DEBUG suds.resolver [-] pop: (<suds.resolver.Frame instance at 0xed4492c>)
 from (pid=2605) pop /usr/lib/pymodules/python2.7/suds/resolver.py:280
2011-09-02 09:52:38,678 DEBUG suds.metrics [-] method 'RetrieveProperties' invoked: 15 (ms) from (pid=2605) invoke /usr/lib/pymodules/python2.7/suds/client.py:607
2011-09-02 09:52:38,678 DEBUG nova.virt.vmwareapi.vmware_images [-] Downloading image 1 from glance image server from (pid=2605) _get_glance_image /usr/lib/pymodules/python2.7/nova/virt/vmwareapi/vmware_images.py:119
2011-09-02 09:52:38,686 ERROR nova.compute.manager [BD4VOB74SLL8IE3O9I4V arun openstack] Instance '22' 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.7/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.7/nova/virt/vmwareapi_conn.py", line 129, in spawn
(nova.compute.manager): TRACE: self._vmops.spawn(instance)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/vmwareapi/vmops.py", line 288, in spawn
(nova.compute.manager): TRACE: _fetch_image_on_esx_datastore()
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/vmwareapi/vmops.py", line 283, in _fetch_image_on_esx_datastore
(nova.compute.manager): TRACE: file_path=flat_uploaded_vmdk_name)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/vmwareapi/vmware_images.py", line 99, in fetch_image
(nova.compute.manager): TRACE: return func(image, instance, **kwargs)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/vmwareapi/vmware_images.py", line 121, in _get_glance_image
(nova.compute.manager): TRACE: metadata, read_iter = glance_client.get_image(image)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/glance/client.py", line 102, in get_image
(nova.compute.manager): TRACE: res = self.do_request("GET", "/images/%s" % image_id)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/glance/client.py", line 58, in do_request
(nova.compute.manager): TRACE: headers, params)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/glance/common/client.py", line 152, in do_request
(nova.compute.manager): TRACE: raise exception.NotFound(res.read())
(nova.compute.manager): TRACE: NotFound: 404 Not Found
(nova.compute.manager): TRACE:
(nova.compute.manager): TRACE: The resource could not be found.
(nova.compute.manager): TRACE:
(nova.compute.manager): TRACE: Image 1 is not active
(nova.compute.manager): TRACE:
2011-09-02 09:52:38,775 DEBUG suds.resolver [-] searching schema for (ns0:SelectionSpec) from (pid=2605) root /usr/lib/pymodules/python2.7/suds/resolver.py:128
2011-09-02 09:52:38,776 DEBUG suds.xsd.query [-] ('SelectionSpec', urn:vim25), found as: <Complex:0xc3ef2cc name="SelectionSpec" /> from (pid=2605) result /usr/lib/pymodules/python2.7/suds/xsd/query.py:85
2011-09-02 09:52:38,776 DEBUG suds.resolver [-] found (ns0:SelectionSpec) as (<Complex:0xc3ef2cc name="SelectionSpec" />) from (pid=2605) root /usr/lib/pymodules/python2.7/suds/resolver.py:136
2011-09-02 09:52:38,776 DEBUG suds.metrics [-] ns0:SelectionSpec created: 0 (ms) from (pid=2605) create /usr/lib/pymodules/python2.7/suds/client.py:246
2011-09-02 09:52:38,776 DEBUG suds.resolver [-] searching schema for (ns0:TraversalSpec) from (pid=2605) root /usr/lib/pymodules/python2.7/suds/resolver.py:128
2011-09-02 09:52:38,776 DEBUG suds.xsd.query [-] ('TraversalSpec', urn:vim25), found as: <Complex:0xc73b62c name="TraversalSpec" /> from (pid=2605) result /usr/lib/pymodules/python2.7/suds/xsd/query.py:85
2011-09-02 09:52:38,777 DEBUG suds.resolver [-] found (ns0:TraversalSpec) as (<Complex:0xc73b62c name="TraversalSpec" />) from (pid=2605) root /usr/lib/pymodules/python2.7/suds/resolver.py:136
2011-09-02 09:52:38,777 DEBUG suds.metrics [-] ns0:TraversalSpec created: 0 (ms) from (pid=2605) create /usr/lib/pymodules/python2.7/suds/client.py:246
2011-09-02 09:52:38,777 DEBUG suds.resolver [-] searching schema for (ns0:TraversalSpec) from (pid=2605) root /usr/lib/pymodules/python2.7/suds/resolver.py:128
2011-09-02 09:52:38,777 DEBUG suds.xsd.query [-] ('TraversalSpec', urn:vim25), found as: <Complex:0xc73b62c name="TraversalSpec" /> from (pid=2605) result /usr/lib/pymodules/python2.7/suds/xsd/query.py:85
2011-09-02 09:52:38,778 DEBUG suds.resolver [-] found (ns0:TraversalSpec) as (<Complex:0xc73b62c name="TraversalSpec" />) from (pid=2605) root /usr/lib/pymodules/python2.7/suds/resolver.py:136
2011-09-02 09:52:38,778 DEBUG suds.metrics [-] ns0:TraversalSpec created: 0 (ms) from (pid=2605) create /usr/lib/pymodules/python2.7/suds/client.py:246
2011-09-02 09:52:38,778 DEBUG suds.resolver [-] searching schema for (ns0:TraversalSpec) from (pid=2605) root /usr/lib/pymodules/python2.7/suds/resolver.py:128
2011-09-02 09:52:38,778 DEBUG suds.xsd.query [-] ('TraversalSpec', urn:vim25), found as: <Complex:0xc73b62c name="TraversalSpec" /> from (pid=2605) result /usr/lib/pymodules/python2.7/suds/xsd/query.py:85

Please help.

Thanks

Revision history for this message
R. Krishna Kumar (krishna-kumar2) said :
#3

This problem is resolved. It had to do with glance installation. There was a problem here. So uninstalled glance. To install glance use the command:
sudo apt-get install glance

This installs glance properly.

Thanks for the help.