Skip to content

Commit

Permalink
CA-381047: Add observer capability to bugtool
Browse files Browse the repository at this point in the history
Move the tracing log output to its own capability as it spans more than
just xapi. This also allows the max size to be increased without
increasing it for all of xapi.

Signed-off-by: Steven Woods <[email protected]>
  • Loading branch information
snwoods committed Oct 2, 2023
1 parent 8b4d954 commit 0556b82
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ install:
$(IPROG) nbd_client_manager.py $(DESTDIR)$(LIBEXECDIR)
mkdir -p $(DESTDIR)$(ETCXENDIR)/bugtool/xapi
mkdir -p $(DESTDIR)$(ETCXENDIR)/bugtool/xenopsd
mkdir -p $(DESTDIR)$(ETCXENDIR)/bugtool/observer
$(IDATA) bugtool-plugin/xapi.xml $(DESTDIR)$(ETCXENDIR)/bugtool
$(IDATA) bugtool-plugin/xapi/stuff.xml $(DESTDIR)$(ETCXENDIR)/bugtool/xapi
$(IDATA) bugtool-plugin/xenopsd.xml $(DESTDIR)$(ETCXENDIR)/bugtool
$(IDATA) bugtool-plugin/xenopsd/stuff.xml $(DESTDIR)$(ETCXENDIR)/bugtool/xenopsd
$(IDATA) bugtool-plugin/observer.xml $(DESTDIR)$(ETCXENDIR)/bugtool
$(IDATA) bugtool-plugin/observer/stuff.xml $(DESTDIR)$(ETCXENDIR)/bugtool/observer
$(IPROG) fence $(DESTDIR)$(LIBEXECDIR)
$(IPROG) xha-lc $(DESTDIR)$(LIBEXECDIR)
$(IPROG) xapi-health-check $(DESTDIR)$(LIBEXECDIR)
Expand Down
1 change: 1 addition & 0 deletions scripts/bugtool-plugin/observer.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<capability pii="maybe" max_size="104857600" max_time="60" mime="text/plain" checked="true"/>
3 changes: 3 additions & 0 deletions scripts/bugtool-plugin/observer/stuff.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<collect>
<directory label="tracing">/var/log/dt</directory>
</collect>
1 change: 0 additions & 1 deletion scripts/bugtool-plugin/xapi/stuff.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@
<files>@ETCDIR@/stunnel/xapi-stunnel-ca-bundle.pem</files>
<command label="xapi_cert">cat @ETCXENDIR@/xapi-ssl.pem | @BINDIR@/openssl x509 -text</command>
<command label="xapi_pool_cert">cat @ETCXENDIR@/xapi-pool-tls.pem | @BINDIR@/openssl x509 -text</command>
<directory label="tracing">/var/log/dt</directory>
<command label="save_rrd">rrd-cli save_rrds</command>
</collect>

0 comments on commit 0556b82

Please sign in to comment.