glance image-create --location doesn't fail with bad URLs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Won't Fix
|
Undecided
|
Unassigned | ||
OpenStack Dashboard (Horizon) |
Won't Fix
|
Low
|
Unassigned |
Bug Description
I ran the command below, then realized that the URL is bad, there's no server there. Instead of throwing an error, it blindly created another image of size ''. Didn't see anything in the recent commits for it, this is on Ubuntu 12.04.
python-
root@larry:~# glance image-create --name cirros --is-public true --container-format bare --disk-format qcow2 --location http://
+------
| Property | Value |
+------
| checksum | None |
| container_format | bare |
| created_at | 2013-12-17T19:20:57 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 93ca9d12-
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | cirros |
| owner | 9db5a2b06743410
| protected | False |
| size | 0 |
| status | active |
| updated_at | 2013-12-17T19:20:57 |
+------
root@larry:~# glance image-list
+------
| ID | Name | Disk Format | Container Format | Size | Status |
+------
| 93ca9d12-
+------
Changed in python-glanceclient: | |
assignee: | nobody → Victor Morales (electrocucaracha) |
Changed in horizon: | |
assignee: | nobody → Victor Morales (electrocucaracha) |
Changed in horizon: | |
assignee: | Victor Morales (electrocucaracha) → nobody |
status: | In Progress → Confirmed |
importance: | Undecided → Low |
Changed in horizon: | |
assignee: | nobody → valw (valw) |
Changed in horizon: | |
assignee: | valw (valw) → nobody |
Fix proposed to branch: master /review. openstack. org/64295
Review: https:/