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
((((
We need to apply patch from https:/ /fedorahosted. org/suds/ ticket/ 376#comment: 5 to upsteram package python-suds.