Zun unable to download the glance image if it have : in name, i.,e image:v1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zun |
In Progress
|
Medium
|
cooldharma06 |
Bug Description
Zun unable to download the glance image if image_name have : (colon) character.
# openstack image list
+------
| ID | Name | Status |
+------
| 22f25ab3-
| dbf85891-
| b95c79b8-
| 304def14-
| fa0a001b-
+------
# zun create --name "cir-2" --image-driver glance cirros:latest --debug
ERROR: Image cirros:latest could not be found. (HTTP 404) (Request-ID: req-a1389cb6-
Note: Without image-driver (i.e., with docker) it's working fine.
Need to be fix.
Changed in zun: | |
assignee: | nobody → cooldharma06 (cooldharma06) |
Changed in zun: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Hi hongbin,
Suggestion needed for the above issue.
/opt/stack/ zun/zun/ image/driver. py : 118 image(context, image_name, image_driver, exact_match): name(image_ name)
search_
[..]
repo, tag = parse_image_
[..]
Using string.split(:), repo and tag got retrieved. It's making issue when glance_name having (:) character.
i am thinking like we will add one more optional parameter with glance image driver for zun create,
--glance-image-tag (tagname), so that we can resolve the above issue.
example:
$ docker save cirros | openstack image create --disk-format raw --container-format docker cirros --tag v1
$ zun create --name "cir1" --image-driver glance <imagename> --glance-image-tag <tag>
Also using this we can manage tags easily.
If you have any other suggestion means kindly let me know. Having timezone issue so i am unable to communicate over IRC.
thanks in advance.. :)