Is it possible to install nova-objectstore on a machine different with the one where nova-api is installed?

Asked by guanxiaohua2k6

I tried to install nova-objectstore on a different machine with the one where nova-api. But When I added images using the command "uec-publish-tarball", the error occurred.

Wed Apr 6 15:44:40 JST 2011: ====== extracting image ======
 kernel : ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz
 ramdisk: ttylinux-uec-amd64-12.1_2.6.35-22_1-initrd
 image : ttylinux-uec-amd64-12.1_2.6.35-22_1.img
 Wed Apr 6 15:44:40 JST 2011: ====== bundle/upload kernel ======
Traceback (most recent call last):
  File "/usr/bin/euca-upload-bundle", line 231, in <module>
    main()
  File "/usr/bin/euca-upload-bundle", line 214, in main
   bucket_instance = ensure_bucket(conn, bucket, canned_acl)
  File "/usr/bin/euca-upload-bundle", line 87, in ensure_bucket
    bucket_instance = connection.get_bucket(bucket)
  File "/usr/lib/pymodules/python2.6/boto/s3/connection.py", line 275, in get_bucket
    rs = bucket.get_all_keys(headers, maxkeys=0)
  File "/usr/lib/pymodules/python2.6/boto/s3/bucket.py", line 204, in get_all_keys
    headers=headers, query_args=s)
  File "/usr/lib/pymodules/python2.6/boto/s3/connection.py", line 342, in make_request
    data, host, auth_path, sender)
 File "/usr/lib/pymodules/python2.6/boto/connection.py", line 459, in make_request
   return self._mexe(method, path, data, headers, host, sender)
 File "/usr/lib/pymodules/python2.6/boto/connection.py", line 437, in _mexe
   raise e
socket.error: [Errno 111] Connection refused
failed to upload bundle to mybucket/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
failed to upload kernel

And I found the that the novarc created by nova-manage command was wrong. The value of S3_URL is the ip address of the local machine where the uec-publish-tarball was executed.

Here is my question. Is it possible to install nova-objectstore on a machine different with the one where nova-api is installed?

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
guanxiaohua2k6
Solved:
Last query:
Last reply:
Revision history for this message
Masanori Itoh (itohm) said :
#1

Hi,

Which version of nova are you using?

If you are working on pre-cactus packages, please use 'glance' instead of nova-objectstore to have a separate image service host from compute nodes.

As for the details, please see:

https://bugs.launchpad.net/nova/+bug/738371

Also, documentation of --image_service to be specified can be found below:

http://docs.openstack.org/openstack-compute/admin/content/ch05s08.html

But, the description has to be updated.
Now, we have to specify

  --image_service=nova.image.glance.GlanceImageService

to have a separate image service host.

Thanks,
Masanori

Revision history for this message
guanxiaohua2k6 (guanxiaohua2k6) said :
#2

I am Kan. Thank you, Itoh san.

The version I used is 2011.2~bzr942-0ubuntu0ppa1~maverick1.