fluent-bit
fluent-bit copied to clipboard
Remove duplicate slash in systemd file
Fixes #6619.
As I'm sitting on macOS (M1). How to I create a package for me to test the changes? I've tried adding --platform linux/amd64 to packages/build.sh, but then the script failed.
Enter [N/A] in the box, if an item is not applicable to your change.
Testing Before we can approve your change; please submit the following in a comment:
- [ ] Example configuration file for the change
- [ ] Debug log output from testing the change
- [ ] Attached Valgrind output that shows no leaks or memory corruption was found
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
- [ ] Run local packaging test showing all targets (including any new ones) build.
- [ ] Set
ok-package-testlabel to test for all targets (requires maintainer to do).
Documentation
- [ ] Documentation required for this feature
Backporting
- [ ] Backport to latest stable release.
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.
As I'm sitting on macOS (M1). How to I create a package for me to test the changes? I've tried adding
--platform linux/amd64topackages/build.sh, but then the script failed.
Good question and one not hugely considered so far but there are some ways to inject extra params - that option is docker specific so would need to apply there plus you don't want it for the ARM64 builds. My suggestion would be just to build an ARM64 build, e.g. ./packaging/build.sh -d centos/7.arm64v8
I will trigger a build for all targets here which should give you the packages to download from the workflow run.
Think I'm a bit new to this. π Where is the built packages? Server in question is Ubuntu 22.04.
https://github.com/fluent/fluent-bit/actions/runs/4490278141?pr=7050 has downloadable packages for all targets.
On AlmaLinux 9, it's now correct:
[Unit]
Description=Fluent Bit
Documentation=https://docs.fluentbit.io/manual/
Requires=network.target
After=network.target
[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/fluent-bit
EnvironmentFile=-/etc/default/fluent-bit
ExecStart=/opt/fluent-bit/bin/fluent-bit -c /etc/fluent-bit/fluent-bit.conf
Restart=always
[Install]
WantedBy=multi-user.target
$ /opt/fluent-bit/bin/fluent-bit --version
Fluent Bit v2.1.0
However, the Debian/Ubuntu package is missing the systemd file entirely. π€·π»ββοΈ Downloading the upstream package from the repo contains the systemd file.
@patrick-stephens should we include this one ?
NOTE: I still see this as a draft
@patrick-stephens should we include this one ?
NOTE: I still see this as a draft
Still draft, yes. π As mentioned, the deb-packages are missing the systemd files and canβt verify that they are fixed. The one for RHEL does have the fix.
@patrick-stephens should we include this one ? NOTE: I still see this as a draft
Still draft, yes. sweat_smile As mentioned, the deb-packages are missing the systemd files and canβt verify that they are fixed. The one for RHEL does have the fix.
Are they missing or just in another format? Might be easier just to install into a local container to see: https://github.com/fluent/fluent-bit/blob/7d25c796160bd1f2bba476194f24298db4a0b521/packaging/test-release-packages.sh#L78-L96
Are they missing or just in another format? Might be easier just to install into a local container to see:
The map systemd is missing all together. Meaning doing dpkg -i package does not add files related to systemd. Download one of the Debian-based packages and see that it does not contain it.
# Ubuntu
$ find data
data
data/etc
data/etc/fluent-bit
data/etc/fluent-bit/plugins.conf
data/etc/fluent-bit/parsers.conf
data/etc/fluent-bit/fluent-bit.conf
data/lib
data/lib/fluent-bit
data/lib/fluent-bit/libfluent-bit.so
data/opt
data/opt/fluent-bit
data/opt/fluent-bit/bin
data/opt/fluent-bit/bin/fluent-bit
vs.
# CentOS 9
$ find data
data
data/usr
data/usr/lib
data/usr/lib/.build-id
data/usr/lib/.build-id/67
data/usr/lib/.build-id/67/d17b87e47117a788853b6e1a4d691b01a4e027
data/usr/lib/.build-id/5c
data/usr/lib/.build-id/5c/4bec6f63427b2d61326d99a40697b429119cc1
data/usr/lib/systemd
data/usr/lib/systemd/system
data/usr/lib/systemd/system/fluent-bit.service
data/lib64
data/lib64/fluent-bit
data/lib64/fluent-bit/libfluent-bit.so
data/etc
data/etc/fluent-bit
data/etc/fluent-bit/plugins.conf
data/etc/fluent-bit/parsers.conf
data/etc/fluent-bit/fluent-bit.conf
data/opt
data/opt/fluent-bit
data/opt/fluent-bit/bin
data/opt/fluent-bit/bin/fluent-bit
Hmm I'm concerned this is a larger issue then with the master branch. Need to check what is happening in the nightly builds: https://github.com/fluent/fluent-bit/actions/runs/4696876862
Thanks for the fix. Iβll do a rebase on Monday and ask for a new pipeline run.
Thanks for the fix. Iβll do a rebase on Monday and ask for a new pipeline run.
Rebased.
Thanks for the talk at KubeCon yesterday. ππ»
I've just verified that the package contains the unit file and is able to be installed and started on Ubuntu 22.04. By design you need to manually enable the service?
By design you need to manually enable the service?
I believe this is dependent on the target and should just be whatever it did before.
Can I do something more to get this going again? If something is missing, I'll gladly provide if possible.
@MindTooth can you rebase just to kick the unit tests again?
@leonardo-albertovich any chance you can approve? From my perspective seems fine.
107/120 Test #101: flb-it-log .................................***Failed 20.86 sec
Test cache_basic_timeout...
------------------------
[ FAILED ]
log.c:16: Check (*interval >= timeout - 1) && *interval <= timeout... failed
interval error. got=3 expect=4-5
log.c:92: Check ret == 0... failed
update_and_check_interval for TEST_RECORD_01 failed. i=9
log.c:16: Check (*interval >= timeout - 1) && *interval <= timeout... failed
interval error. got=3 expect=4-5
log.c:98: Check ret == 0... failed
update_and_check_interval for TEST_RECORD_02 failed. i=9
Test cache_one_slot...
[ OK ]
FAILED: 1 of 2 unit tests has failed.
I can't tell if this is related, but I don't think so. π€·π»ββοΈ
107/120 Test #101: flb-it-log .................................***Failed 20.86 sec Test cache_basic_timeout... ------------------------ [ FAILED ] log.c:16: Check (*interval >= timeout - 1) && *interval <= timeout... failed interval error. got=3 expect=4-5 log.c:92: Check ret == 0... failed update_and_check_interval for TEST_RECORD_01 failed. i=9 log.c:16: Check (*interval >= timeout - 1) && *interval <= timeout... failed interval error. got=3 expect=4-5 log.c:98: Check ret == 0... failed update_and_check_interval for TEST_RECORD_02 failed. i=9 Test cache_one_slot... [ OK ] FAILED: 1 of 2 unit tests has failed.I can't tell if this is related, but I don't think so. π€·π»ββοΈ
No, it's flaky macOS tests.
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.
Bump.
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.
I'll look into how the latest version act and to see if this still is a valid PR. Other than that, I'm not sure how to move this forward. Seems a bit quiet when it comes to accepting contributions. π€·π»ββοΈ
This time I was able to build it myself and test inside an AlmaLinux 9 VM. The fix is still valid.
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.
What can I do to make this move forward?
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.
I'm not using Fluent Bit, so I have no need to follow this up. Seeing as Stale Bot wants to close this, I can beat it to it. ππ»