[Vitrage] Cannot delete old entities on graph

Eyal B eyalb1 at gmail.com
Thu Mar 18 20:56:56 UTC 2021


Hi

As a workaround stop the vitrage graph process run vitrage-purge-data and
start vitrage graph again

Eyal

On Thu, Mar 18, 2021, 17:10 Adam Tomas <bkslash at poczta.onet.pl> wrote:

> Hi,
> I’ve deployed Kolla-Ansible (Victoria) and after using it for some time I
> have errors from Vitrage service:
>
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init [-] Got
> Exception for event {'vitrage_entity_type': 'consistency',
> 'vitrage_datasource_action': 'update', 'vitrage_sample_date':
> '2021-03-18T13:30:19Z', 'vitrage_event_type': 'delete_entity',
> 'vitrage_id': 'a19330f1-49c1-4a97-9787-c80b645f51a6', 'id':
> '93c1df77-dbb5-4ba7-9b7d-16fad97169f1', 'vitrage_type': 'cinder.volume',
> 'vitrage_category': 'RESOURCE', 'is_real_vitrage_id': True}: KeyError:
> 'vitrage_is_placeholder'
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init Traceback
> (most recent call last):
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init   File
> "/var/lib/kolla/venv/lib/python3.8/site-packages/vitrage/entity_graph/graph_init.py",
> line 146, in do_work
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init     return
> do_work_func(event)
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init   File
> "/var/lib/kolla/venv/lib/python3.8/site-packages/vitrage/entity_graph/graph_init.py",
> line 111, in process_event
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init
>  self.processor.process_event(event)
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init   File
> "/var/lib/kolla/venv/lib/python3.8/site-packages/vitrage/entity_graph/processor/processor.py",
> line 63, in process_event
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init
>  self.actions[entity.action](entity.vertex, entity.neighbors)
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init   File
> "/var/lib/kolla/venv/lib/python3.8/site-packages/vitrage/entity_graph/processor/processor.py",
> line 149, in delete_entity
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init
>  PUtils.delete_placeholder_vertex(self.entity_graph, vertex)
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init   File
> "/var/lib/kolla/venv/lib/python3.8/site-packages/vitrage/entity_graph/processor/processor_utils.py",
> line 68, in delete_placeholder_vertex
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init     if not
> vertex[VProps.VITRAGE_IS_PLACEHOLDER]:
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init   File
> "/var/lib/kolla/venv/lib/python3.8/site-packages/vitrage/graph/driver/elements.py",
> line 24, in __getitem__
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init     return
> self.properties[key]
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init KeyError:
> 'vitrage_is_placeholder'
> 2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init
>
> As I can see in Horizon, there are some old volumes , which in Cinder
> database have proper (DELETED/DETACHED) status, but they’re still visible
> on Entity Graph, and as in error message above - cannot be deleted by
> vitrage-graph. How to delete such entities?
>
> Best regards,
> Adam Tomas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20210318/f6599ca8/attachment.html>


More information about the openstack-discuss mailing list