Page MenuHomeVyOS Platform

review output for show tech-support command
Closed, ResolvedPublic

Description

We need to review output of

show tech-support

remove some redundant info and add some missing information

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close

Event Timeline

syncer created this object with edit policy "Custom Policy".
syncer edited projects, added VyOS 1.1.x; removed VyOS 1.1.x (1.1.8).

We need to change default behaviour and enable strip-private by default
add key not-strip-private for cases when complete dump required

@bcs pointed to problem in T363

@EwaldvanGeffen pointed another issue in T329
.bash_history content also must be processed (private info must be stripped) before it included

@c-po do you want to pick up this?
Basically we need to filter out private info by default
currently it possible to do via

show tech-support save /tmp | strip-private

but strip-private should be default behaviour

I'll start an investigation after T345.

strip-private is a bash-pipe function (/etc/bash_completion.d/vyatta-op).

@syncer:How do you expect a user will execute the show tech-support command with all private data present? Or should there be no possibility to print our sensible information at all?

maybe we can use something like | not-strip-private
for cases when dump should contain all info

by default output should strip all that info

@syncer: Thinking about it I have a different proposal:

Using "show tech-support" cmd will produce the tech-support output without any private information as you have suggested

cpo@CR1:~$ show tech-support
Possible completions:
  <Enter>       Execute the current command
  brief         Show brief tech-support report
  save          Save consolidated tech-support report
  save-uncompressed
                Save consolidated tech-support report uncompressed

Using "show tech-support private" cmd will produce the tech-support output with private information included.
This will be a new node "private" unter "show tech-support" which will act like the current implementation with all private information included.

cpo@CR1:~$ show tech-support private
Possible completions:
  <Enter>       Execute the current command
  brief         Show brief tech-support report
  save          Save consolidated tech-support report
  save-uncompressed
                Save consolidated tech-support report uncompressed

In addition to the removal of repositories in T7, is it required to print the installed dpkg versions? This could be removed, too

syncer moved this task from Needs Triage to Backlog on the VyOS 1.1.x (1.1.8) board.
syncer moved this task from Need Triage to Backlog on the VyOS 1.2 Crux board.

@c-po i will agree with your approach
i will ask to keep package versions output

Do we leave this for 1.2 or we want to include this with 1.1.8 ?
@c-po @dmbaturin

syncer moved this task from Backlog to Finished on the VyOS 1.2 Crux board.

Thanks @c-po !