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

The previous version of fluent bit not available via yum install on centos 7. #4633

Closed
shurikg opened this issue Jan 19, 2022 · 4 comments
Closed

Comments

@shurikg
Copy link

shurikg commented Jan 19, 2022

Bug Report

Describe the bug
The previous version of fluent bit not available via yum install on centos 7.

Present only the latest one (1.8.11) and I want to install 1.8.10

To Reproduce

yum --showduplicates list td-agent-bit
Available Packages
td-agent-bit.x86_64                    1.8.11-1                 TD_Agent_Bit
  • Steps to reproduce the problem:

The yum repo file definition is

[TD_Agent_Bit]
baseurl = https://packages.fluentbit.io/centos/7/$basearch/
enabled = 1
gpgcheck = 1
gpgkey = https://packages.fluentbit.io/fluentbit.key
name = Fluent bit repo
yum install td-agent-bit-1.8.10-1
Loaded plugins: langpacks, product-id, search-disabled-repos
No package td-agent-bit-1.8.10-1 available.

Expected behavior
The repo should contains the reference to previous version too.

@patrick-stephens
Copy link
Contributor

This is down to the packaging and is resolved by the new workflows to release, they just need running for the next release. The work was all done for #3753 under #4432

The actual RPMs are there and can be retrieved explicitly for then a local yum install: #3617 (comment)

See related #3795, #3617

@shurikg
Copy link
Author

shurikg commented Jan 19, 2022

@patrick-stephens Do you know when will be next release?

I'm using ansible role (not managed by me) and this workaround to download the rpm and run local yum will not work for me without to change the ansible role itself.

Can we run only the rebuild of repometada file without release anything new ?

@patrick-stephens
Copy link
Contributor

patrick-stephens commented Jan 21, 2022

The 1.8.12 release is imminent with #4645 but the workflows I reference are for the next major release, i.e. 1.9.

