Skip to content

Instantly share code, notes, and snippets.

cat /etc/polkit-1/rules.d/60-libvirt.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.libvirt.unix.manage" && subject.active && subject.user == "ares") {
return polkit.Result.YES;
}
});
upgrade
Updating Subscription Management repositories.
Poslední kontrola metadat: před 0:11:31, Po 6. června 2022, 15:45:51 CEST.
Chyba:
Problém 1: package rubygem-google-api-client-0.50.0-1.el8.noarch requires rubygem(rexml), but none of the providers can be installed
- cannot install the best update candidate for package rubygem-google-api-client-0.33.2-2.el8.noarch
- package rubygem-rexml-3.2.5-139.module_el8.5.0+916+17ac145a.noarch is filtered out by modular filtering
- package rubygem-rexml-3.2.5-140.module_el8.6.0+989+38dab702.noarch is filtered out by modular filtering
Problém 2: package rubygem-fog-google-1.15.0-1.el8.noarch requires rubygem(google-api-client) >= 0.44.2, but none of the providers can be installed
- package rubygem-fog-google-1.15.0-1.el8.noarch requires (rubygem(google-api-client) >= 0.44.2 with rubygem(google-api-client) < 0.51), but none of the providers can be installed
LC_ALL=C dnf upgrade
Updating Subscription Management repositories.
Last metadata expiration check: 2:00:25 ago on Wed May 4 08:59:44 2022.
Error:
Problem 1: cannot install the best update candidate for package python2-qpid-1.37.0-1.el8.noarch
- nothing provides /usr/bin/python needed by python2-qpid-1.37.0-4.el7.noarch
- nothing provides python-saslwrapper needed by python2-qpid-1.37.0-4.el7.noarch
Problem 2: package python3-tracer-0.7.5-2.el8.noarch requires tracer-common = 0.7.5-2.el8, but none of the providers can be installed
- cannot install both tracer-common-0.7.8-1.el7.noarch and tracer-common-0.7.5-2.el8.noarch
- cannot install the best update candidate for package tracer-common-0.7.5-2.el8.noarch
Error: Transaction test error:
file /usr/lib64/python3.6/site-packages/gi/__init__.py from install of python3-gobject-base-3.28.3-2.el8.x86_64 conflicts with file from package python36-gobject-base-3.22.0-6.el7.x86_64
file /usr/lib64/python3.6/site-packages/gi/__pycache__/__init__.cpython-36.opt-1.pyc from install of python3-gobject-base-3.28.3-2.el8.x86_64 conflicts with file from package python36-gobject-base-3.22.0-6.el7.x86_64
file /usr/lib64/python3.6/site-packages/gi/__pycache__/__init__.cpython-36.pyc from install of python3-gobject-base-3.28.3-2.el8.x86_64 conflicts with file from package python36-gobject-base-3.22.0-6.el7.x86_64
file /usr/lib64/python3.6/site-packages/gi/__pycache__/_constants.cpython-36.opt-1.pyc from install of python3-gobject-base-3.28.3-2.el8.x86_64 conflicts with file from package python36-gobject-base-3.22.0-6.el7.x86_64
file /usr/lib64/python3.6/site-packages/gi/__pycache__/_constants.cpython-36.pyc from install of python3-gobject-base-3.28.3-2.el8.x86_64 conflicts w
Problem: package rubygem-fx-0.5.0-2.el8.noarch requires rubygem(railties) >= 4.0.0, but none of the providers can be installed
- package rubygem-katello-4.5.0-0.2.pre.master.20220407182249git24d0ba8.el8.noarch requires rubygem(fx) < 1.0, but none of the providers can be installed
- package rubygem-railties-6.0.4.7-1.el8.noarch requires rubygem(thor) < 2.0, but none of the providers can be installed
- conflicting requests
============================================================
ERRORS
============================================================
2022-04-08 14:45:18.795449 [ERROR] Actor: dnf_transaction_check
Message: DNF execution failed with non zero exit code.
STDOUT:
Last metadata expiration check: 0:01:08 ago on Fri Apr 8 14:43:49 2022.
Package foreman-installer-katello-1:3.3.0-0.2.develop.20220314031229git889105c.el7.noarch is already installed.
Package python3-cffi-1.14.5-1.el7.x86_64 is already installed.
Error: Package: tfm-rubygem-qpid_proton-0.36.0-1.el7.x86_64 (@katello)
Requires: qpid-proton-c = 0.36.0
Removing: qpid-proton-c-0.36.0-1.el7.x86_64 (@epel)
qpid-proton-c = 0.36.0-1.el7
Updated By: qpid-proton-c-0.37.0-1.el7.x86_64 (epel)
qpid-proton-c = 0.37.0-1.el7
Available: qpid-proton-c-0.14.0-2.el7.x86_64 (extras)
qpid-proton-c = 0.14.0-2.el7
Available: qpid-proton-c-0.34.0-2.el7.x86_64 (group_qpid-qpid)
qpid-proton-c = 0.34.0-2.el7
Satellite 7.0 RHEL8 2.2 kB/s | 2.5 kB 00:01
Error:
Problem 1: package rubygem-foreman-tasks-5.2.1-1.el8sat.noarch requires rubygem(sinatra), but none of the providers can be installed
- package satellite-common-7.0.0-0.4.beta.el8sat.noarch obsoletes rubygem-sinatra provided by rubygem-sinatra-2.1.0-2.el8sat.noarch
- cannot install the best update candidate for package rubygem-sinatra-2.1.0-2.el8sat.noarch
- cannot install the best update candidate for package rubygem-foreman-tasks-5.2.0-1.el8sat.noarch
Problem 2: package foreman-proxy-3.1.1-1.el8sat.noarch requires rubygem(sinatra), but none of the providers can be installed
- package satellite-common-7.0.0-0.4.beta.el8sat.noarch obsoletes rubygem-sinatra provided by rubygem-sinatra-2.1.0-2.el8sat.noarch
- cannot install the best update candidate for package satellite-common-7.0.0-0.3.beta.el8sat.noarch
- cannot install
<% if puppet_enabled %>
<% if host_param_true?('enable-puppetlabs-repo') || host_param_true?('enable-official-puppet7-repo') || host_param_true?('enable-puppetlabs-puppet6-repo')|| host_param_true?('enable-puppetlabs-puppet5-repo') -%>
<%= snippet 'puppetlabs_repo' %>
<% end -%>
<%= snippet 'puppet_setup' %>
<% end -%>
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 88337608..0a5f8aa4 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -178,3 +178,6 @@ Rails/ReadWriteAttribute:
Rails/TimeZone:
Exclude:
- 'app/models/foreman_openscap/arf_report.rb'
+
+Rails/HasManyOrHasOneDependent: