Service glance-api not starting when deploy HA and Glance backend is vCenter

Bug #1376683 reported by Stepan Rogov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Sergey Otpuschennikov

Bug Description

When i tried to implement blueprint https://blueprints.launchpad.net/fuel/+spec/vsphere-glance-backend, I found the following problem.

In HA deployment service glance-api not starting with error:
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api Traceback (most recent call last):
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/oslo/vmware/api.py", line 85, in _func
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api result = f(*args, **kwargs)
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/oslo/vmware/api.py", line 193, in _create_session
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api session_manager = self.vim.service_content.sessionManager
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/oslo/vmware/api.py", line 174, in vim
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api wsdl_loc=self._vim_wsdl_loc)
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/oslo/vmware/vim.py", line 85, in __init__
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api plugins=[VimMessagePlugin()])
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/suds/client.py", line 109, in __init__
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api options.cache = ObjectCache(days=1)
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/suds/cache.py", line 145, in __init__
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api self.checkversion()
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/suds/cache.py", line 278, in checkversion
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api self.clear()
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/suds/cache.py", line 246, in clear
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api for fn in os.listdir(self.location):
2014-10-01 12:36:00.700 12591 TRACE oslo.vmware.api OSError: [Errno 13] Permission denied: '/tmp/suds'

This is due to that 2 services under various users(glance and nova) using the module pyhton-oslo-vmware, which in turn uses the suds. But there is an old package suds bug because of which is created by default only one directory(/tmp/suds) for caches. https://fedorahosted.org/suds/ticket/376
And in module pyhton-oslo-vmware is not specified that it is necessary to create a separate directory for the cache.

If we are using cache parametr when constructing a suds.client.Client,
it still not working:
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api Traceback (most recent call last):
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/oslo/vmware/api.py", line 85, in _func
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api result = f(*args, **kwargs)
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/oslo/vmware/api.py", line 193, in _create_session
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api session_manager = self.vim.service_content.sessionManager
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/oslo/vmware/api.py", line 174, in vim
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api wsdl_loc=self._vim_wsdl_loc)
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/oslo/vmware/vim.py", line 89, in __init__
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api cache=cache)
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/suds/client.py", line 109, in __init__
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api options.cache = ObjectCache(days=1)
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/suds/cache.py", line 145, in __init__
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api self.checkversion()
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/suds/cache.py", line 279, in checkversion
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api f = self.open(path, 'w')
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api File "/usr/lib/python2.6/site-packages/suds/cache.py", line 266, in open
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api return open(fn, *args)
2014-10-02 12:25:52.236 510 TRACE oslo.vmware.api IOError: [Errno 13] Permission denied: '/tmp/suds/version'

Because there is a another bug https://fedorahosted.org/suds/ticket/343
((((

Stepan Rogov (srogov)
Changed in fuel:
assignee: nobody → Stepan Rogov (srogov)
description: updated
description: updated
Stepan Rogov (srogov)
tags: added: oslo
Changed in fuel:
importance: Undecided → High
milestone: none → 6.0
Stepan Rogov (srogov)
description: updated
tags: added: suds
Revision history for this message
Stepan Rogov (srogov) wrote :

We need to apply patch from https://fedorahosted.org/suds/ticket/376#comment:5 to upsteram package python-suds.

Revision history for this message
Stepan Rogov (srogov) wrote :
Revision history for this message
Stepan Rogov (srogov) wrote :

New right patch

Stepan Rogov (srogov)
description: updated
Revision history for this message
Stepan Rogov (srogov) wrote :

This is true for Centos in Ubuntu patch is already there.

Changed in fuel:
assignee: Stepan Rogov (srogov) → Sergey Otpuschennikov (sotpuschennikov)
Revision history for this message
OSCI Robot (oscirobot) wrote :

Package python-suds has been built from changeset: http://gerrit.mirantis.com/29532
RPM Repository URL: http:///osci-obs.vm.mirantis.net:82/centos-fuel-6.0-stable-29532/centos

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package python-suds has been built from changeset: http://gerrit.mirantis.com/29532
RPM Repository URL: http:///osci-obs.vm.mirantis.net:82/centos-fuel-6.0-stable/centos

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package python-suds has been built from changeset: http://gerrit.mirantis.com/29580
RPM Repository URL: http:///osci-obs.vm.mirantis.net:82/centos-fuel-master-29580/centos

Changed in fuel:
status: New → In Progress
Revision history for this message
OSCI Robot (oscirobot) wrote :

Package python-suds has been built from changeset: http://gerrit.mirantis.com/29580
RPM Repository URL: http:///osci-obs.vm.mirantis.net:82/centos-fuel-master/centos

Stepan Rogov (srogov)
Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
okosse (okosse) wrote :

I checked it on fuel-6.0-56-2014-12-18_01-32-01.iso

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.