Re: [openstack-dev] How to create a image using http img file

2016-08-02 Thread Fei Long Wang
As the error said, you need to see the disk_format and container_format. I haven't digged the code, but I think you should try to set the container_format and disk_format when you create the image like this: image = self.glance.images.create(name="myNewImage",

[openstack-dev] How to create a image using http img file

2016-08-02 Thread kristen
refer to: glance client Python API v2 http://docs.openstack.org/developer/python-glanceclient/ref/v2/images.html add_location(image_id, url, metadata) Add a new location entry to an image’s list of locations. It is an error to add a URL that is already present in the list of locations.