Comment 2 for bug 1482709

Revision history for this message
Kairat Kushaev (kkushaev) wrote :

Ok, i could not reproduce the step where we created the image with:
glance image-create --name LINUX-64-2 --is-public True --disk-format iso --container-format bare --progress --copy-from http://<fuel_ip>:~/ubuntu-14.04.2-server-amd64.iso
The glance is responding with image status=queued and kills the image after that(because it can't request an image from url).
The glance logs shows the reason why the image killed:
2015-08-17 13:19:04.548 8969 ERROR glance.api.v1.images [req-c5ed90a5-c4c1-48e8-b4b2-8e21fc5ea9f0 85429ef7376840ceb4edfcafee859ed2 2fffbc217d5444c2aa9a89bc0749854c - - -] Copy from external source 'swift' failed for image: e42b73c1-3bce-44e1-baaa-c98c668f8c74
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images Traceback (most recent call last):
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 617, in _upload
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images dest=store)
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 469, in _get_from_store
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images image_data, image_size = src_store.get(loc, context=context)
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images File "/usr/lib/python2.7/dist-packages/glance_store/capabilities.py", line 226, in op_checker
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images return store_op_fun(store, *args, **kwargs)
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images File "/usr/lib/python2.7/dist-packages/glance_store/_drivers/http.py", line 129, in get
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images conn, resp, content_length = self._query(location, 'GET')
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images File "/usr/lib/python2.7/dist-packages/glance_store/_drivers/http.py", line 180, in _query
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images conn = conn_class(loc.netloc)
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images File "/usr/lib/python2.7/httplib.py", line 710, in __init__
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images self._set_hostport(host, port)
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images File "/usr/lib/python2.7/httplib.py", line 738, in _set_hostport
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images InvalidURL: nonnumeric port: '~'
2015-08-17 13:19:04.548 8969 TRACE glance.api.v1.images
Kyrylo, could you please provide more details about this case?

I am proceeding with analysis of the following:
glance image-create --name LINUX-64 --is-public True --disk-format iso --container-format bare --progress --location http://<fuel_ip>:~/ubuntu-14.04.2-server-amd64.iso