canonical / charm-sosreport

2 stars 2 forks source link

Local sos versus sos collect #7

Open jneo8 opened 1 year ago

jneo8 commented 1 year ago

I think we should implement two different types of collection.

  1. Run sos locally for each unit which have relation with charm-sos
  2. Run sos colelct on a single unit, which will use sos collect to get sos report from each charm.

The charm should may support both methods.

jneo8 commented 1 year ago

One design idea is we implement local sos action for the charm.

And when we run action sos-collect is not run sos-collect directly. We trigger local sos action for each unit, this part python-lib-juju have the method, so each unit will run sos locally. After we can run action upload, so it will upload local file to remote storage seriesly.

We don't have smoothly way to trigger action for each unit.

If we prefer to have upload one tarball file. Then collect all the files together will be a problem.