[Bug 1657459] Re: WebOb>=1.2.3 requirement for Glance will lead to 0 bytes backing image files on OpenStack Newton, although the image file sent to the python client does not have 0 bytes
Gurol
1657459 at bugs.launchpad.net
Tue Jul 4 21:03:25 UTC 2017
Hello,
We started to experience this very problem under Ocata running on Ubuntu
17.0.4. At the time of original Ocata installation, all was working fine
but then along the way somehow WebOb release has been bumped to 1.7.2
and this problem started to happen.
As a quick-and-dirty workaround, if do the following:
$ pip install WebOb==1.6.0
$ service glance-registry restart
$ service glance-api restart
We can create images properly (i.e., with non-zero size). Note however
openstack CLI commands will then start failing as follows:
$ openstack image list
Failed to discover available identity versions when contacting http://controller:35357/v3. Attempting to parse version from URL.
Internal Server Error (HTTP 500)
So, an attempt to switch from WebOb 1.7.2 to 1.6.0 would fix one problem
but create another one.
If we want to stay w/ Ocata (which apparently contains glance 14.0.0),
what will be the proper steps to fix this problem w/o any side effects
similar to the one I tried to describe above.
Many thanks in advance.
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to glance in Ubuntu.
https://bugs.launchpad.net/bugs/1657459
Title:
WebOb>=1.2.3 requirement for Glance will lead to 0 bytes backing
image files on OpenStack Newton, although the image file sent to the
python client does not have 0 bytes
Status in Glance:
Fix Released
Status in glance package in Ubuntu:
Triaged
Bug description:
On CentOS 7 AIO Newton OpenStack deployed with packstack, the default
WebOb glance requirement was >= 1.2.3 and pip installed the 1.7.0
version.
When I created a glance image from the cli, using the filesystem
backend as default, with a raw file of 1GB, the glance image-create
command showed that a image was created, but with the size of 0 bytes.
After forcing with pip the WebOb==1.2.3 version, the issue was not
longer there.
I have tried with python 2.7 and 3.4 and to upload the image via
horizon or with different python-glance client versions => when WebOb
version was 1.7.0 the outcome was wrong, as I ended up with a 0 bytes
image in the backing store.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1657459/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list