rpm: fix update error if working directory is missing#955
rpm: fix update error if working directory is missing#955Watson1978 merged 12 commits intofluent:masterfrom
Conversation
ca11a50 to
db58633
Compare
db58633 to
49a74ea
Compare
kenhys
left a comment
There was a problem hiding this comment.
I come to think using /tmp/fluent is bad design failure.
So, it might be better to switch using /var/cache/fluent or something instead.
What do you think?
(If already /var/cache/fluent is used by user, need to care that too)
|
That makes sense. In additional, maybe we should replace /tmp/fluent/.main_pid into /var/run/fluent.main_pid or other. |
I did miss read. |
1e6d6e9 to
c942015
Compare
6786caf to
b4214a6
Compare
7e55233 to
501a445
Compare
kenhys
left a comment
There was a problem hiding this comment.
Could you add test case for downgrading to v6.0.0 or v6.0.1?
something like downgrade-to-v6-lts-tmpfiles.sh
ec73fdb to
100fbe1
Compare
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
- Switch from /tmp/fluent to /var/cache/fluent for upgrade-related files. - This avoids issues where /tmp is cleaned by systemd-tmpfiles or accidentally modified by users. - Ensures the directory exists during the package upgrade process. Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
> Job 'test' depends on job 'confluent_test' which creates a cycle in the dependency graph., Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
100fbe1 to
bf13c43
Compare
|
Added nitpick fix which was introduced by #972 accidentally. |
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
|
Thanks |
If `/tmp/fluent/` was removed, it causes error when update to Fluent Package 6.0.x as following: ``` # dnf install ./fluent-package-5.0.9-1.el8.x86_64.rpm # rm -rf /tmp/fluent/ # dnf install -y ./fluent-package-6.0.1-1.el8.x86_64.rpm Last metadata expiration check: 0:55:01 ago on Tue Feb 10 05:05:41 2026. Dependencies resolved. ==================================================================================================================================================================== Package Architecture Version Repository Size ==================================================================================================================================================================== Upgrading: fluent-package x86_64 6.0.1-1.el8 @commandline 23 M Transaction Summary ==================================================================================================================================================================== Upgrade 1 Package Total size: 23 M Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: fluent-package-6.0.1-1.el8.x86_64 1/1 Running scriptlet: fluent-package-6.0.1-1.el8.x86_64 1/2 /var/tmp/rpm-tmp.Fp7H9o: line 39: /tmp/fluent/.local_base_plugins: No such file or directory error: %prein(fluent-package-6.0.1-1.el8.x86_64) scriptlet failed, exit status 1 Error in PREIN scriptlet in rpm package fluent-package Verifying : fluent-package-6.0.1-1.el8.x86_64 1/2 Verifying : fluent-package-5.0.9-1.el8.x86_64 2/2 Failed: fluent-package-5.0.9-1.el8.x86_64 fluent-package-6.0.1-1.el8.x86_64 Error: Transaction failed ``` --------- Signed-off-by: Shizuo Fujita <fujita@clear-code.com> Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com> Co-authored-by: Kentaro Hayashi <hayashi@clear-code.com> Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
…955) (#977) Backport #955 If `/tmp/fluent/` was removed, it causes error when update to Fluent Package 6.0.x as following: ``` # dnf install ./fluent-package-5.0.9-1.el8.x86_64.rpm # rm -rf /tmp/fluent/ # dnf install -y ./fluent-package-6.0.1-1.el8.x86_64.rpm Last metadata expiration check: 0:55:01 ago on Tue Feb 10 05:05:41 2026. Dependencies resolved. ==================================================================================================================================================================== Package Architecture Version Repository Size ==================================================================================================================================================================== Upgrading: fluent-package x86_64 6.0.1-1.el8 @commandline 23 M Transaction Summary ==================================================================================================================================================================== Upgrade 1 Package Total size: 23 M Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: fluent-package-6.0.1-1.el8.x86_64 1/1 Running scriptlet: fluent-package-6.0.1-1.el8.x86_64 1/2 /var/tmp/rpm-tmp.Fp7H9o: line 39: /tmp/fluent/.local_base_plugins: No such file or directory error: %prein(fluent-package-6.0.1-1.el8.x86_64) scriptlet failed, exit status 1 Error in PREIN scriptlet in rpm package fluent-package Verifying : fluent-package-6.0.1-1.el8.x86_64 1/2 Verifying : fluent-package-5.0.9-1.el8.x86_64 2/2 Failed: fluent-package-5.0.9-1.el8.x86_64 fluent-package-6.0.1-1.el8.x86_64 Error: Transaction failed ``` --------- Signed-off-by: Shizuo Fujita <fujita@clear-code.com> Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com> Co-authored-by: Kentaro Hayashi <hayashi@clear-code.com>
If
/tmp/fluent/was removed, it causes error when update to Fluent Package 6.0.x as following: