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

enhance: add fedora 41 vagrant #3328

Merged

Conversation

LaurenceJJones
Copy link
Contributor

I dont think these are in the pipeline, however, I thought it be useful to have a vagrantfile that deploys 41 so we can test easier.

(40, with provision to upgrade to 41 since there no image so far on vagrant cloud)

Copy link

@LaurenceJJones: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.

  • /kind feature
  • /kind enhancement
  • /kind refactoring
  • /kind fix
  • /kind chore
  • /kind dependencies
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

Copy link

@LaurenceJJones: There are no area labels on this PR. You can add as many areas as you see fit.

  • /area agent
  • /area local-api
  • /area cscli
  • /area appsec
  • /area security
  • /area configuration
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

@LaurenceJJones
Copy link
Contributor Author

/kind chore
/area configuration

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.50%. Comparing base (dd52e13) to head (92249f4).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3328      +/-   ##
==========================================
- Coverage   58.51%   58.50%   -0.02%     
==========================================
  Files         351      351              
  Lines       37676    37676              
==========================================
- Hits        22047    22043       -4     
- Misses      13732    13737       +5     
+ Partials     1897     1896       -1     
Flag Coverage Δ
bats 41.28% <ø> (-0.03%) ⬇️
unit-linux 34.46% <ø> (-0.01%) ⬇️
unit-windows 29.69% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LaurenceJJones
Copy link
Contributor Author

Tag #2818

Add fedora 41 to allow us to test easier

@LaurenceJJones
Copy link
Contributor Author

LaurenceJJones commented Nov 12, 2024

Stack trace on testing the development installation script

warning development script is only meant for testing purposes please dont run on your production server

[vagrant@localhost ~]$ cat /etc/redhat-release
Fedora release 41 (Forty One)
[vagrant@localhost ~]$ curl https://install.dev.crowdsec.net/|sudo repo=crowdsec-testing sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 14202  100 14202    0     0  76451      0 --:--:-- --:--:-- --:--:-- 76767
Detected operating system as fedora/41.
Checking for curl...
Detected curl...
Downloading repository file: https://packagecloud.io/install/repositories/crowdsec/crowdsec-testing/config_file.repo?os=rpm_any&dist=rpm_any&source=script
done.
fedora
Installing pygpgme to verify GPG signatures...
No matching repositories for "crowdsec". Add "--help" for more information about the arguments.

WARNING:
The pygpgme package could not be installed. This means GPG verification is not possible for any RPM installed on your system.
To fix this, add a repository with pygpgme. Usually, the EPEL repository for your system will have this.
More information: https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F

sed: can't read /etc/yum.repos.d/crowdsec.repo: No such file or directory
Installing yum-utils...
No matching repositories for "crowdsec". Add "--help" for more information about the arguments.

WARNING:
The yum-utils package could not be installed. This means you may not be able to install source RPMs or use other yum features.

Generating yum cache for crowdsec...
No matching repositories for "crowdsec". Add "--help" for more information about the arguments.
Generating yum cache for crowdsec-source...
No matching repositories for "crowdsec-source". Add "--help" for more information about the arguments.

Issue happens because of code here:

    echo "Generating yum cache for crowdsec..."
    yum -q makecache -y --disablerepo='*' --enablerepo="crowdsec"

    echo "Generating yum cache for crowdsec-source..."
    yum -q makecache -y --disablerepo='*' --enablerepo="crowdsec-source"

However, running sudo dnf update

Updating and loading repositories:
 crowdsec_crowdsec-testing                                                                                                                                 100% | 824.0   B/s |   2.7 KiB |  00m03s
