oceanbase / obdiag

obdiag (OceanBase Diagnostic Tool) is designed to help OceanBase users quickly gather necessary information and analyze the root cause of the problem.
https://www.oceanbase.com/docs/obdiag-cn
Mulan Permissive Software License, Version 2
139 stars 33 forks source link

[Bug]: obdiag gather log 时遇到ob机器上没有zip工具报错不友好 #526

Closed Teingi closed 2 weeks ago

Teingi commented 2 weeks ago

Describe the bug

from : https://ask.oceanbase.com/t/topic/35614831/2

Environment

https://ask.oceanbase.com/t/topic/35614831/2

Fast reproduce steps

https://ask.oceanbase.com/t/topic/35614831/2

Expected behavior

No response

Actual behavior

No response

Additional context

No response

Teingi commented 2 weeks ago

To solve the problem by introducing pyminizip in the obdiag code, when collecting information remotely, use tar to compress the data. Once the compressed file is transferred back to the obdiag machine, use pyminizip to change the compression format and simultaneously handle the encryption needs.

Teingi commented 2 weeks ago

https://github.com/oceanbase/obdiag/pull/529