Skip to content

[collect] update for strict confinement for juju - #4402

Merged
pmoravec merged 1 commit into
sosreport:mainfrom
arif-ali:sos-arif-collect-juju-snap-strict
Aug 2, 2026
Merged

[collect] update for strict confinement for juju#4402
pmoravec merged 1 commit into
sosreport:mainfrom
arif-ali:sos-arif-collect-juju-snap-strict

Conversation

@arif-ali

Copy link
Copy Markdown
Member

With juju versions 3 and above, when collecting the tarballs from machines it will grab them into a strictly confined area. This means that we need to be able to grab the data to a different location, such as somewhere in the home directory. Using a directory such as ~/.cache/sos-collect-juju is being used to overcome this issue.

Related: #3399
Related: #3422


Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines

  • Is the commit message split over multiple lines and hard-wrapped at 72 characters?
  • Is the subject and message clear and concise?
  • Does the subject start with [plugin_name] if submitting a plugin patch or a [section_name] if part of the core sosreport code?
  • Does the commit contain a Signed-off-by: First Lastname email@example.com?
  • Are any related Issues or existing PRs properly referenced via a Closes (Issue) or Resolved (PR) line?
  • Are all passwords or private data gathered by this PR obfuscated?

@arif-ali

Copy link
Copy Markdown
Member Author

This hopefully reflects on #3422 and not requiring to move files and use sudo. The best thing we could come up with was to use a cache area in the home directory, and do it this way. I hope this would work

@arif-ali arif-ali added Status/Needs Review This issue still needs a review from project members Kind/collect collect component of sos Kind/Ubuntu Ubuntu related item labels Jul 31, 2026
@packit-as-a-service

Copy link
Copy Markdown

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo dnf install -y 'dnf*-command(copr)'
  • dnf copr enable packit/sosreport-sos-4402
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

With juju versions 3 and above, when collecting the tarballs
from machines it will grab them into a strictly confined area.
This means that we need to be able to grab the data to a different
location, such as somewhere in the home directory. Using a directory
such as ~/.cache/sos-collect-juju is being used to overcome this
issue.

Related: sosreport#3399
Signed-off-by: Arif Ali <arif.ali@canonical.com>
@arif-ali
arif-ali force-pushed the sos-arif-collect-juju-snap-strict branch from 2003eb9 to 03d8596 Compare July 31, 2026 15:47
@pmoravec
pmoravec merged commit f26f49e into sosreport:main Aug 2, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Kind/collect collect component of sos Kind/Ubuntu Ubuntu related item Status/Needs Review This issue still needs a review from project members

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants