<div dir="auto">Hi<div dir="auto"><br></div><div dir="auto">As a workaround stop the vitrage graph process run <span style="background-color:rgb(22,27,34);color:rgb(255,123,114);font-family:sfmono-regular,consolas,"liberation mono",menlo,monospace;font-size:12px;white-space:pre">vitrage-purge-data </span><span style="font-family:sans-serif">and start vitrage graph again</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Eyal</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 18, 2021, 17:10 Adam Tomas <<a href="mailto:bkslash@poczta.onet.pl">bkslash@poczta.onet.pl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I’ve deployed Kolla-Ansible (Victoria) and after using it for some time I have errors from Vitrage service:<br>
<br>
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'<br>
2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init Traceback (most recent call last):<br>
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<br>
2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init     return do_work_func(event)<br>
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<br>
2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init     self.processor.process_event(event)<br>
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<br>
2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init     self.actions[entity.action](entity.vertex, entity.neighbors)<br>
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<br>
2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init     PUtils.delete_placeholder_vertex(self.entity_graph, vertex)<br>
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<br>
2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init     if not vertex[VProps.VITRAGE_IS_PLACEHOLDER]:<br>
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__<br>
2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init     return self.properties[key]<br>
2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init KeyError: 'vitrage_is_placeholder'<br>
2021-03-18 13:30:19.873 7 ERROR vitrage.entity_graph.graph_init<br>
<br>
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?<br>
<br>
Best regards,<br>
Adam Tomas<br>
</blockquote></div>