NotFound: 404 Not Found

asked 2011-08-30 09:37:01 -0500

krishna-kumar2 gravatar image

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 ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2011-08-30 21:19:54 -0500

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

edit flag offensive delete link more
0

answered 2011-09-02 04:38:20 -0500

krishna-kumar2 gravatar image

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 ... (more)

edit flag offensive delete link more
0

answered 2011-09-06 05:28:16 -0500

krishna-kumar2 gravatar image

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.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-08-30 09:37:01 -0500

Seen: 180 times

Last updated: Sep 06 '11