It's possible to specify instance_info['image_source'] to be a value
like 'glance://uuid'. When using AgentDeploy, image_source is passed
to IPA in image_info dictionary in 'id' field without modification,
and IPA tries to download image to /tmp/{id} location. Deployment
fails as /tmp/glance://uuid is invalid location.
In this change image_source is split to ensure that uuid will be used
to name the file.
Reviewed: https:/ /review. openstack. org/139988 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=5b05cab7a64 8bb4bb9363ba45b ff3ce8292ca5b4
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5b05cab7a648bb4 bb9363ba45bff3c e8292ca5b4
Author: Vladyslav Drok <email address hidden>
Date: Mon Dec 8 14:30:09 2014 +0200
Fix image_info passed to IPA for image download
It's possible to specify instance_ info['image_ source' ] to be a value
like 'glance://uuid'. When using AgentDeploy, image_source is passed
to IPA in image_info dictionary in 'id' field without modification,
and IPA tries to download image to /tmp/{id} location. Deployment
fails as /tmp/glance://uuid is invalid location.
In this change image_source is split to ensure that uuid will be used
to name the file.
Closes-bug: #1400156 67d828bc3b3fecc 94e514a4526
Change-Id: Id3658d2a32c878