You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mariadb_server_install 'mariamaria' do
version '10.5'
setup_repo true
password new_resource.server_root_password
action [:install, :create]
end
See error
[2023-08-10T08:18:32-04:00] INFO: template[/etc/yum.repos.d/mariadb10.5.repo] created file /etc/yum.repos.d/mariadb10.5.repo
- create new file /etc/yum.repos.d/mariadb10.5.repo[2023-08-10T08:18:32-04:00] INFO: template[/etc/yum.repos.d/mariadb10.5.repo] updated file contents /etc/yum.repos.d/mariadb10.5.repo
- update content in file /etc/yum.repos.d/mariadb10.5.repo from none to 8b5586
--- /etc/yum.repos.d/mariadb10.5.repo 2023-08-10 08:18:32.462738245 -0400
+++ /etc/yum.repos.d/.chef-mariadb1020230810-4908-7jycms.5.repo 2023-08-10 08:18:32.462738245 -0400
@@ -1,11 +1,22 @@
+# This file was generated by Chef Infra
+# Do NOT modify this file by hand.
+
+[mariadb10.5]
+name=MariaDB.org 10.5
+baseurl=http://yum.mariadb.org/10.5/redhat/$releasever/$basearch
+enabled=1
+fastestmirror_enabled=0
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-MariaDB-10.5
+module_hotfixes=1[2023-08-10T08:18:32-04:00] INFO: template[/etc/yum.repos.d/mariadb10.5.repo] mode changed to 644
- change mode from '' to '0644'
- restore selinux security context
[2023-08-10T08:18:32-04:00] DEBUG: immediate notification from template[/etc/yum.repos.d/mariadb10.5.repo] to execute[yum clean metadata mariadb10.5] is delayed until declaration due to unified_mode
[2023-08-10T08:18:32-04:00] DEBUG: immediate notification from template[/etc/yum.repos.d/mariadb10.5.repo] to execute[yum-makecache-mariadb10.5] is delayed until declaration due to unified_mode
[2023-08-10T08:18:32-04:00] DEBUG: immediate notification from template[/etc/yum.repos.d/mariadb10.5.repo] to package[package-cache-reload-mariadb10.5] is delayed until declaration due to unified_mode
...
...
...
---- Begin output of yum -q -y makecache --disablerepo=* --enablerepo=mariadb10.5 ----
STDOUT:
STDERR: Error: Failed to download metadata for repo 'mariadb10.5': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
---- End output of yum -q -y makecache --disablerepo=* --enablerepo=mariadb10.5 ----
Ran yum -q -y makecache --disablerepo=* --enablerepo=mariadb10.5 returned 1
π Expected behavior
A valid yum repo url for redhat is generated using http://yum.mariadb.org/10.5/rhel/$releasever/$basearch instead of http://yum.mariadb.org/10.5/redhat/$releasever/$basearch
β Additional context
Will add a pull request
The text was updated successfully, but these errors were encountered:
dermarens
pushed a commit
to dermarens/mariadb
that referenced
this issue
Aug 10, 2023
* treat redhat like other members of the platform_family to generate yum repo url
Signed-off-by: Marc Arens <[email protected]>
Co-authored-by: Marc Arens <[email protected]>
π» Brief Description
yum_repo_platform_string
inhelpers.rb
doesn't consider redhat and thus generated a wrong repo url that isn't provided by yum.mariadb.orgπ₯ Cookbook version
π©βπ³ Chef-Infra Version
π© Platform details
Steps To Reproduce
Steps to reproduce the behavior:
π Expected behavior
A valid yum repo url for redhat is generated using
http://yum.mariadb.org/10.5/rhel/$releasever/$basearch
instead ofhttp://yum.mariadb.org/10.5/redhat/$releasever/$basearch
β Additional context
Will add a pull request
The text was updated successfully, but these errors were encountered: