theforeman / foreman_fog_proxmox

Foreman plugin to add Proxmox compute resource based on fog-proxmox gem
GNU General Public License v3.0
106 stars 31 forks source link

Unknown attribute 'model' for Nic::Managed when importing VM #155

Closed rm-td closed 4 years ago

rm-td commented 4 years ago

Unknown attribute 'model' for Nic::Managed when importing VM

Prerequisites

Please check (put an X between the brackets) the following items before posting any issue:

Description

When attempting to import a vm as managed or unmanaged host, error message received "Oops, we're sorry but something went wrong unknown attribute 'model' for Nic::Managed".

Environment

cat /etc/centos-release CentOS 7.8.2003

rpm -qa | grep foreman-release foreman-release-scl-7-2.el7.noarch foreman-release-2.0.0-1.el7.noarch

rpm -qa | grep proxmox tfm-rubygem-fog-proxmox-0.12.0-1.el7.noarch tfm-rubygem-foreman_fog_proxmox-0.11.1-1.fm2_0.el7.noarch

major packages from proxmox server: proxmox-ve: 6.2-1 (running kernel: 5.4.41-1-pve) pve-manager: 6.2-6 (running version: 6.2-6/ee1d7754) pve-kernel-5.4: 6.2-2 pve-kernel-helper: 6.2-2

Version

rpm -qa | grep proxmox tfm-rubygem-fog-proxmox-0.12.0-1.el7.noarch tfm-rubygem-foreman_fog_proxmox-0.11.1-1.fm2_0.el7.noarch

also occured on slightly earlier version but updated due to another issue already fixed.

Steps to reproduce

  1. After install rpms check Adminster > About > Providers observe Proxmox showing green Installed
  2. Create Compute Resource, enter Proxmox server details, Test returns OK.
  3. Browsing Compute Resources at least permits display of all VMs on proxmox host and further permits creation and deletion of VM, all successful.
  4. Under Infrastructure > Compute Resources > myproxmoxserver > Virtual Machines, selecting a machine and clicking "import as managed host" or "import as unmanaged host" results in error message "Oops, we're sorry but something went wrong unknown attribute 'model' for Nic::Managed."

Expected behavior

VM to import correctly into foreman with attributes intact.

[What actually happens]

Foreman returns page with error message ""Oops, we're sorry but something went wrong unknown attribute 'model' for Nic::Managed."

Reproduces how often:

Every time

Additional Information

Seems to occur regardless of what nic type is specified, eg e1000 or virtio. Grateful for advice

hakong commented 4 years ago

Same here.

Error screenshot: image

production.log:

2020-06-14T23:47:27 [I|app|8049b8a6] Started GET "/compute_resources/1-ITO%20Lab%20PVE/vms/100/import?type=managed" for 123.123.123.123 at 2020-06-14 23:47:27 +0000
2020-06-14T23:47:27 [I|app|8049b8a6] Processing by ComputeResourcesVmsController#import as HTML
2020-06-14T23:47:27 [I|app|8049b8a6]   Parameters: {"type"=>"managed", "compute_resource_id"=>"1-ITO Lab PVE", "id"=>"100"}
2020-06-14T23:47:28 [W|app|8049b8a6] Action failed
2020-06-14T23:47:28 [I|app|8049b8a6]   Rendering common/500.html.erb within layouts/application
2020-06-14T23:47:28 [I|app|8049b8a6]   Rendered common/500.html.erb within layouts/application (5.7ms)
2020-06-14T23:47:28 [I|app|8049b8a6]   Rendered layouts/_application_content.html.erb (0.5ms)
2020-06-14T23:47:28 [I|app|8049b8a6]   Rendering layouts/base.html.erb
2020-06-14T23:47:28 [I|app|8049b8a6]   Rendered layouts/base.html.erb (3.4ms)
2020-06-14T23:47:28 [I|app|8049b8a6] Completed 500 Internal Server Error in 383ms (Views: 12.4ms | ActiveRecord: 4.0ms)

OS version: kernel-3.10.0-1127.el7.x86_64 / CentOS Linux release 7.8.2003 (Core)

Package versions (foreman server):

