Skip to content

Fixes #37897 - Separate autosign key generation and configuration #54

Fixes #37897 - Separate autosign key generation and configuration

Fixes #37897 - Separate autosign key generation and configuration #54

Triggered via pull request October 11, 2024 10:18
Status Failure
Total duration 9m 6s
Artifacts 29

ruby_tests.yml

on: pull_request
Rubocop  /  Rubocop
31s
Rubocop / Rubocop
Ruby  /  Setup matrix
4s
Ruby / Setup matrix
Matrix: Ruby / existing-database
Matrix: Ruby / test
Ruby  /  Test suite
4s
Ruby / Test suite
Fit to window
Zoom out
Zoom in

Annotations

17 errors
Ruby / test:foreman_salt - Foreman develop with Ruby 3.0 and Node 14 on PostgreSQL 13: foreman_salt/test/functional/hosts_controller_test.rb#L37
Failure: test_0002_should change the salt master proxy Expected "The Salt Master puppet ca proxy could not be set for hosts: host9 (undefined method `host' for #<Host::Managed id: nil, name: \"host9\", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: nil, operatingsystem_id: nil, ptable_id: nil, medium_id: nil, build: false, comment: \"\", disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 135138680, owner_type: \"User\", enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: 447626438, location_id: 255093256, type: \"Host::Managed\", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, salt_proxy_id: nil, grub_pass: nil, salt_environment_id: nil, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: nil, initiated_at: nil, build_errors: nil, salt_autosign_key: nil, salt_status: nil, creator_id: 135138680>) and host10 (undefined method `host' for #<Host::Managed id: nil, name: \"host10\", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: nil, operatingsystem_id: nil, ptable_id: nil, medium_id: nil, build: false, comment: \"\", disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 135138680, owner_type: \"User\", enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: 447626438, location_id: 255093256, type: \"Host::Managed\", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, salt_proxy_id: nil, grub_pass: nil, salt_environment_id: nil, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: nil, initiated_at: nil, build_errors: nil, salt_autosign_key: nil, salt_status: nil, creator_id: 135138680>)" to be empty.
Ruby / test:foreman_salt - Foreman develop with Ruby 3.0 and Node 14 on PostgreSQL 13: foreman_salt/test/unit/host_extensions_test.rb#L469
Failure: test_0001_host autosign is created before host is provisioned NoMethodError: undefined method `host' for #<Host::Managed id: nil, name: "host48", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: nil, operatingsystem_id: nil, ptable_id: nil, medium_id: nil, build: false, comment: "", disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 135138680, owner_type: "User", enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: 447626438, location_id: 255093256, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, salt_proxy_id: nil, grub_pass: nil, salt_environment_id: nil, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: nil, initiated_at: nil, build_errors: nil, salt_autosign_key: "asdfasdfasfasdf", salt_status: nil, creator_id: 135138680> foreman_salt/app/models/foreman_salt/concerns/host_managed_extensions.rb:111:in `queue_ensure_salt_autosign' app/models/concerns/orchestration.rb:83:in `valid?' foreman_salt/test/unit/host_extensions_test.rb:79:in `block (2 levels) in <class:HostExtensionsTest>'
Ruby / test:foreman_salt - Foreman develop with Ruby 3.0 and Node 14 on PostgreSQL 13: foreman_salt/test/unit/host_extensions_test.rb#L469
Failure: test_0005_host does not accept salt modules outside its environment NoMethodError: undefined method `host' for #<Host::Managed id: nil, name: "host57", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: nil, operatingsystem_id: nil, ptable_id: nil, medium_id: nil, build: false, comment: "", disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 135138680, owner_type: "User", enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: 447626438, location_id: 255093256, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, salt_proxy_id: nil, grub_pass: nil, salt_environment_id: 7, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: nil, initiated_at: nil, build_errors: nil, salt_autosign_key: nil, salt_status: nil, creator_id: 135138680> foreman_salt/app/models/foreman_salt/concerns/host_managed_extensions.rb:111:in `queue_ensure_salt_autosign' app/models/concerns/orchestration.rb:83:in `valid?' app/models/concerns/foreman/sti.rb:22:in `save' foreman_salt/test/unit/host_extensions_test.rb:52:in `block in <class:HostExtensionsTest>'
Ruby / test:foreman_salt - Foreman develop with Ruby 3.0 and Node 18 on PostgreSQL 13: foreman_salt/test/unit/host_extensions_test.rb#L469
Failure: test_0001_host autosign is created before host is provisioned NoMethodError: undefined method `host' for #<Host::Managed id: nil, name: "host4", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: nil, operatingsystem_id: nil, ptable_id: nil, medium_id: nil, build: false, comment: "", disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 135138680, owner_type: "User", enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: 447626438, location_id: 255093256, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, salt_proxy_id: nil, grub_pass: nil, salt_environment_id: nil, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: nil, initiated_at: nil, build_errors: nil, salt_autosign_key: "asdfasdfasfasdf", salt_status: nil, creator_id: 135138680> foreman_salt/app/models/foreman_salt/concerns/host_managed_extensions.rb:111:in `queue_ensure_salt_autosign' app/models/concerns/orchestration.rb:83:in `valid?' foreman_salt/test/unit/host_extensions_test.rb:79:in `block (2 levels) in <class:HostExtensionsTest>'
Ruby / test:foreman_salt - Foreman develop with Ruby 3.0 and Node 18 on PostgreSQL 13: foreman_salt/test/unit/host_extensions_test.rb#L469
Failure: test_0005_host does not accept salt modules outside its environment NoMethodError: undefined method `host' for #<Host::Managed id: nil, name: "host31", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: nil, operatingsystem_id: nil, ptable_id: nil, medium_id: nil, build: false, comment: "", disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 135138680, owner_type: "User", enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: 447626438, location_id: 255093256, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, salt_proxy_id: nil, grub_pass: nil, salt_environment_id: 13, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: nil, initiated_at: nil, build_errors: nil, salt_autosign_key: nil, salt_status: nil, creator_id: 135138680> foreman_salt/app/models/foreman_salt/concerns/host_managed_extensions.rb:111:in `queue_ensure_salt_autosign' app/models/concerns/orchestration.rb:83:in `valid?' app/models/concerns/foreman/sti.rb:22:in `save' foreman_salt/test/unit/host_extensions_test.rb:52:in `block in <class:HostExtensionsTest>'
Ruby / test:foreman_salt - Foreman develop with Ruby 3.0 and Node 18 on PostgreSQL 13: foreman_salt/test/functional/hosts_controller_test.rb#L37
Failure: test_0002_should change the salt master proxy Expected "The Salt Master puppet ca proxy could not be set for hosts: host56 (undefined method `host' for #<Host::Managed id: nil, name: \"host56\", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: nil, operatingsystem_id: nil, ptable_id: nil, medium_id: nil, build: false, comment: \"\", disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 135138680, owner_type: \"User\", enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: 447626438, location_id: 255093256, type: \"Host::Managed\", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, salt_proxy_id: nil, grub_pass: nil, salt_environment_id: nil, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: nil, initiated_at: nil, build_errors: nil, salt_autosign_key: nil, salt_status: nil, creator_id: 135138680>) and host57 (undefined method `host' for #<Host::Managed id: nil, name: \"host57\", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: nil, operatingsystem_id: nil, ptable_id: nil, medium_id: nil, build: false, comment: \"\", disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 135138680, owner_type: \"User\", enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: 447626438, location_id: 255093256, type: \"Host::Managed\", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, salt_proxy_id: nil, grub_pass: nil, salt_environment_id: nil, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: nil, initiated_at: nil, build_errors: nil, salt_autosign_key: nil, salt_status: nil, creator_id: 135138680>)" to be empty.
Ruby / test:foreman_salt - Foreman develop with Ruby 2.7 and Node 14 on PostgreSQL 13: foreman_salt/test/functional/hosts_controller_test.rb#L37
Failure: test_0002_should change the salt master proxy Expected "The Salt Master puppet ca proxy could not be set for hosts: host13 (undefined method `host' for #<Host::Managed:0x0000556337311948>) and host14 (undefined method `host' for #<Host::Managed:0x0000556337bc3460>)" to be empty.
Ruby / test:foreman_salt - Foreman develop with Ruby 2.7 and Node 14 on PostgreSQL 13: foreman_salt/test/unit/host_extensions_test.rb#L469
Failure: test_0005_host does not accept salt modules outside its environment NoMethodError: undefined method `host' for #<Host::Managed:0x00005563392bace0> foreman_salt/app/models/foreman_salt/concerns/host_managed_extensions.rb:111:in `queue_ensure_salt_autosign' app/models/concerns/orchestration.rb:83:in `valid?' app/models/concerns/foreman/sti.rb:22:in `save' foreman_salt/test/unit/host_extensions_test.rb:52:in `block in <class:HostExtensionsTest>'
Ruby / test:foreman_salt - Foreman develop with Ruby 2.7 and Node 14 on PostgreSQL 13: foreman_salt/test/unit/host_extensions_test.rb#L469
Failure: test_0001_host autosign is created before host is provisioned NoMethodError: undefined method `host' for #<Host::Managed:0x000055633a465670> foreman_salt/app/models/foreman_salt/concerns/host_managed_extensions.rb:111:in `queue_ensure_salt_autosign' app/models/concerns/orchestration.rb:83:in `valid?' foreman_salt/test/unit/host_extensions_test.rb:79:in `block (2 levels) in <class:HostExtensionsTest>'
Ruby / test:foreman_salt - Foreman develop with Ruby 2.7 and Node 18 on PostgreSQL 13: foreman_salt/test/functional/hosts_controller_test.rb#L37
Failure: test_0002_should change the salt master proxy Expected "The Salt Master puppet ca proxy could not be set for hosts: host12 (undefined method `host' for #<Host::Managed:0x000055a6b8c38ed0>) and host13 (undefined method `host' for #<Host::Managed:0x000055a6b96d1c98>)" to be empty.
Ruby / test:foreman_salt - Foreman develop with Ruby 2.7 and Node 18 on PostgreSQL 13: foreman_salt/test/unit/host_extensions_test.rb#L469
Failure: test_0001_host autosign is created before host is provisioned NoMethodError: undefined method `host' for #<Host::Managed:0x000055a6b857e7e8> foreman_salt/app/models/foreman_salt/concerns/host_managed_extensions.rb:111:in `queue_ensure_salt_autosign' app/models/concerns/orchestration.rb:83:in `valid?' foreman_salt/test/unit/host_extensions_test.rb:79:in `block (2 levels) in <class:HostExtensionsTest>'
Ruby / test:foreman_salt - Foreman develop with Ruby 2.7 and Node 18 on PostgreSQL 13: foreman_salt/test/unit/host_extensions_test.rb#L469
Failure: test_0005_host does not accept salt modules outside its environment NoMethodError: undefined method `host' for #<Host::Managed:0x00007fee3db6ba38> foreman_salt/app/models/foreman_salt/concerns/host_managed_extensions.rb:111:in `queue_ensure_salt_autosign' app/models/concerns/orchestration.rb:83:in `valid?' app/models/concerns/foreman/sti.rb:22:in `save' foreman_salt/test/unit/host_extensions_test.rb:52:in `block in <class:HostExtensionsTest>'
Ruby / Test suite
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
Gemfile-ruby-27-node-14-pg-13-foreman-develop-dbseed.lock
4.93 KB
Gemfile-ruby-27-node-14-pg-13-foreman-develop-pluginassetsprecompileforemansaltRAILSENVproductionDATABASEURLnulldbnohost.lock
4.93 KB
Gemfile-ruby-27-node-14-pg-13-foreman-develop-testforemansalt.lock
4.93 KB
Gemfile-ruby-27-node-18-pg-13-foreman-develop-dbseed.lock
4.93 KB
Gemfile-ruby-27-node-18-pg-13-foreman-develop-pluginassetsprecompileforemansaltRAILSENVproductionDATABASEURLnulldbnohost.lock
4.93 KB
Gemfile-ruby-27-node-18-pg-13-foreman-develop-testforemansalt.lock
4.93 KB
Gemfile-ruby-30-node-14-pg-13-foreman-develop-dbseed.lock
4.94 KB
Gemfile-ruby-30-node-14-pg-13-foreman-develop-pluginassetsprecompileforemansaltRAILSENVproductionDATABASEURLnulldbnohost.lock
4.94 KB
Gemfile-ruby-30-node-14-pg-13-foreman-develop-testforemansalt.lock
4.94 KB
Gemfile-ruby-30-node-18-pg-13-foreman-develop-dbseed.lock
4.94 KB
Gemfile-ruby-30-node-18-pg-13-foreman-develop-pluginassetsprecompileforemansaltRAILSENVproductionDATABASEURLnulldbnohost.lock
4.94 KB
Gemfile-ruby-30-node-18-pg-13-foreman-develop-testforemansalt.lock
4.94 KB
Gemfile-theforeman-actions-rubocop-ruby-2.7.lock
1.58 KB
all_react_app_exports-ruby-27-node-14-pg-13-foreman-develop-testforemansalt.js
8.06 KB
all_react_app_exports-ruby-27-node-18-pg-13-foreman-develop-testforemansalt.js
8.06 KB
all_react_app_exports-ruby-30-node-14-pg-13-foreman-develop-testforemansalt.js
8.06 KB
all_react_app_exports-ruby-30-node-18-pg-13-foreman-develop-testforemansalt.js
8.06 KB
logs-ruby-27-node-14-pg-13-foreman-develop-testforemansalt Expired
48 KB
logs-ruby-27-node-18-pg-13-foreman-develop-testforemansalt Expired
47.2 KB
logs-ruby-30-node-14-pg-13-foreman-develop-testforemansalt Expired
49.4 KB
logs-ruby-30-node-18-pg-13-foreman-develop-testforemansalt Expired
49.1 KB
package-lock-ruby-27-node-14-pg-13-foreman-develop-pluginassetsprecompileforemansaltRAILSENVproductionDATABASEURLnulldbnohost.json
210 KB
package-lock-ruby-27-node-14-pg-13-foreman-develop-testforemansalt.json
210 KB
package-lock-ruby-27-node-18-pg-13-foreman-develop-pluginassetsprecompileforemansaltRAILSENVproductionDATABASEURLnulldbnohost.json
227 KB
package-lock-ruby-27-node-18-pg-13-foreman-develop-testforemansalt.json
227 KB
package-lock-ruby-30-node-14-pg-13-foreman-develop-pluginassetsprecompileforemansaltRAILSENVproductionDATABASEURLnulldbnohost.json
210 KB
package-lock-ruby-30-node-14-pg-13-foreman-develop-testforemansalt.json
210 KB
package-lock-ruby-30-node-18-pg-13-foreman-develop-pluginassetsprecompileforemansaltRAILSENVproductionDATABASEURLnulldbnohost.json
227 KB
package-lock-ruby-30-node-18-pg-13-foreman-develop-testforemansalt.json
227 KB