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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* [CHANGE] Return a less confusing error message to the client when refusing spans due to ingestion rates. [#3485](https://github.com/grafana/tempo/pull/3485) (@ie-pham)
* [CHANGE] Clean Metrics Generator's Prometheus wal before creating instance [#3548](https://github.com/grafana/tempo/pull/3548) (@ie-pham)
* [CHANGE] Update docker examples for permissions, deprecations, and clean-up [#3603](https://github.com/grafana/tempo/pull/3603) (@zalegrala)
* [CHANGE] Update debian and rpm packages to grant required permissions to default storage path after installation [#3657](https://github.com/grafana/tempo/pull/3657) (@mdisibio)
* [FEATURE] Add messaging-system latency histogram to service-graph [#3453](https://github.com/grafana/tempo/pull/3453) (@adirmatzkin)
* [CHANGE] Delete any remaining objects for empty tenants after a configurable duration, requires config enable [#3611](https://github.com/grafana/tempo/pull/3611) (@zalegrala)
* [ENHANCEMENT] Add string interning to TraceQL queries [#3411](https://github.com/grafana/tempo/pull/3411) (@mapno)
Expand Down
4 changes: 4 additions & 0 deletions tools/packaging/tempo-postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ cleanInstall() {
adduser --system --shell /bin/false "tempo"
fi

# Create and assign permissions for default storage
mkdir -m 0700 /var/tempo
chown tempo /var/tempo

# rhel/centos7 cannot use ExecStartPre=+ to specify the pre start should be run as root
# even if you want your service to run as non root.
if [ "${systemd_version}" -lt 231 ]; then
Expand Down
2 changes: 1 addition & 1 deletion tools/packaging/verify-rpm-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cat <<EOF | docker exec --interactive "${image}" sh
# Import the Grafana GPG key
rpm --import https://packages.grafana.com/gpg.key

# Install loki and check it's running
# Install tempo and check it's running
rpm -i ${dir}/dist/tempo*_amd64.rpm
[ "\$(systemctl is-active tempo)" = "active" ] || (echo "tempo is inactive" && exit 1)

Expand Down
Loading