[pve-devel] [PATCH widget-toolkit/manager/pmg-api v2] improve syslog tab

Dominik Csapak d.csapak at proxmox.com
Wed May 15 11:15:11 CEST 2019


this series aims to improve the nodes syslog tab, by changing
journalctl to a slimmer, slightly faster binary called journalreader

the big improvement is that it returns/accepts cursors, making it
possible to get only the entries we need

the name journalreader is nothing i am particularly fond of, so if
someone has a better idea, please tell :)

also the gui panel (JournalView) is very similar to the already existing
LogView, but i found no neat way to combine the two

another thing is the api:
originally i did not want to have a new api call, but i wanted to get
rid of the weird result structure, but found no good way to keep
backwards compatibility

changes from v1:
* journalreader is already applied (with a different name) so drop that
  and adapt the name
* move the run_command into the api call so we do not update pve-common
  anymore (it is small enough)
* fix last -> lastentries
* add the same api call to pmg-api (i will send the pmg-gui patch later)
* add dependency of pve-manager/pmg-api

proxmox-widget-toolkit:

Dominik Csapak (1):
  add panel/JournalView

 Makefile             |   1 +
 panel/JournalView.js | 335 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 336 insertions(+)
 create mode 100644 panel/JournalView.js

pve-manager:

Dominik Csapak (2):
  node: add journal api
  gui: node: change syslog to JournalView and journal api

 PVE/API2/Nodes.pm           | 71 +++++++++++++++++++++++++++++++++++++++++++++
 debian/control              |  1 +
 www/manager6/node/Config.js |  5 ++--
 3 files changed, 74 insertions(+), 3 deletions(-)

pmg-api:

Dominik Csapak (1):
  node: add journal api

 PMG/API2/Nodes.pm | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/control    |  1 +
 2 files changed, 72 insertions(+)

-- 
2.11.0





More information about the pve-devel mailing list