Skip to content

Instantly share code, notes, and snippets.

dnf upgrade
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
Last metadata expiration check: 2:12:46 ago on Mon 11 Dec 2023 10:58:04 AM CET.
Error:
Problem 1: cannot install both python3.11-idna-3.3-4.el8.noarch from pulpcore and python3.11-idna-3.4-1.el8.noarch from @System
- cannot install the best update candidate for package python39-idna-3.3-2.el8.noarch
diff --git a/app/models/setting.rb b/app/models/setting.rb
index 84ba764..0369356 100644
--- a/app/models/setting.rb
+++ b/app/models/setting.rb
@@ -57,6 +57,15 @@ class Setting < ApplicationRecord
scoped_search :on => :id, :complete_enabled => false, :only_explicit => true, :validator => ScopedSearch::Validators::INTEGER
scoped_search on: :name, complete_value: :true, operators: ['=', '~']
+ scoped_search on: :description, ext_method: :find_by_description, operators: ['~'], :only_explicit => false, :rename => 'description'
+
Dec 5 17:59:38 foreman-nuc2 pulpcore-api[2258667]: pulp [6313e05c-8c66-44f6-844c-901993c91335]: django.request:ERROR: Internal Server Error: /pulp/api/v3/repositories/rpm/rpm/
Dec 5 17:59:38 foreman-nuc2 pulpcore-api[2258667]: Traceback (most recent call last):
Dec 5 17:59:38 foreman-nuc2 pulpcore-api[2258667]: File "/usr/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
Dec 5 17:59:38 foreman-nuc2 pulpcore-api[2258667]: return self.cursor.execute(sql, params)
Dec 5 17:59:38 foreman-nuc2 pulpcore-api[2258667]: psycopg2.errors.NotNullViolation: null value in column "info" violates not-null constraint
Dec 5 17:59:38 foreman-nuc2 pulpcore-api[2258667]: DETAIL: Failing row contains (2898b18e-0804-4888-87c5-4f966e70cb4c, 2022-12-05 16:59:37.853596+00, 2022-12-05 16:59:37.853637+00, 0, t, null, 22ed3da7-bbed-4108-b341-de7961a0958e, null).
Dec 5 17:59:38 foreman-nuc2 pulpcore-api[2258667]: The above exception was the direct cause of the following exception:
Dec 5 17:59:38 fo
root@foreman-nuc2:[~foreman][master✗]# foreman-rake errors:fetch_log request_id=2171838b
WARNING: Sidekiq::Web.sessions= is no longer relevant and will be removed in Sidekiq 7.0. /usr/share/gems/gems/sidekiq-6.3.1/lib/sidekiq/web.rb:75:in `set'
2022-11-22T14:28:54 [I|app|2171838b] Started GET "/config_reports/34662" for 10.35.206.181 at 2022-11-22 14:28:54 +0100
2022-11-22T14:28:54 [I|app|2171838b] Processing by ConfigReportsController#show as HTML
2022-11-22T14:28:54 [I|app|2171838b] Parameters: {"id"=>"34662"}
2022-11-22T14:28:54 [D|sql|2171838b] Setting Load (0.7ms) SELECT "settings".* FROM "settings" WHERE "settings"."category" = $1 AND "settings"."value" IS NOT NULL AND (updated_at >= '2022-11-22 13:06:53.503668') [["category", "Setting"]]
2022-11-22T14:28:54 [D|sql|2171838b] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 34], ["LIMIT", 1]]
2022-11-22T14:28:54 [D|sql|2171838b] Usergroup Load (0.6ms) SELECT "usergroups".* FROM "usergroups" INNER JOIN
diff --git a/test/models/nics/bond_test.rb b/test/models/nics/bond_test.rb
index 1e4418b67..5a5d86ee2 100644
--- a/test/models/nics/bond_test.rb
+++ b/test/models/nics/bond_test.rb
@@ -15,14 +15,14 @@ class BondTest < ActiveSupport::TestCase
assert bond.virtual
end
- test 'attached devices are stripped and downcased' do
+ test 'attached devices are stripped, case is preserved due to identifiers like on HPE Superdome Flex 280' do
diff --git a/app/models/nic/with_attached_devices.rb b/app/models/nic/with_attached_devices.rb
index 6ae1a9b29..749aed2ac 100644
--- a/app/models/nic/with_attached_devices.rb
+++ b/app/models/nic/with_attached_devices.rb
@@ -4,7 +4,7 @@ module Nic::WithAttachedDevices
SEPARATOR = ','
included do
- validates :attached_devices, :format => { :with => /\A[a-z0-9#{SEPARATOR}.:_-]+\Z/ }, :allow_blank => true
+ validates :attached_devices, :format => { :with => /\A[A-Za-z0-9#{SEPARATOR}.:_-]+\Z/ }, :allow_blank => true
čec 04 17:10:13 bart dnsmasq-tftp[211420]: sent /var/lib/tftpboot/grub2/grubx64.efi to 192.168.122.22
čec 04 17:10:13 bart dnsmasq-script[211420]: Unsupported action: tftp
čec 04 17:10:13 bart dnsmasq[211420]: script process exited with status 1
čec 04 17:10:13 bart dnsmasq-tftp[211420]: sent /var/lib/tftpboot/grub2/grubx64.efi to 192.168.122.22
čec 04 17:10:13 bart dnsmasq-script[211420]: Unsupported action: tftp
čec 04 17:10:13 bart dnsmasq[211420]: script process exited with status 1
čec 04 17:10:13 bart dnsmasq-tftp[211420]: sent /var/lib/tftpboot/grub2/grub.cfg-01-52-54-00-2f-61-14 to 192.168.122.22
čec 04 17:10:13 bart dnsmasq-tftp[211420]: file /var/lib/tftpboot/EFI/redhat/x86_64-efi/command.lst not found
čec 04 17:10:13 bart dnsmasq-tftp[211420]: file /var/lib/tftpboot/EFI/redhat/x86_64-efi/fs.lst not found
čec 04 17:10:13 bart dnsmasq-tftp[211420]: file /var/lib/tftpboot/EFI/redhat/x86_64-efi/crypto.lst not found
# All local (example.tst) queries are redirected to libvirt DNS provider
server=/example.com/192.168.122.1
mx-host=example.com,foreman.example.tst
ptr-record=1.122.168.192.in-addr.arpa,foreman.example.tst
# This main dnsmasq listens only on local address so libvirt can start its
# own dnsmasqs for each netwrok
listen-address=127.0.0.1
# For debugging purposes it's sometimes useful to see queries
@ares
ares / gist:d3161f7044d62b6882a34067929cdd2e
Created July 1, 2022 08:08
libvirt minimal network for Foreman
<network ipv6='yes'>
<name>default</name>
<forward mode='nat'/>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:bc:c9:ca'/>
<domain name='example.com' localOnly='yes'/>
<dns>
<host ip='192.168.122.1'>
<hostname>foreman.example.com</hostname>
</host>
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;
}
});