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

packaing: test: centos7: Fix packaging test #9076

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

cosmo0920
Copy link
Contributor


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-test label 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.

@cosmo0920 cosmo0920 force-pushed the cosmo0920-fix-testing-packages branch 4 times, most recently from 191a3ff to e1820bf Compare July 11, 2024 07:54
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
@cosmo0920 cosmo0920 force-pushed the cosmo0920-fix-testing-packages branch from e1820bf to 243b556 Compare July 11, 2024 08:21
@cosmo0920 cosmo0920 changed the title packaing: test: Fix packaging test packaing: test: centos7: Fix packaging test Jul 11, 2024
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
@cosmo0920
Copy link
Contributor Author

cosmo0920 commented Jul 11, 2024

+ docker run --rm -t -e FLUENT_BIT_PACKAGES_URL=https://packages.fluentbit.io/ -e FLUENT_BIT_PACKAGES_KEY=https://packages.fluentbit.io/fluentbit.key -e FLUENT_BIT_RELEASE_VERSION= -e FLUENT_BIT_INSTALL_COMMAND_PREFIX= -e FLUENT_BIT_INSTALL_PACKAGE_NAME=fluent-bit -e FLUENT_BIT_INSTALL_YUM_PARAMETERS= -v /home/runner/work/fluent-bit/fluent-bit/packaging/centos7-repo.sh:/centos7-repo.sh:ro -v /home/runner/work/fluent-bit/fluent-bit/install.sh:/install.sh:ro centos:7 sh -c '[ 1 -eq 1 ] && sh /centos7-repo.sh || true && /install.sh && /opt/fluent-bit/bin/fluent-bit --version'
+ tee /tmp/tmp.F7pwisgZ49
Unable to find image 'centos:7' locally
7: Pulling from library/centos
2d473b07cdd5: Pulling fs layer
2d473b07cdd5: Verifying Checksum
2d473b07cdd5: Download complete
2d473b07cdd5: Pull complete
Digest: sha256:be65f488b7764ad[36](https://github.com/fluent/fluent-bit/actions/runs/9888078323/job/27311171354#step:3:37)38f236b7b515b3678369a5124c47b8d32916d6487418ea4
Status: Downloaded newer image for centos:7
================================
 Fluent Bit Installation Script 
================================
This script requires superuser access to install packages.
You will be prompted for your password by sudo.
[fluent-bit]
name = Fluent Bit
# Legacy server style
baseurl = https://packages.fluentbit.io/centos/$releasever/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.fluentbit.io/fluentbit.key
enabled=1
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
base                                                     | 3.6 kB     00:00     
extras                                                   | 2.9 kB     00:00     
fluent-bit/7/signature                                   |  866 B     00:00     
Retrieving key from https://packages.fluentbit.io/fluentbit.key
Importing GPG key 0x[38](https://github.com/fluent/fluent-bit/actions/runs/9888078323/job/27311171354#step:3:39)88C1CD:
 Userid     : "Fluentbit releases (Releases signing key) <releases@fluentbit.io>"
 Fingerprint: c3c0 a285 34b9 293e af51 fabd 9f9d dc08 3888 c1cd
 From       : https://packages.fluentbit.io/fluentbit.key
fluent-bit/7/signature                                   | 3.0 kB     00:02 !!! 
updates                                                  | 2.9 kB     00:00     
(2/5): base/7/x86_64/prima 0% [                 ]  0.0 B/s |    0 B   --:-- ETA 
(1/5): base/7/x86_64/primary_db                            | 6.1 MB   00:00     
(2/5): base/7/x86_64/group_gz                              | 153 kB   00:00     
(3/5): extras/7/x86_64/primary_db                          | 253 kB   00:00     
(4/5): fluent-bit/7/primary_db                             | 213 kB   00:00     
(5/5): updates/7/x86_64/primary_db                         |  27 MB   00:00     
Resolving Dependencies
--> Running transaction check
---> Package fluent-bit.x86_64 0:3.1.1-1 will be installed
--> Processing Dependency: libpq.so.5()(64bit) for package: fluent-bit-3.1.1-1.x86_64
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: fluent-bit-3.1.1-1.x86_64
--> Running transaction check
---> Package libyaml.x86_64 0:0.1.4-11.el7_0 will be installed
---> Package postgresql-libs.x86_64 0:9.2.24-9.el7_9 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
 Package               Arch         Version              Repository        Size
================================================================================
Installing:
 fluent-bit            x86_64       3.1.1-1              fluent-bit        15 M
Installing for dependencies:
 libyaml               x86_64       0.1.4-11.el7_0       base              55 k
 postgresql-libs       x86_64       9.2.24-9.el7_9       updates          235 k
Transaction Summary
================================================================================
Install  1 Package (+2 Dependent packages)
Total download size: 16 M
Installed size: 60 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/base/packages/libyaml-0.1.4-11.el7_0.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for libyaml-0.1.4-11.el7_0.x86_64.rpm is not installed
(1/3): libyaml-0.1.4-11.el7_0.x86_64.rpm                   |  55 kB   00:00     
(2/3): fluent-bit-3.1.1-1. 0% [                 ]  0.0 B/s |  55 kB   --:-- ETA 
Public key for postgresql-libs-9.2.24-9.el7_9.x86_64.rpm is not installed
(2/3): postgresql-libs-9.2.24-9.el7_9.x86_64.rpm           | 235 kB   00:00     
(3/3): fluent-bit-3.1.1-1. 30% [====-           ] 5.0 MB/s | 4.7 MB   00:02 ETA 
(3/3): fluent-bit-3.1.1-1. 47% [=======-        ] 5.2 MB/s | 7.3 MB   00:01 ETA 
(3/3): fluent-bit-3.1.1-1. 65% [==========      ] 5.4 MB/s |  10 MB   00:00 ETA 
(3/3): fluent-bit-3.1.1-1. 84% [=============-  ] 5.7 MB/s |  13 MB   00:00 ETA 
(3/3): fluent-bit-3.1.1-1.x86_64.rpm                       |  15 MB   00:02     
--------------------------------------------------------------------------------
Total                                              7.3 MB/s |  16 MB  00:02     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
 Fingerprint: 63[41](https://github.com/fluent/fluent-bit/actions/runs/9888078323/job/27311171354#step:3:42) ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-9.2009.0.el7.centos.x86_64 (@CentOS)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : postgresql-libs-9.2.24-9.el7 [                             ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [##                           ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [###                          ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [####                         ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [######                       ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [#######                      ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [#########                    ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [############                 ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [###############              ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [################             ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [#################            ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [##################           ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [###################          ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [####################         ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [#####################        ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [######################       ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [#######################      ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [########################     ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [##########################   ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [###########################  ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7 [############################ ] 1/3
  Installing : postgresql-libs-9.2.24-9.el7_9.x86_[64](https://github.com/fluent/fluent-bit/actions/runs/9888078323/job/27311171354#step:3:65)                        1/3 
  Installing : libyaml-0.1.4-11.el7_0.x86_6 [                             ] 2/3
  Installing : libyaml-0.1.4-11.el7_0.x86_6 [##############               ] 2/3
  Installing : libyaml-0.1.4-11.el7_0.x86_6 [############################ ] 2/3
  Installing : libyaml-0.1.4-11.el7_0.x86_64                                2/3 
  Installing : fluent-bit-3.1.1-1.x86_64 [                                ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [#                               ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [##                              ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [###                             ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [####                            ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [#####                           ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [######                          ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [#######                         ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [########                        ] 3/3
  Installing : fluent-bit-3.1.1-1.x[86](https://github.com/fluent/fluent-bit/actions/runs/9888078323/job/27311171354#step:3:87)_64 [#########                       ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [##########                      ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [###########                     ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [############                    ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [#############                   ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [##############                  ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [###############                 ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [################                ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [#################               ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [##################              ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [###################             ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [####################            ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [#####################           ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [######################          ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [#######################         ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [########################        ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [#########################       ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [##########################      ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [###########################     ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [############################    ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [#############################   ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [##############################  ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64 [############################### ] 3/3
  Installing : fluent-bit-3.1.1-1.x86_64                                    3/3 
  Verifying  : libyaml-0.1.4-11.el7_0.x86_64                                1/3 
  Verifying  : fluent-bit-3.1.1-1.x86_64                                    2/3 
  Verifying  : postgresql-libs-9.2.24-9.el7_9.x86_64                        3/3 
Installed:
  fluent-bit.x86_64 0:3.1.1-1                                                   
Dependency Installed:
  libyaml.x86_64 0:0.1.4-11.el7_0    postgresql-libs.x86_64 0:9.2.24-9.el7_9   
Complete!
Installation completed. Happy Logging!
Fluent Bit v3.1.1
Git commit:

Packaging test for CentOS 7 should be done correctly:
https://github.com/fluent/fluent-bit/actions/runs/9887612445/job/27309704983

@cosmo0920 cosmo0920 marked this pull request as ready for review July 11, 2024 08:30
@patrick-stephens patrick-stephens merged commit dfd1572 into master Jul 11, 2024
13 checks passed
@patrick-stephens patrick-stephens deleted the cosmo0920-fix-testing-packages branch July 11, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants