Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deb and rpm packages to create and assign permissions for /var/tempo #3657

Merged
merged 7 commits into from
May 8, 2024

Conversation

mdisibio
Copy link
Contributor

@mdisibio mdisibio commented May 8, 2024

What this PR does:
The motivation for this PR is to fix the deb and rpm Drone test process, but we decided it's also a good improvement that should be shipped in the packages.

The deb and rpm packages install Tempo as a systemd service, under a newly-created user tempo. However the services can't start out of the box because the tempo user lacks permissions to create and write to /var/tempo which is the default storage path. This updates the post install process to create and assign perms to /var/tempo. Unfortunately we couldn't pin down when this became a problem or what changed.

Note A tricky bit is that Drone only runs for tags and PRs of branches in the Tempo repo itself. If you PR is from a fork, it doesn't run. This made the failures go unnoticed for some time as most PRs are from forks.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Contributor

@zalegrala zalegrala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment, but looks good to me.

tools/packaging/tempo-postinstall.sh Outdated Show resolved Hide resolved
@mdisibio mdisibio changed the title test deb stuff Update deb and rpm packages to create and assign permissions for /var/tempo May 8, 2024
@mdisibio mdisibio marked this pull request as ready for review May 8, 2024 15:09
@mdisibio mdisibio merged commit 947de35 into main May 8, 2024
15 checks passed
@mdisibio mdisibio deleted the test-deb branch May 8, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants