Revision history [back]

click to hide/show revision 1
initial version

[openstack-dev] [Vitrage] Unable to fetch the Vitrage Topology service.

Hi everybody,

I installed Vitrage using Devstack (OpenStack Newton Release from Stable branch) on fresh Ubuntu 16.04 installation. Installation process completed successfully without any errors. However, when I try to access Vitrage from Horizon dashboard, I get following error messages.

In Topology and Entity Graph tab, "Unable to fetch the Vitrage Topology service."

This is the log from vitrage-graph:

2017-03-06 22:13:50.777 29518 ERROR vitrage.datasources.driver_base
2017-03-06 22:13:53.115 29517 DEBUG vitrage.datasources.services [-] start get changes _get_changes /opt/stack/vitrage/vitrage/datasources/services.py:117
2017-03-06 22:13:53.116 29517 DEBUG vitrage.datasources.services [-] end get changes _get_changes /opt/stack/vitrage/vitrage/datasources/services.py:124
2017-03-06 22:14:07.921 29487 DEBUG vitrage.entity_graph.consistency.consistency_enforcer [-] Consistency Periodic Process - Started periodic_process /opt/stack/vitrage/vitrage/entity_graph/consistency/consistency_enforcer.py:78
2017-03-06 22:14:07.921 29487 DEBUG vitrage.graph.query [-] create_predicate::((item.get('is_deleted')== True) and (item.get('sample_timestamp')< '2017-03-06 13:13:07.921836+00:00')) create_predicate /opt/stack/vitrage/vitrage/graph/query.py:69
2017-03-06 22:14:07.922 29487 DEBUG vitrage.entity_graph.consistency.consistency_enforcer [-] Found 0 vertices to be deleted by consistency service: [] periodic_process /opt/stack/vitrage/vitrage/entity_graph/consistency/consistency_enforcer.py:83
2017-03-06 22:14:07.922 29487 DEBUG vitrage.graph.query [-] create_predicate::((item.get('type')!= 'vitrage') and (item.get('sample_timestamp')< '2017-03-06 12:54:07.922673+00:00') and (item.get('is_deleted')== False)) create_predicate /opt/stack/vitrage/vitrage/graph/query.py:69
2017-03-06 22:14:07.923 29487 DEBUG vitrage.entity_graph.consistency.consistency_enforcer [-] Found 0 vertices to be marked as deleted by consistency service: set([]) periodic_process /opt/stack/vitrage/vitrage/entity_graph/consistency/consistency_enforcer.py:91
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base [-] Exception: ERROR: You are not authorized to use global_index.
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base Traceback (most recent call last):
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base   File "/opt/stack/vitrage/vitrage/datasources/rescheduler.py", line 173, in run
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base     self.func(*self.args)
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base   File "/opt/stack/vitrage/vitrage/datasources/services.py", line 73, in _entities_to_queue
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base     for entity in driver.get_all(datasource_action):
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base   File "/opt/stack/vitrage/vitrage/datasources/heat/stack/driver.py", line 106, in get_all
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base     stacks_list = self._make_stacks_list(stacks)
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base   File "/opt/stack/vitrage/vitrage/datasources/heat/stack/driver.py", line 90, in _make_stacks_list
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base     return [stack.__dict__ for stack in stacks]
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base   File "/usr/local/lib/python2.7/dist-packages/heatclient/v1/stacks.py", line 137, in paginate
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base     stacks = self._list(url, 'stacks')
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base   File "/usr/local/lib/python2.7/dist-packages/heatclient/openstack/common/apiclient/base.py", line 135, in _list
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base     body = self.client.get(url).json()
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base   File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 187, in get
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base     return self.request(url, 'GET', **kwargs)
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base   File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 318, in request
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base     raise exc.from_response(resp)
2017-03-06 22:14:10.891 29518 ERROR vitrage.datasources.driver_base HTTPForbidden: ERROR: You are not authorized to use global_index.

This is the log from horizon:

2017-03-02 14:39:49.144096 Traceback (most recent call last):
2017-03-02 14:39:49.144103   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/rest/utils.py", line 126, in _wrapped
2017-03-02 14:39:49.144110     data = function(self, request, *args, **kw)
2017-03-02 14:39:49.144140   File "/opt/stack/vitrage-dashboard/vitrage_dashboard/api/vitrage_rest_api.py", line 63, in get
2017-03-02 14:39:49.144146     graph_type=graph_type)
2017-03-02 14:39:49.144151   File "/opt/stack/vitrage-dashboard/vitrage_dashboard/api/vitrage.py", line 34, in topology
2017-03-02 14:39:49.144156     return vitrageclient(request).topology.get(query=query,
2017-03-02 14:39:49.144161   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/utils/memoized.py", line 90, in wrapped
2017-03-02 14:39:49.144302     value = cache[key] = func(*args, **kwargs)
2017-03-02 14:39:49.144382   File "/opt/stack/vitrage-dashboard/vitrage_dashboard/api/vitrage.py", line 30, in vitrageclient
2017-03-02 14:39:49.144454     return vitrage_client.Client('1', session)
2017-03-02 14:39:49.144523   File "/opt/stack/python-vitrageclient/vitrageclient/client.py", line 22, in Client
2017-03-02 14:39:49.144593     version, 'client')
2017-03-02 14:39:49.144661 TypeError: import_versioned_module() takes at most 2 arguments (3 given)

With the cli tool when I execute command "vitrage topology show", I see following error: import_versioned_module() takes at most 2 arguments (3 given)

Any help to solve this problem would be highly appreciated!