>>> Librepo error: repomd.xml GPG signature verification error: Signing key not found^[[A
 crowdsec_crowdsec-testing-source                                                                                                     ???% [<=>               ] |   0.0   B/s |   0.0   B |  00m00s crowdsec_crowdsec-testing-source                                                                                                                          100% | 814.0   B/s |   2.7 KiB |  00m03s
>>> Librepo error: repomd.xml GPG signature verification error: Signing key not found
 Fedora 41 - x86_64                                                                                                                                        100% |  12.1 MiB/s |  35.4 MiB |  00m03s
 Fedora 41 - x86_64 - Updates                                                                                                                              100% |   3.2 MiB/s |   4.2 MiB |  00m01s
 Fedora 41 openh264 (From Cisco) - x86_64                                                                                                                  100% |   5.0 KiB/s |   6.0 KiB |  00m01s
 https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey                                                                                                  100% |   5.3 KiB/s |   3.9 KiB |  00m01s
 https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey/crowdsec-crowdsec-testing-EDE2C695EC9A5A5C.pub.gpg                                               100% |   1.8 KiB/s |   2.4 KiB |  00m01s
 https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey/crowdsec-crowdsec-testing-C822EDD6B39954A1.pub.gpg                                               100% |   1.8 KiB/s |   2.4 KiB |  00m01s
 https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey/crowdsec-crowdsec-testing-FED78314A2468CCF.pub.gpg                                               100% |   2.8 KiB/s |   2.4 KiB |  00m01s
 https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey                                                                                                  100% |  13.7 KiB/s |   3.9 KiB |  00m00s
 https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey/crowdsec-crowdsec-testing-EDE2C695EC9A5A5C.pub.gpg                                               100% |   8.5 KiB/s |   2.4 KiB |  00m00s
 https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey/crowdsec-crowdsec-testing-C822EDD6B39954A1.pub.gpg                                               100% |  10.4 KiB/s |   2.4 KiB |  00m00s
 https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey/crowdsec-crowdsec-testing-FED78314A2468CCF.pub.gpg                                               100% |  11.5 KiB/s |   2.4 KiB |  00m00sImporting PGP key 0x8FEA572E:
 UserID     : "https://packagecloud.io/crowdsec/crowdsec-testing (https://packagecloud.io/docs#gpg_signing) <[email protected]>"
 Fingerprint: 62E5CC8CF50B7B79C02A79C167EE2E838FEA572E
 From       : https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey
The key was successfully imported.
Importing PGP key 0xEA83274E:
 UserID     : "Crowdsec Rpm Archive <[email protected]>"
 Fingerprint: 781AD9A69D9EAB7C6B4773ED02DA1539EA83274E
 From       : https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey/crowdsec-crowdsec-testing-EDE2C695EC9A5A5C.pub.gpg
The key was successfully imported.
Importing PGP key 0x145CE2F2:
 UserID     : "Crowdsec Team <[email protected]>"
 Fingerprint: 79B8CC3F94472AC862A8AD8DB06F1981145CE2F2
 From       : https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey/crowdsec-crowdsec-testing-C822EDD6B39954A1.pub.gpg
The key was successfully imported.
Importing PGP key 0x3CDF0DB4:
 UserID     : "Crowdsec Rpm Archive <[email protected]>"
 Fingerprint: 9082D8CACBBEB0DAB218BAB04C3D386C3CDF0DB4
 From       : https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey/crowdsec-crowdsec-testing-FED78314A2468CCF.pub.gpg
The key was successfully imported.
Importing PGP key 0x8FEA572E:
 UserID     : "https://packagecloud.io/crowdsec/crowdsec-testing (https://packagecloud.io/docs#gpg_signing) <[email protected]>"
 Fingerprint: 62E5CC8CF50B7B79C02A79C167EE2E838FEA572E
 From       : https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey
The key was successfully imported.
Importing PGP key 0xEA83274E:
 UserID     : "Crowdsec Rpm Archive <[email protected]>"
 Fingerprint: 781AD9A69D9EAB7C6B4773ED02DA1539EA83274E
 From       : https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey/crowdsec-crowdsec-testing-EDE2C695EC9A5A5C.pub.gpg
The key was successfully imported.
Importing PGP key 0x145CE2F2:
 UserID     : "Crowdsec Team <[email protected]>"
 Fingerprint: 79B8CC3F94472AC862A8AD8DB06F1981145CE2F2
 From       : https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey/crowdsec-crowdsec-testing-C822EDD6B39954A1.pub.gpg
The key was successfully imported.
Importing PGP key 0x3CDF0DB4:
 UserID     : "Crowdsec Rpm Archive <[email protected]>"
 Fingerprint: 9082D8CACBBEB0DAB218BAB04C3D386C3CDF0DB4
 From       : https://packagecloud.io/crowdsec/crowdsec-testing/gpgkey/crowdsec-crowdsec-testing-FED78314A2468CCF.pub.gpg
The key was successfully imported.

 crowdsec_crowdsec-testing                                                                                                                                 100% | 882.0   B/s |   3.8 KiB |  00m04s
 crowdsec_crowdsec-testing-source                                                                                                                          100% | 727.0   B/s |   3.4 KiB |  00m05s

Installs the keys correctly and sudo dnf install crowdsec -y works fine

sudo dnf install crowdsec
Updating and loading repositories:
Repositories loaded.
Package                                                          Arch          Version                                                          Repository                                     Size
Installing:
 crowdsec                                                        x86_64        1.6.4~rc2-1.el9                                                  crowdsec_crowdsec-testing                 248.4 MiB
Installing dependencies:
 cronie                                                          x86_64        1.7.2-2.fc41                                                     fedora                                    309.9 KiB
 cronie-anacron                                                  x86_64        1.7.2-2.fc41                                                     fedora                                     45.8 KiB
 crontabs                                                        noarch        1.11^20190603git9e74f2d-4.fc41                                   fedora                                     20.8 KiB

Transaction Summary:
 Installing:         4 packages

Total size of inbound packages is 74 MiB. Need to download 74 MiB.
After this operation, 249 MiB extra will be used (install 249 MiB, remove 0 B).
Is this ok [y/N]:

Copy link
Contributor

@sabban sabban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@LaurenceJJones LaurenceJJones merged commit b3810c7 into crowdsecurity:master Nov 13, 2024
17 checks passed
@LaurenceJJones LaurenceJJones deleted the fedora_41_vagrant branch November 13, 2024 14:17
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