Saying that we can rebuild the metadata as you suggest for the existing repositories (that's all my changes do for 1.9). I'll ask @edsiper if we can do that after the 1.8.12 release is out.

An additional Ansible role or step can be run first as a workaround to provide your own repository as well that covers the local approach, i.e. download RPM, run createrepo on it, serve as Yum repo (e.g all in a container). Unless the role you're using is hardcoded to use fixed URLs, in which case you can always redirect host lookup to resolve as well again with a pre/post Ansible approach. I'm not saying it's a great solution but it is a workaround for now.

@patrick-stephens
Copy link
Contributor

@shurikg this should be resolved now, at least it seems to work for me as long as I used the previous GPG key (see below):

$ docker run --rm -it centos:7
[root@be6fd29116b6 /]# vi /etc/yum.repos.d/fluentbit.repo
[root@be6fd29116b6 /]# cat /etc/yum.repos.d/fluentbit.repo
[TD_Agent_Bit]
baseurl = https://packages.fluentbit.io/centos/7/$basearch/
enabled = 1
gpgcheck = 1
gpgkey = https://packages.fluentbit.io/fluentbit-legacy.key
name = Fluent bit repo
[root@be6fd29116b6 /]# yum --showduplicates list td-agent-bit
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
 * base: uk.mirrors.clouvider.net
 * extras: mirror.freethought-internet.co.uk
 * updates: repo.uk.bigstepcloud.com
TD_Agent_Bit                                                                                                                             | 2.9 kB  00:00:00     
base                                                                                                                                     | 3.6 kB  00:00:00     
extras                                                                                                                                   | 2.9 kB  00:00:00     
updates                                                                                                                                  | 2.9 kB  00:00:00     
(1/5): base/7/x86_64/group_gz                                                                                                            | 153 kB  00:00:03     
(2/5): extras/7/x86_64/primary_db                                                                                                        | 246 kB  00:00:04     
(3/5): TD_Agent_Bit/x86_64/primary_db                                                                                                    |  78 kB  00:00:04     
(4/5): updates/7/x86_64/primary_db                                                                                                       |  14 MB  00:00:09     
(5/5): base/7/x86_64/primary_db                                                                                                          | 6.1 MB  00:00:10     
Available Packages
td-agent-bit.x86_64                                                            0.11.1-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.2-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.3-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.4-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.5-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.6-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.7-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.8-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.9-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.10-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.11-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.12-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.13-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.14-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.15-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.16-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.11.17-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.0-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.1-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.2-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.3-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.4-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.5-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.6-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.7-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.8-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.9-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.10-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.11-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.12-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.13-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.14-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.15-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.16-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.17-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.18-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.12.19-1                                                            TD_Agent_Bit
td-agent-bit.x86_64                                                            0.13.0-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.13.1-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.13.2-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.13.3-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.13.4-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.13.5-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.13.6-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.13.7-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.13.8-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.14.0-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.14.1-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.14.2-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.14.3-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.14.4-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.14.5-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.14.6-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.14.7-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.14.8-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            0.14.9-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            1.0.0-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.0.1-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.0.2-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.0.3-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.0.4-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.0.5-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.0.6-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.1.0-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.1.1-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.1.2-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.1.3-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.2.0-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.2.1-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.2.2-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.3.0-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.3.1-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.3.2-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.3.3-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.3.4-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.3.5-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.3.6-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.3.7-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.3.8-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.3.9-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.3.10-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            1.3.11-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            1.4.0-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.4.1-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.4.2-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.4.3-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.4.4-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.4.5-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.4.6-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.5.0-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.5.1-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.5.2-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.5.3-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.5.4-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.5.5-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.5.6-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.5.7-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.6.0-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.6.2-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.6.3-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.6.4-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.6.5-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.6.6-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.6.7-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.6.8-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.6.9-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.6.10-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            1.7.0-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.7.1-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.7.2-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.7.3-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.7.4-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.7.5-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.7.6-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.7.7-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.7.8-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.7.9-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.8.1-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.8.2-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.8.3-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.8.4-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.8.5-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.8.6-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.8.7-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.8.8-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.8.9-1                                                              TD_Agent_Bit
td-agent-bit.x86_64                                                            1.8.10-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            1.8.11-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            1.8.12-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            1.8.13-1                                                             TD_Agent_Bit
td-agent-bit.x86_64                                                            1.9.0-1                                                              TD_Agent_Bit
[root@be6fd29116b6 /]# yum install -y td-agent-bit-1.8.10-1
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: uk.mirrors.clouvider.net
 * extras: mirror.freethought-internet.co.uk
 * updates: repo.uk.bigstepcloud.com
Resolving Dependencies
--> Running transaction check
---> Package td-agent-bit.x86_64 0:1.8.10-1 will be installed
--> Processing Dependency: libpq.so.5()(64bit) for package: td-agent-bit-1.8.10-1.x86_64
--> Running transaction check
---> Package postgresql-libs.x86_64 0:9.2.24-7.el7_9 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================
 Package                                  Arch                            Version                                   Repository                             Size
================================================================================================================================================================
Installing:
 td-agent-bit                             x86_64                          1.8.10-1                                  TD_Agent_Bit                          7.4 M
Installing for dependencies:
 postgresql-libs                          x86_64                          9.2.24-7.el7_9                            updates                               235 k

Transaction Summary
================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 7.7 M
Installed size: 31 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/updates/packages/postgresql-libs-9.2.24-7.el7_9.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY--:--:-- ETA 
Public key for postgresql-libs-9.2.24-7.el7_9.x86_64.rpm is not installed
(1/2): postgresql-libs-9.2.24-7.el7_9.x86_64.rpm                                                                                         | 235 kB  00:00:03     
warning: /var/cache/yum/x86_64/7/TD_Agent_Bit/packages/td-agent-bit-1.8.10-1.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 6ea0722a: NOKEYMB  00:00:00 ETA 
Public key for td-agent-bit-1.8.10-1.x86_64.rpm is not installed
(2/2): td-agent-bit-1.8.10-1.x86_64.rpm                                                                                                  | 7.4 MB  00:00:19     
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                           409 kB/s | 7.7 MB  00:00:19     
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) <[email protected]>"
 Fingerprint: 6341 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
Retrieving key from https://packages.fluentbit.io/fluentbit-legacy.key
Importing GPG key 0x6EA0722A:
 Userid     : "Eduardo Silva <[email protected]>"
 Fingerprint: f209 d876 2a60 cd49 e680 633b 4ff8 368b 6ea0 722a
 From       : https://packages.fluentbit.io/fluentbit-legacy.key
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : postgresql-libs-9.2.24-7.el7_9.x86_64                                                                                                        1/2 
  Installing : td-agent-bit-1.8.10-1.x86_64                                                                                                                 2/2 
  Verifying  : postgresql-libs-9.2.24-7.el7_9.x86_64                                                                                                        1/2 
  Verifying  : td-agent-bit-1.8.10-1.x86_64                                                                                                                 2/2 

Installed:
  td-agent-bit.x86_64 0:1.8.10-1                                                                                                                                

Dependency Installed:
  postgresql-libs.x86_64 0:9.2.24-7.el7_9                                                                                                                       

Complete!
...

Make sure to use the previous key: gpgkey = https://packages.fluentbit.io/fluentbit-legacy.key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants