Description of problem: When importing an image as a template from Glance via the REST API, the template's name is ignored and a default one is generated. There are two URLs that can be used to import the image via the REST API: 1. .../api/storagedomains/<domain_id>/images/<image_id>/import 2. .../api/openstackimageproviders/<provider_id>/images/<image_id>/import The first option works, the second doesn't. Version-Release number of selected component (if applicable): 6e601c1586eccfd16b0416f57e1d71e79ef2098b How reproducible: 100% Steps to Reproduce: Using a URL of the form: ".../api/openstackimageproviders/<provider_id>/images/<image_id>/import" Send a post request: <action> <storage_domain id="<domain_id>"/> <cluster id="<cluster_id>"/> <import_as_template>true</import_as_template> <template><name>template_name</name></template> <disk><alias>alias</alias></disk> </action> Actual results: A new default template's name is generated, something that looks like "GlanceTemplate-<7_GUID_chars>". Expected results: The template's name should be "template_name".
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.
Setting target release to 4.0.0 as it's included in today's 4.0.0.4 build
verified: rhevm-4.0.2-0.2.rc1.el7ev.noarch