Glance how it is used? publish and run images?

Asked by Maximiliano Caceres

I'm trying to upload, register and run my images using Glance from one PC to another in my network where he is OpenStack. I did the following:

usstest@usstest-virtual-machine:~$ sudo glance --host=192.168.1.208 --port=9292 add name="maverick test 2" location=file:///home/usstest/maverick-server-uec-amd64.tar.gz is_public=true

usstest@usstest-virtual-machine:~$ sudo glance --host=192.168.1.208 --port=9292 details
Found 2 public images...
================================================================================
URI: http://192.168.1.208/images/1
Id: 1
Public: Yes
Name: Ubuntu Maverick 10.10
Status: active
Size: 188216461
Location: file:///var/lib/glance/images/1
Disk format: None
Container format: None
Property 'type': raw
================================================================================
URI: http://192.168.1.208/images/7
Id: 7
Public: Yes
Name: maverick test 2
Status: active
Size: 0
Location: file:///home/usstest/maverick-server-uec-amd64.tar.gz
Disk format: raw
Container format: ovf
================================================================================

usstest@usstest-virtual-machine:~$ sudo glance --host=192.168.1.208 --port=9292 index
Found 2 public images...
ID Name Disk Format Container Format Size
---------------- ------------------------------ -------------------- -------------------- --------------
1 Ubuntu Maverick 10.10 None None 188216461
7 maverick test 2 raw ovf 0

You see, up here all goes well, I publish and register my images. But now I want to run to make sure that work and do not know how.
Now as start my images?
No instructions for this found in the documentation or examples.

another question: as I can see listed my private images?

Question information

Language:
English Edit question
Status:
Answered
For:
Glance Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jay Pipes (jaypipes) said :
#1

Hi Maximiliano!

OK, I will answer your second question first :)

To show your "private" images, you do:

glance show <ID>

where you know the ID of your private image. Currently, there is no way to query Glance for a list of private images. This will be changing in Diablo release series as we will gain authentication through the Keystone project, which will give us an authentication "tenant" that will define what "private" images actually are.

For your first question, you need to use whatever tools come with whichever API you are using on the compute endpoints. For EC2 API, you would use the euca-bundle-image/uec-publish-tarball workflow. For the OpenStack Compute API, you would use the python-novaclient tools to do this.

Documentation for each of those workflows is available here:

http://open.eucalyptus.com/wiki/Euca2oolsImageManagement
https://github.com/rackspace/python-novaclient/blob/master/README.rst

Note that the python-novaclient documentation isn't fully completed yet...

The thing to remember is that currently, Glance serves only as a simple registration and delivery service for disk images. It does not do: bundling, inspection, conversion, or building of images.

Cheers,
jay

Can you help with this problem?

Provide an answer of your own, or ask Maximiliano Caceres for more information if necessary.

To post a message you must log in.