Cirros Image creation failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Low
|
Jimmy McCrory |
Bug Description
Sometimes the cirros image fails to upload to glance. Its not clear whether this is a problem with glance, the backend glance is using, or the server from which the image is being pulled. Also this task is not retried.
Example failure:
=======
**15:48:22** TASK: [os_tempest | Ensure cirros image] *******
**15:48:22** failed: [jrpcaio-
**15:48:22** OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
**15:48:22** debug1: Reading configuration data /etc/ssh/ssh_config
**15:48:22** debug1: /etc/ssh/ssh_config line 19: Applying options for *
**15:48:22** debug1: auto-mux: Trying existing master
**15:48:22** debug1: mux_client_
**15:48:22** Traceback (most recent call last):
**15:48:22** File "<stdin>", line 1845, in <module>
**15:48:22** File "<stdin>", line 229, in main
**15:48:22** File "<stdin>", line 149, in route
**15:48:22** File "<stdin>", line 202, in create_image
**15:48:22** File "/usr/local/
**15:48:22** data=image_data)
**15:48:22** File "/usr/local/
**15:48:22** return self._request(
**15:48:22** File "/usr/local/
**15:48:22** raise exc.from_
**15:48:22** glanceclient.
=======
In order to pin point the problems, I propose that we split the cirros image creation task into two tasks:
1) Download the cirros image from a public repo
2) Upload the image to glance
Changed in openstack-ansible: | |
assignee: | nobody → Hugh Saunders (hughsaunders) |
status: | New → In Progress |
Changed in openstack-ansible: | |
assignee: | Hugh Saunders (hughsaunders) → nobody |
status: | In Progress → Triaged |
importance: | Undecided → Low |
Changed in openstack-ansible: | |
assignee: | nobody → Jimmy McCrory (jimmy-mccrory) |
status: | Triaged → In Progress |
This isn't as straightforward as I'd thought as the OSA glance library doesn't support uploading a local file, and adding that functionality is not made easier by the python glance client api.