Failed to upload image to Vmware vcenter backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Unassigned |
Bug Description
Failing to upload images to vmware vcenter backend on Glance Liberty.
Glance Liberty
python-
python-
python-
openstack-
Vmware vcenter 5.5u3 (VCSA)
Glance config
stores=
default_store = vsphere
vmware_
vmware_
vmware_
vmware_
vmware_
vmware_
vmware_
Error I get:
# glance --debug image-create --name test.vmdk --container-format bare --disk-format vmdk --file /root/cirros-
Request returned failure status 500.
+------
| Property | Value |
+------
| checksum | None |
| container_format | bare |
| created_at | 2017-01-
| disk_format | vmdk |
| id | 169ae026-
| min_disk | 0 |
| min_ram | 0 |
| name | test.vmdk |
| owner | f0f5b951090d497
| protected | False |
| size | None |
| status | queued |
| tags | [] |
| updated_at | 2017-01-
| virtual_size | None |
| visibility | private |
+------
Traceback (most recent call last):
File "/usr/lib/
args.
File "/usr/lib/
return func(gc, args)
File "/usr/lib/
do_
File "/usr/lib/
gc.
File "/usr/lib/
self.
File "/usr/lib/
return self.request(url, 'PUT', **kwargs)
File "/usr/lib/
return self._handle_
File "/usr/lib/
raise exc.from_
HTTPInternalSer
500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
Api.log
2017-01-17 12:50:40.754 12199 ERROR glance.common.wsgi File "/usr/lib/
2017-01-17 12:50:40.754 12199 ERROR glance.common.wsgi context=context)
2017-01-17 12:50:40.754 12199 ERROR glance.common.wsgi File "/usr/lib/
2017-01-17 12:50:40.754 12199 ERROR glance.common.wsgi return store_op_fun(store, *args, **kwargs)
2017-01-17 12:50:40.754 12199 ERROR glance.common.wsgi File "/usr/lib/
2017-01-17 12:50:40.754 12199 ERROR glance.common.wsgi raise exceptions.
2017-01-17 12:50:40.754 12199 ERROR glance.common.wsgi BackendException: Failed to upload content of image 169ae026-
01.
2017-01-17 12:50:40.754 12199 ERROR glance.common.wsgi The response body:
2017-01-17 12:50:40.754 12199 ERROR glance.common.wsgi None
2017-01-17 12:50:40.754 12199 ERROR glance.common.wsgi
Under vcenter I have a folder called "openstack_glance".
In the recent releases I noticed when I configure Nova/Cinder with vcenter they create a folder under vcenter root called Openstack under which a sub folder called: Project (f0f5b951090d49
Having nothing to lose I also created a sub folder here called openstack_glance.
Tested below two versions as well, same error on image upload.
vmware_
vmware_
Not ruling out possible config errors on my part either on Openstack or VMware.
I was able to upload images boot instance and created volumes with Glance (kilo) release on this same vmware backend.
While trying to figure this out.
I managed to install a Newton build with VMware vc6.
Image upload works.
These are config options for Newton swift,vmware
stores = file,http,
default_store = vsphere
vmware_server_host = x.y.z.w server_ username = xxxxxxxxxxxxxxx xxxxxx server_ password = xxxxxxxxxx api_retry_ count = 10 store_image_ dir = /openstack_glance task_poll_ interval = 5
vmware_
vmware_
vmware_datastores = DC1:Tigris01_ds1
vmware_insecure = True
vmware_
vmware_
vmware_
Versions: glance- 9.4.0-2. el7ost. noarch glance- 13.0.0- 1.el7ost. noarch glance- 13.0.0- 1.el7ost. noarch glance- store-0. 18.0-2. el7ost. noarch glanceclient- 2.5.0-1. el7ost. noarch
puppet-
openstack-
python-
python-
python-