candlepin-3.1.7-1.el7.noarch
candlepin-selinux-3.1.7-1.el7.noarch
foreman-2.0.1-1.el7.noarch
foreman-cli-2.0.1-1.el7.noarch
foreman-debug-2.0.1-1.el7.noarch
foreman-dynflow-sidekiq-2.0.1-1.el7.noarch
foreman-installer-2.0.1-1.el7.noarch
foreman-installer-katello-2.0.1-1.el7.noarch
foreman-postgresql-2.0.1-1.el7.noarch
foreman-proxy-2.0.1-1.el7.noarch
foreman-release-2.0.1-1.el7.noarch
foreman-release-scl-7-2.el7.noarch
foreman-selinux-2.0.1-1.el7.noarch
katello-3.15.1-1.el7.noarch
katello-certs-tools-2.6.0-1.el7.noarch
katello-client-bootstrap-1.7.4-1.el7.noarch
katello-common-3.15.1-1.el7.noarch
katello-debug-3.15.1-1.el7.noarch
katello-default-ca-1.0-1.noarch
katello-host-tools-3.5.3-1.el7.noarch
katello-host-tools-fact-plugin-3.5.3-1.el7.noarch
katello-repos-3.15.1-1.el7.noarch
katello-selinux-3.1.1-1.el7.noarch
katello-server-ca-1.0-3.noarch
pulp-client-1.0-1.noarch
pulp-deb-plugins-1.10.1-1.el7.noarch
pulp-docker-plugins-3.2.6-1.el7.noarch
pulp-katello-1.0.3-1.el7.noarch
pulp-puppet-plugins-2.21.2-1.el7.noarch
pulp-puppet-tools-2.21.2-1.el7.noarch
pulp-rpm-plugins-2.21.2-1.el7.noarch
pulp-selinux-2.21.2-1.el7.noarch
pulp-server-2.21.2-1.el7.noarch
pulpcore-selinux-1.0.0-2.el7.x86_64
python-gofer-qpid-2.12.5-3.el7.noarch
python-pulp-common-2.21.2-1.el7.noarch
python-pulp-deb-common-1.10.1-1.el7.noarch
python-pulp-docker-common-3.2.6-1.el7.noarch
python-pulp-oid_validation-2.21.2-1.el7.noarch
python-pulp-puppet-common-2.21.2-1.el7.noarch
python-pulp-repoauth-2.21.2-1.el7.noarch
python-pulp-rpm-common-2.21.2-1.el7.noarch
python-pulp-streamer-2.21.2-1.el7.noarch
python2-qpid-1.37.0-4.el7.noarch
python2-qpid-proton-0.30.0-2.el7.x86_64
python2-qpid-qmf-1.39.0-1.el7.x86_64
python3-pulp-2to3-migration-0.1.0-1.el7.noarch
python3-pulp-container-1.0.0-1.el7.noarch
python3-pulp-file-0.1.1-1.el7.noarch
python3-pulpcore-3.0.1-2.el7.noarch
qpid-cpp-client-1.39.0-1.el7.x86_64
qpid-cpp-client-devel-1.39.0-1.el7.x86_64
qpid-cpp-server-1.39.0-1.el7.x86_64
qpid-cpp-server-linearstore-1.39.0-1.el7.x86_64
qpid-dispatch-router-1.11.0-1.el7.x86_64
qpid-proton-c-0.30.0-2.el7.x86_64
qpid-qmf-1.39.0-1.el7.x86_64
qpid-tools-1.39.0-1.el7.noarch
rubygem-foreman_maintain-0.6.2-1.el7.noarch
tfm-rubygem-actioncable-5.2.1-3.el7.noarch
tfm-rubygem-actionmailer-5.2.1-3.el7.noarch
tfm-rubygem-actionpack-5.2.1-3.el7.noarch
tfm-rubygem-actionview-5.2.1-3.el7.noarch
tfm-rubygem-activejob-5.2.1-3.el7.noarch
tfm-rubygem-activemodel-5.2.1-3.el7.noarch
tfm-rubygem-activerecord-5.2.1-3.el7.noarch
tfm-rubygem-activerecord-import-1.0.0-2.el7.noarch
tfm-rubygem-activerecord-session_store-1.1.1-3.el7.noarch
tfm-rubygem-activestorage-5.2.1-3.el7.noarch
tfm-rubygem-activesupport-5.2.1-3.el7.noarch
tfm-rubygem-addressable-2.6.0-1.el7.noarch
tfm-rubygem-algebrick-0.7.3-6.el7.noarch
tfm-rubygem-ancestry-3.0.0-4.el7.noarch
tfm-rubygem-anemone-0.7.2-17.el7.noarch
tfm-rubygem-angular-rails-templates-1.0.2-5.el7.noarch
tfm-rubygem-apipie-bindings-0.3.0-1.el7.noarch
tfm-rubygem-apipie-params-0.0.5-3.el7.noarch
tfm-rubygem-apipie-rails-0.5.17-2.el7.noarch
tfm-rubygem-arel-9.0.0-3.el7.noarch
tfm-rubygem-audited-4.9.0-2.el7.noarch
tfm-rubygem-awesome_print-1.8.0-4.el7.noarch
tfm-rubygem-bcrypt-3.1.12-1.el7.x86_64
tfm-rubygem-builder-3.2.3-3.el7.noarch
tfm-rubygem-bundler_ext-0.4.1-4.el7.noarch
tfm-rubygem-clamp-1.1.2-4.el7.noarch
tfm-rubygem-concurrent-ruby-1.1.6-1.el7.noarch
tfm-rubygem-concurrent-ruby-edge-0.6.0-1.fm2_0.el7.noarch
tfm-rubygem-connection_pool-2.2.2-1.el7.noarch
tfm-rubygem-crass-1.0.4-3.el7.noarch
tfm-rubygem-css_parser-1.4.7-3.el7.noarch
tfm-rubygem-daemons-1.2.3-5.el7.noarch
tfm-rubygem-deacon-1.0.0-3.el7.noarch
tfm-rubygem-deep_cloneable-3.0.0-2.el7.noarch
tfm-rubygem-deface-1.5.3-2.el7.noarch
tfm-rubygem-diffy-3.0.1-5.el7.noarch
tfm-rubygem-domain_name-0.5.20160310-3.el7.noarch
tfm-rubygem-dynflow-1.4.3-1.fm2_0.el7.noarch
tfm-rubygem-erubi-1.7.1-3.el7.noarch
tfm-rubygem-ethon-0.12.0-1.el7.noarch
tfm-rubygem-excon-0.58.0-4.el7.noarch
tfm-rubygem-facter-2.4.0-6.el7.x86_64
tfm-rubygem-faraday-0.15.4-1.el7.noarch
tfm-rubygem-fast_gettext-1.4.1-3.el7.noarch
tfm-rubygem-ffi-1.11.3-1.el7.x86_64
tfm-rubygem-fog-core-2.1.0-2.el7.noarch
tfm-rubygem-fog-json-1.2.0-2.el7.noarch
tfm-rubygem-fog-proxmox-0.12.0-1.el7.noarch
tfm-rubygem-foreman-tasks-1.1.1-1.fm2_0.el7.noarch
tfm-rubygem-foreman-tasks-core-0.3.4-1.fm2_0.el7.noarch
tfm-rubygem-foreman_ansible-5.0.1-1.fm2_0.el7.noarch
tfm-rubygem-foreman_ansible_core-3.0.3-1.fm2_0.el7.noarch
tfm-rubygem-foreman_column_view-0.4.0-3.fm1_22.el7.noarch
tfm-rubygem-foreman_discovery-16.0.1-2.fm2_0.el7.noarch
tfm-rubygem-foreman_fog_proxmox-0.11.1-1.fm2_0.el7.noarch
tfm-rubygem-foreman_remote_execution-3.2.1-1.fm2_0.el7.noarch
tfm-rubygem-foreman_remote_execution-cockpit-3.2.1-1.fm2_0.el7.noarch
tfm-rubygem-foreman_remote_execution_core-1.3.0-1.el7.noarch
tfm-rubygem-foreman_setup-7.0.0-2.fm2_0.el7.noarch
tfm-rubygem-foreman_templates-8.0.0-1.fm2_0.el7.noarch
tfm-rubygem-formatador-0.2.1-11.el7.noarch
tfm-rubygem-friendly_id-5.2.4-3.el7.noarch
tfm-rubygem-get_process_mem-0.2.1-3.el7.noarch
tfm-rubygem-gettext_i18n_rails-1.8.0-1.el7.noarch
tfm-rubygem-git-1.5.0-1.el7.noarch
tfm-rubygem-gitlab-sidekiq-fetcher-0.5.2-1.el7.noarch
tfm-rubygem-globalid-0.4.1-5.el7.noarch
tfm-rubygem-graphql-1.8.14-1.el7.noarch
tfm-rubygem-graphql-batch-0.3.10-1.el7.noarch
tfm-rubygem-gssapi-1.2.0-6.el7.noarch
tfm-rubygem-hammer_cli-2.0.0-1.el7.noarch
tfm-rubygem-hammer_cli_foreman-2.0.2-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.3.0-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.4-4.el7.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.14-1.fm2_0.el7.noarch
tfm-rubygem-hammer_cli_katello-0.21.0-2.el7.noarch
tfm-rubygem-hashie-3.6.0-1.el7.noarch
tfm-rubygem-highline-1.7.8-4.el7.noarch
tfm-rubygem-http-cookie-1.0.2-3.el7.noarch
tfm-rubygem-i18n-1.4.0-3.el7.noarch
tfm-rubygem-ipaddress-0.8.0-11.el7.noarch
tfm-rubygem-jwt-2.2.1-1.el7.noarch
tfm-rubygem-katello-3.15.1.1-1.el7.noarch
tfm-rubygem-ldap_fluff-0.4.7-4.el7.noarch
tfm-rubygem-little-plugger-1.1.4-1.el7.noarch
tfm-rubygem-locale-2.0.9-13.el7.noarch
tfm-rubygem-logging-2.2.2-4.el7.noarch
tfm-rubygem-loofah-2.2.2-4.el7.noarch
tfm-rubygem-mail-2.7.0-3.el7.noarch
tfm-rubygem-marcel-0.3.2-3.el7.noarch
tfm-rubygem-method_source-0.9.0-3.el7.noarch
tfm-rubygem-mime-types-3.2.2-3.el7.noarch
tfm-rubygem-mime-types-data-3.2018.0812-3.el7.noarch
tfm-rubygem-mimemagic-0.3.2-3.el7.noarch
tfm-rubygem-mini_mime-1.0.0-3.el7.noarch
tfm-rubygem-mini_portile2-2.3.0-3.el7.noarch
tfm-rubygem-multi_json-1.14.1-1.el7.noarch
tfm-rubygem-multipart-post-2.0.0-1.el7.noarch
tfm-rubygem-mustermann-1.0.2-3.el7.noarch
tfm-rubygem-net-ldap-0.16.1-1.el7.noarch
tfm-rubygem-net-ping-2.0.1-3.el7.noarch
tfm-rubygem-net-scp-1.2.1-3.el7.noarch
tfm-rubygem-net-ssh-4.2.0-1.el7.noarch
tfm-rubygem-netrc-0.11.0-4.el7.noarch
tfm-rubygem-nio4r-2.3.1-3.el7.x86_64
tfm-rubygem-nokogiri-1.8.4-6.el7.x86_64
tfm-rubygem-oauth-0.5.4-3.el7.noarch
tfm-rubygem-parse-cron-0.1.4-4.fm2_0.el7.noarch
tfm-rubygem-passenger-4.0.18-10.13.el7.x86_64
tfm-rubygem-passenger-native-4.0.18-10.13.el7.x86_64
tfm-rubygem-passenger-native-libs-4.0.18-10.13.el7.x86_64
tfm-rubygem-pg-1.1.4-1.el7.x86_64
tfm-rubygem-polyglot-0.3.5-2.el7.noarch
tfm-rubygem-powerbar-2.0.1-1.el7.noarch
tfm-rubygem-promise.rb-0.7.4-1.el7.noarch
tfm-rubygem-public_suffix-3.0.3-1.el7.noarch
tfm-rubygem-pulp_2to3_migration_client-0.1.0-1.el7.noarch
tfm-rubygem-pulp_ansible_client-0.2.0b1.dev0.1560866833-1.el7.noarch
tfm-rubygem-pulp_container_client-1.0.0-1.el7.noarch
tfm-rubygem-pulp_file_client-0.1.0-1.el7.noarch
tfm-rubygem-pulp_rpm_client-3.0.0-1.el7.noarch
tfm-rubygem-pulpcore_client-3.0.0-3.el7.noarch
tfm-rubygem-qpid_messaging-1.38.0-1.el7.x86_64
tfm-rubygem-rabl-0.13.1-3.el7.noarch
tfm-rubygem-rack-2.0.6-3.el7.noarch
tfm-rubygem-rack-cors-1.0.2-1.el7.noarch
tfm-rubygem-rack-jsonp-1.3.1-8.el7.noarch
tfm-rubygem-rack-protection-2.0.3-3.el7.noarch
tfm-rubygem-rack-test-1.1.0-3.el7.noarch
tfm-rubygem-rails-5.2.1-3.el7.noarch
tfm-rubygem-rails-dom-testing-2.0.3-5.el7.noarch
tfm-rubygem-rails-html-sanitizer-1.0.4-4.el7.noarch
tfm-rubygem-rails-i18n-5.1.1-3.el7.noarch
tfm-rubygem-railties-5.2.1-3.el7.noarch
tfm-rubygem-rainbow-2.2.1-3.el7.noarch
tfm-rubygem-rake-compiler-1.0.7-2.el7.noarch
tfm-rubygem-rb-inotify-0.9.7-4.el7.noarch
tfm-rubygem-record_tag_helper-1.0.1-2.el7.noarch
tfm-rubygem-redis-4.1.2-1.el7.noarch
tfm-rubygem-responders-3.0.0-2.el7.noarch
tfm-rubygem-rest-client-2.0.2-2.el7.noarch
tfm-rubygem-rkerberos-0.1.5-16.el7.x86_64
tfm-rubygem-roadie-3.4.0-2.el7.noarch
tfm-rubygem-roadie-rails-2.0.0-2.el7.noarch
tfm-rubygem-robotex-1.0.0-21.el7.noarch
tfm-rubygem-rsec-0.4.3-3.el7.noarch
tfm-rubygem-ruby2ruby-2.4.2-1.el7.noarch
tfm-rubygem-ruby_parser-3.10.1-2.el7.noarch
tfm-rubygem-rubyipmi-0.10.0-5.el7.noarch
tfm-rubygem-runcible-2.12.1-2.el7.noarch
tfm-rubygem-safemode-1.3.5-2.el7.noarch
tfm-rubygem-scoped_search-4.1.7-2.el7.noarch
tfm-rubygem-secure_headers-6.3.0-1.el7.noarch
tfm-rubygem-sequel-5.7.1-2.el7.noarch
tfm-rubygem-sexp_processor-4.10.0-5.el7.noarch
tfm-rubygem-sidekiq-5.2.7-2.el7.noarch
tfm-rubygem-sinatra-2.0.3-3.el7.noarch
tfm-rubygem-smart_proxy_ansible-3.0.1-3.fm2_0.el7.noarch
tfm-rubygem-smart_proxy_discovery-1.0.5-3.fm2_0.el7.noarch
tfm-rubygem-smart_proxy_discovery_image-1.0.9-3.fm2_0.el7.noarch
tfm-rubygem-smart_proxy_dynflow-0.2.4-3.fm2_0.el7.noarch
tfm-rubygem-smart_proxy_dynflow_core-0.2.4-2.fm2_0.el7.noarch
tfm-rubygem-smart_proxy_pulp-2.0.0-2.fm2_0.el7.noarch
tfm-rubygem-smart_proxy_remote_execution_ssh-0.3.0-1.fm2_0.el7.noarch
tfm-rubygem-sprockets-3.7.2-5.el7.noarch
tfm-rubygem-sprockets-rails-3.2.1-5.el7.noarch
tfm-rubygem-sqlite3-1.3.13-4.el7.x86_64
tfm-rubygem-sshkey-1.9.0-3.el7.noarch
tfm-rubygem-statsd-instrument-2.1.4-2.el7.noarch
tfm-rubygem-thor-0.20.0-7.el7.noarch
tfm-rubygem-thread_safe-0.3.6-5.el7.noarch
tfm-rubygem-tilt-2.0.8-3.el7.noarch
tfm-rubygem-typhoeus-1.3.1-1.el7.noarch
tfm-rubygem-tzinfo-1.2.5-3.el7.noarch
tfm-rubygem-unf-0.1.3-7.el7.noarch
tfm-rubygem-unf_ext-0.0.7.2-1.el7.x86_64
tfm-rubygem-unicode-0.4.4.4-1.el7.x86_64
tfm-rubygem-unicode-display_width-1.0.5-3.el7.noarch
tfm-rubygem-validates_lengths_from_database-0.5.0-6.el7.noarch
tfm-rubygem-webpack-rails-0.9.8-4.el7.noarch
tfm-rubygem-websocket-driver-0.7.0-3.el7.x86_64
tfm-rubygem-websocket-extensions-0.1.3-3.el7.noarch
tfm-rubygem-will_paginate-3.1.7-2.el7.noarch
tfm-rubygem-x-editable-rails-1.5.5-4.el7.noarch
tfm-runtime-6.1-0.1.el7.x86_64

