"glance image-create" creates an empty image with no additional args
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Opinion
|
Undecided
|
Wlodzimierz Borkowski |
Bug Description
Running "glance image-create" with no additional arguments creates an empty image.
$ glance image-create
+------
| Property | Value |
+------
| checksum | None |
| container_format | None |
| created_at | 2013-02-27T15:29:05 |
| deleted | False |
| deleted_at | None |
| disk_format | None |
| id | e83d145a-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | None |
| owner | c2d6791a209243c
| protected | False |
| size | 0 |
| status | queued |
| updated_at | 2013-02-27T15:29:05 |
+------
I found this behavior unexpected. I recommend that instead it should generate something like the following error message:
usage: glance [--version] [-d] [-v] [-k] [--cert-file CERT_FILE]
...
error: <some meaningful error message here>
Try 'glance help image-create' for more information.
Version: 0.8.0 (installed from PyPi).
description: | updated |
Changed in python-glanceclient: | |
assignee: | nobody → Wlodzimierz Borkowski (woodbor) |
So the problem is that 'glance image-create' creates a valid image record that can be updated further. None of the values are actually required on creation. Are you suggesting that we require at least one attribute be passed in an image-create call? What about the people who depend on this behavior to create a blank image record to use later?