Datanode List Page UI (#17161)

* cherry picked new datanode page

* initial setup for datanode page navigation

* added DataNodesPageNavigation to pages

* DataNodeList component initial setup

* fix build

* datanode list initial prototype

* fix eslint issues

* add datanode list components

* fix eslint issues

* add new data node button

* prepare column components

* DataNodeStatusCell component

* useDataNodes return type

* fix build

* fix build errors

* fix eslint issues

* initial api integration

* refetch on change

* added removeDataNode & rejoinDataNode endpoints

* datanode actions integration progress

* cleanup DataNodeStatusCell

* DataNodeStatusCell using data_node_status

* refetch list every 5s

* cleanup

* add datanode details page

* update datanode page

* add todo

* add license header

* fix linter

* fix linter

* Updating yarn lockfile (#17528)

Co-authored-by: Gary Bot <garybot2@graylog.com>

* replace quotes

* add confirm dialog for actions

* cleanup status cell

* handle certificate renewal

* remove bulk actions

* add start/stop datanode

* show leader and add cert info to details

* remove is_master

* use correct action on start button

* fix spelling

* fix review

* update Datatable QueryHelper example to use ReactNode

* remove DataNodeBulkActions

* fix query by name

* add check for removal of running nodes

* remove done todo

* fix reset to do a complete restart

* make status and cert_valid_until not sortable

* update spelling

* Update graylog2-web-interface/src/components/datanode/DataNodeList/DataNodeActions.tsx

* Update graylog2-web-interface/src/components/datanode/hooks/useDataNodes.ts

* show remove and rejoin for relevant state

---------

Co-authored-by: Ousmane Samba <ousmanesamba@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gary Bot <garybot2@graylog.com>
Co-authored-by: Matthias Oesterheld <matthias.oesterheld@graylog.com>
Co-authored-by: Laura <grotlue@users.noreply.github.com>
This commit is contained in:
Mohamed OULD HOCINE
2023-12-21 16:15:00 +07:00
committed by GitHub
parent 16f3d66021
commit f0a9ca23ad
25 changed files with 775 additions and 28 deletions

View File

@@ -214,6 +214,7 @@ class OpensearchProcessImpl implements OpensearchProcess, ProcessListener {
@Override
public void onReset() {
onEvent(ProcessEvent.RESET);
restart();
}
@Override

View File

@@ -130,8 +130,6 @@ public class OpensearchRemovalTracer implements StateMachineTracer {
if (health.getRelocatingShards() == 0) {
process.stop();
executorService.shutdown();
// TODO: set the state for this datanode to removed in nodes
// and include state in OpensearchProcessImpl.writeSeedHostsList
}
} catch (IOException | OpenSearchStatusException e) {
process.onEvent(ProcessEvent.HEALTH_CHECK_FAILED);