Package versions (proxmox hosts):

proxmox-ve: 6.2-1 (running kernel: 5.4.41-1-pve)
pve-manager: 6.2-6 (running version: 6.2-6/ee1d7754)
pve-kernel-5.4: 6.2-2
pve-kernel-helper: 6.2-2
pve-kernel-5.3: 6.1-6
pve-kernel-5.0: 6.0-11
pve-kernel-5.4.41-1-pve: 5.4.41-1
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-5.0.21-5-pve: 5.0.21-10
pve-kernel-5.0.15-1-pve: 5.0.15-1
ceph: 14.2.9-pve1
ceph-fuse: 14.2.9-pve1
corosync: 3.0.3-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.15-pve1
libproxmox-acme-perl: 1.0.4
libpve-access-control: 6.1-1
libpve-apiclient-perl: 3.0-3
libpve-common-perl: 6.1-3
libpve-guest-common-perl: 3.0-10
libpve-http-server-perl: 3.0-5
libpve-storage-perl: 6.1-8
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.2-1
lxcfs: 4.0.3-pve2
novnc-pve: 1.1.0-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.2-7
pve-cluster: 6.1-8
pve-container: 3.1-8
pve-docs: 6.2-4
pve-edk2-firmware: 2.20200229-1
pve-firewall: 4.1-2
pve-firmware: 3.1-1
pve-ha-manager: 3.0-9
pve-i18n: 2.1-3
pve-qemu-kvm: 5.0.0-4
pve-xtermjs: 4.3.0-1
qemu-server: 6.2-3
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-1
zfsutils-linux: 0.8.4-pve1
rm-td commented 4 years ago

