Bug 1200075
| Summary: | Broken Pipe in vsphere store due to inactive session | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Jack Waterworth <jwaterwo> | |
| Component: | python-glance-store | Assignee: | Flavio Percoco <fpercoco> | |
| Status: | CLOSED ERRATA | QA Contact: | Jaroslav Henner <jhenner> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | high | |||
| Version: | 6.0 (Juno) | CC: | apevec, dmaley, ebarrera, eglynn, fpercoco, hguemar, jhenner, lhh, mlopes, nyechiel, sclewis, scohen, sgordon, sgotliv, yeylon | |
| Target Milestone: | z5 | Keywords: | ZStream | |
| Target Release: | 6.0 (Juno) | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | python-glance-store-0.1.10-4.el7ost | Doc Type: | Bug Fix | |
| Doc Text: |
Prior to this update, Image Service's (glance) VMware vSphere store failed to handle 401 errors correctly. These errors were raised after the vSphere session had expired, causing long-standing operations, such as snapshots, to fail.
This update resolves the issue, allowing these operations to succeed.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1256371 (view as bug list) | Environment: | ||
| Last Closed: | 2015-08-24 14:48:35 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1249164, 1256371 | |||
|
Description
Jack Waterworth
2015-03-09 16:01:17 UTC
It appears this bug has been reported upstream and fixed for the kilo release found here https://bugs.launchpad.net/glance/+bug/1402354 I have got these errors so far when checking this on RHOS 6 python-oslo-vmware-0.6.0-1.el7ost.noarch python-oslo-config-1.4.0-1.el7ost.noarch python-oslo-vmware-0.6.0-1.el7ost.noarch 2015-08-18 08:10:48.693 25559 TRACE stevedore.extension File "/usr/lib/python2.7/site-packages/glance_store/_drivers/vmware_datastore.py", line 27, in <module> 2015-08-18 08:10:48.693 25559 TRACE stevedore.extension from oslo_utils import excutils 2015-08-18 08:10:48.693 25559 TRACE stevedore.extension ImportError: No module named oslo_utils 2015-08-18 08:09:00.087 25308 TRACE glance File "/usr/lib/python2.7/site-packages/stevedore/driver.py", line 50, in _default_on_load_failure 2015-08-18 08:09:00.087 25308 TRACE glance raise err 2015-08-18 08:09:00.087 25308 TRACE glance ImportError: No module named oslo_config changing the imports to the oslo.config and oslo.utils seemed to help Apart from that I wrote above, when trying to upload the image, I am getting 2015-08-18 08:23:01.265 27651 ERROR glance.api.v1.upload_utils [fb2db524-94b9-4ae5-befe-33cbf53193ef 24e9dcd37953452ea7429c1469609a40 6ee41f516a284148941732b3a664fed8 - - -] Failed to upload image 9e173d95-dbe2-4eca-bc51-f2505801fb0a 2015-08-18 08:23:01.265 27651 TRACE glance.api.v1.upload_utils Traceback (most recent call last): 2015-08-18 08:23:01.265 27651 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/site-packages/glance/api/v1/upload_utils.py", line 113, in upload_data_to_store 2015-08-18 08:23:01.265 27651 TRACE glance.api.v1.upload_utils context=req.context) 2015-08-18 08:23:01.265 27651 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/site-packages/glance_store/backend.py", line 331, in store_add_to_backend 2015-08-18 08:23:01.265 27651 TRACE glance.api.v1.upload_utils context=context) 2015-08-18 08:23:01.265 27651 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/site-packages/glance_store/_drivers/vmware_datastore.py", line 338, in add 2015-08-18 08:23:01.265 27651 TRACE glance.api.v1.upload_utils cookie = self._build_vim_cookie_header(True) 2015-08-18 08:23:01.265 27651 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/site-packages/glance_store/_drivers/vmware_datastore.py", line 299, in _build_vim_cookie_header 2015-08-18 08:23:01.265 27651 TRACE glance.api.v1.upload_utils if verify_session and not self.session.is_current_session_active(): 2015-08-18 08:23:01.265 27651 TRACE glance.api.v1.upload_utils AttributeError: 'VMwareAPISession' object has no attribute 'is_current_session_active' 2015-08-18 08:23:01.265 27651 TRACE glance.api.v1.upload_utils 2015-08-18 08:23:01.338 27651 INFO glance.wsgi.server [fb2db524-94b9-4ae5-befe-33cbf53193ef 24e9dcd37953452ea7429c1469609a40 6ee41f516a284148941732b3a664fed8 - - -] 10.34.69.130 - - [18/Aug/2015 08:23:01] "POST /v1/images HTTP/1.1" 500 431 0.546157 Adding underscore ( _is_current_sessi...) seems to help. It seems image can be uploaded fine after doing the two manual fixes above, but BZ#1361197 prevents us to use it. In the Juno release, oslo packages used to use python namespaces. Hence the need for `.` If backported to Juno, these imports need to be fixed. I'll propose a patch for the `_` issue upstream. Actually, the `_` issue is another backport specific change. In Juno, that method used to be private. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1659.html The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |