glance location-add vi://vsphere/dc/vm/folder/template does not working

asked 2020-04-10 06:43:19 -0500

i am unable to import a vm template from vsphere ( already integrated with openstack ) with glance location-add command.

created an empty image glance image-create --name TestTemplate1 --disk-format vmdk --container-format bare

when i try to add location, it fails. [root@openstackdev glance(keystone_admin)]# glance location-add 8272ed7c-a784-46ce-9e85-c9b9141e773c --url vi://test.com/dc/vm/Templates/centos7-template-jan-2020 HTTP 400 Bad Request: Invalid location [root@openstackdev glance(keystone_admin)]#

This template does exist in the exact path mentioned above..

any ideas where i should start looking ?

edit retag flag offensive close merge delete