kimchi-project / gingerbase

Gingerbase: basic host management for WoK
Other
47 stars 25 forks source link

sosreport generation does not allow underscore in name #7

Closed alinefm closed 8 years ago

alinefm commented 8 years ago

Originally reported on https://github.com/kimchi-project/kimchi/issues/748

URI: /plugins/gingerbase/model/debugreports Action: Post Post data: {"name": "debugreport_1"} Output: Error "underscore not allowed in the debug report name."

Investigation:

sosreport command generate report tar.gz by removing _

And existing upstream code search for file with pattern "sosreport-*" at /tmp or /var/tmp

Solution: Parsed the output of sosreport to get the path and name of sosreport generated. instead of searching the pattern "sosreport-*" in /tmp or /var/tmp.

alinefm commented 8 years ago

I have seen some discussion about it in the ML but I am not sure any of them was already integrated upstream.

Can anyone point me on that?

alinefm commented 8 years ago

Fixed by f4f49c143cbfd1df05ced3283328ead45335879a