Reopening based on my results - does not work with package from 2.2 repo - rubygem-fog-proxmox-0.13.0-1.el8.noarch Still same error when attempting to import VM either managed or unmanaged.

Grateful for comments.

claneys commented 3 years ago

I've got the same behavior here using the plugins from DNF repositories : https://yum.theforeman.org/plugins/2.2/el8/x86_64/

# rpm -qa | grep proxmox
rubygem-fog-proxmox-0.13.0-1.el8.noarch
rubygem-foreman_fog_proxmox-0.11.1-1.fm2_2.el8.noarch
rubygem-foreman_fog_proxmox-doc-0.11.1-1.fm2_2.el8.noarch
# foreman-rake errors:fetch_log request_id=91ab8f73 
2020-10-04T23:29:21 [I|app|91ab8f73] Started GET "/compute_resources/5-hypervisor02-redpesk-iot-bzh/vms/103/import?type=unmanaged" for 127.0.0.1 at 2020-10-04 23:29:21 +0200
2020-10-04T23:29:21 [I|app|91ab8f73] Processing by ComputeResourcesVmsController#import as HTML
2020-10-04T23:29:21 [I|app|91ab8f73]   Parameters: {"type"=>"unmanaged", "compute_resource_id"=>"5-hypervisor02-redpesk-iot-bzh", "id"=>"103"}
2020-10-04T23:29:23 [W|app|91ab8f73] unknown attribute 'model' for Nic::Managed.
2020-10-04T23:29:23 [I|app|91ab8f73] Backtrace for 'unknown attribute 'model' for Nic::Managed.' error (ActiveModel::UnknownAttributeError): unknown attribute 'model' for Nic::Managed.
2020-10-04T23:29:23 [I|app|91ab8f73]   Rendering common/500.html.erb within layouts/application
2020-10-04T23:29:23 [I|app|91ab8f73]   Rendered common/500.html.erb within layouts/application (Duration: 3.3ms | Allocations: 1082)
2020-10-04T23:29:23 [I|app|91ab8f73]   Rendered layouts/_application_content.html.erb (Duration: 4.8ms | Allocations: 5658)
2020-10-04T23:29:23 [I|app|91ab8f73]   Rendering layouts/base.html.erb
2020-10-04T23:29:23 [I|app|91ab8f73]   Rendered layouts/base.html.erb (Duration: 6.2ms | Allocations: 6685)
2020-10-04T23:29:23 [I|app|91ab8f73] Completed 500 Internal Server Error in 2004ms (Views: 21.5ms | ActiveRecord: 2.5ms | Allocations: 71005)

I also launched the foreman-debug command as suggested by the error message and upload the archive which could be reached at the following url: http://debugs.theforeman.org/foreman-debug-aZmLY.tar.xz

tristanrobert commented 3 years ago

@claneys you are using release v0.11.1. Could you try with the latest: v0.12.4?

claneys commented 3 years ago

Indeed, it works. Could this be made available using the distro's package manager ? I though that I used the most updated version... I should have check the sources version to make sure.

Thanks

ginjiruu commented 3 years ago

Sorry to comment on a closed issue. Version 0.12.4 still hasn't made its way to the dnf / yum repository. In order to get the updated version in the meantime should we just uninstall the packaged version and do the gems installation or is there a better way?