OpenStack Image Registry and Delivery Service (Glance)

Create bin/glance

Registered by Jay Pipes on 2010-12-20

Create a tool for interacting with a Glance API node and registry from the command line

Blueprint information

Status:
Complete
Approver:
Thierry Carrez
Priority:
High
Drafter:
Jay Pipes
Direction:
Approved
Assignee:
Jay Pipes
Definition:
Approved
Series goal:
Accepted for cactus
Implementation:
Implemented
Milestone target:
milestone icon cactus-2011-03-14
Started by
Jay Pipes on 2010-12-25
Completed by
Jay Pipes on 2011-03-09

Sprints

Whiteboard

(.glance-venv)jpipes@serialcoder:~/repos/glance/admin-tool$ ./bin/glance-admin --port=30002 --verbose add name="Some web image" is_public=true location="http://example.com/images/myimage.tar.gz"
Added new image with ID: 3
Returned the following metadata for the new image:
               container_format => ovf
                     created_at => 2011-02-24T02:41:02.414317
                        deleted => False
                     deleted_at => None
                    disk_format => raw
                             id => 3
                      is_public => True
                       location => http://example.com/images/myimage.tar.gz
                           name => Some web image
                           size => 0
                         status => active
                     updated_at => None
Completed in 0.0501 sec.
(.glance-venv)jpipes@serialcoder:~/repos/glance/admin-tool$ ./bin/glance-admin --port=30002 --verbose add name="Some local image" is_public=true < images.tgz
Added new image with ID: 4
Returned the following metadata for the new image:
               container_format => ovf
                     created_at => 2011-02-24T02:41:09.980515
                        deleted => False
                     deleted_at => None
                    disk_format => raw
                             id => 4
                      is_public => True
                       location => file:///tmp/images/4
                           name => Some local image
                           size => 58520278
                         status => active
                     updated_at => None
Completed in 0.5804 sec.
(.glance-venv)jpipes@serialcoder:~/repos/glance/admin-tool$ ./bin/glance-admin --port=30002 --verbose update 3 container_format=ami disk_format=ami
Completed in 0.0395 sec.
(.glance-venv)jpipes@serialcoder:~/repos/glance/admin-tool$ ./bin/glance-admin --port=30002 index
Found 2 public images...
ID Name Size
-------------------------------- ------------------------------ --------------
3 Some web image 0
4 Some local image 58520278
(.glance-venv)jpipes@serialcoder:~/repos/glance/admin-tool$ ./bin/glance-admin --port=30002 details
Found 2 public images...
================================================================================
URI: http://0.0.0.0/images/3
Id: 3
Public? Yes
Name: Some web image
Size: 0
Location: http://example.com/images/myimage.tar.gz
Disk format: ami
Container format: ami
================================================================================
URI: http://0.0.0.0/images/4
Id: 4
Public? Yes
Name: Some local image
Size: 58520278
Location: file:///tmp/images/4
Disk format: raw
Container format: ovf
================================================================================
(.glance-venv)jpipes@serialcoder:~/repos/glance/admin-tool$ ./bin/glance-admin --port=30002 show 3
URI: http://0.0.0.0/images/3
Id: 3
Public? Yes
Name: Some web image
Size: 0
Location: http://example.com/images/myimage.tar.gz
Disk format: ami
Container format: ami
(.glance-venv)jpipes@serialcoder:~/repos/glance/admin-tool$ ./bin/glance-admin --port=30002 --verbose clear
Deleting image 3 "Some web image" ... done
Deleting image 4 "Some local image" ... done
Completed in 0.0900 sec.

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.