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

Unable to edit host: Invalid identifier interface[0]. Must be net[n] with n integer >= 0 #156

Closed hakong closed 3 years ago

hakong commented 4 years ago

Unable to edit host: Invalid identifier interface[0]. Must be net[n] with n integer >= 0

Prerequisites

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

Description

Created a host. Edited it a couple of times, added an ansible role. Edit the host again, wanting to remove the ansible role, and it throws this error: image

Debug from production.log:

2020-06-15T18:09:10 [I|app|ee8573b4] Started PATCH "/hosts/7" for 123.123.132 at 2020-06-15 18:09:10 +0000
2020-06-15T18:09:10 [I|app|ee8573b4] Processing by HostsController#update as */*
2020-06-15T18:09:10 [I|app|ee8573b4]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"xx", "host"=>{"name"=>"ipa-01", "hostgroup_id"=>"2", "content_facet_attributes"=>{"lifecycle_environment_id"=>"1", "content_view_id"=>"1", "con
tent_source_id"=>"1"}, "environment_id"=>"1", "puppet_proxy_id"=>"1", "puppet_ca_proxy_id"=>"1", "ansible_role_ids"=>[""], "puppetclass_ids"=>[""], "managed"=>"true", "uuid"=>"113", "progress_report_id"=>"[FILTERED]", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "mac"=>"aa:3d:da:a2:26:6a", "identifier"=>"eth0",
"name"=>"ipa-01", "domain_id"=>"1", "subnet_id"=>"1", "ip"=>"123.123.123.123", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"id"=>"", "model"=>"virtio", "bridge"=>"vmbr0", "tag"=>"10", "rate"=>"", "queues"=>"", "firewall"=>"0", "link
_down"=>"0"}, "id"=>"9"}}, "compute_attributes"=>{"templated"=>"0", "node_id"=>"pve-01", "pool"=>"", "config_attributes"=>{"description"=>"", "boot"=>"", "onboot"=>"1", "agent"=>"1", "kvm"=>"1", "keyboard"=>"en-us", "vga"=>"std", "scsihw"=>"virtio-scsi-pci", "cpu_type"=>"kvm64", "sockets"=>"1", "cores"=>"2", "vcpus"
=>"", "cpulimit"=>"", "cpuunits"=>"", "numa"=>"0", "pcid"=>"0", "spectre"=>"0", "memory"=>"4096", "balloon"=>"4096", "shares"=>"1", "cdrom"=>"none", "cdrom_storage"=>"", "cdrom_iso"=>"", "ostype"=>"l26"}, "volumes_attributes"=>{"0"=>{"_delete"=>"", "volid"=>"hybrid-erasure:vm-113-disk-0", "storage"=>"hybrid-erasure"
, "cache"=>"none", "size"=>"32212254720", "id"=>"scsi0"}}}, "architecture_id"=>"1", "operatingsystem_id"=>"3", "medium_id"=>"", "ptable_id"=>"113", "pxe_loader"=>"PXELinux BIOS", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"5-Users", "enabled"=>"1", "comment"=>"", "overwrite"=>"false"}, "media_selector"=>"
install_media", "fakepassword"=>"[FILTERED]", "id"=>"7"}
2020-06-15T18:09:10 [D|tax|ee8573b4] Current location set to Default Location
2020-06-15T18:09:10 [D|tax|ee8573b4] Current organization set to Default Organization
2020-06-15T18:09:10 [D|tax|ee8573b4] Current organization set to none
2020-06-15T18:09:10 [D|tax|ee8573b4] Current location set to none
2020-06-15T18:09:10 [D|app|ee8573b4] Unpermitted parameter: :media_selector
2020-06-15T18:09:11 [D|tax|ee8573b4] Current organization set to Default Organization
2020-06-15T18:09:11 [D|tax|ee8573b4] Current location set to Default Location
2020-06-15T18:09:11 [I|app|6fe275c9] Started GET "/notification_recipients" for 123.123.132 at 2020-06-15 18:09:11 +0000
2020-06-15T18:09:11 [D|tax|ee8573b4] Current location set to none
2020-06-15T18:09:11 [D|tax|ee8573b4] Current organization set to none
2020-06-15T18:09:11 [D|app|ee8573b4] Enqueued task 'Deploy TFTP PXELinux config for ipa-01.domain.com' to 'Host::Managed Main' queue
2020-06-15T18:09:11 [D|app|ee8573b4] Enqueued task 'Deploy TFTP PXEGrub2 config for ipa-01.domain.com' to 'Host::Managed Main' queue
2020-06-15T18:09:11 [D|app|ee8573b4] Enqueued task 'Deploy TFTP PXEGrub config for ipa-01.domain.com' to 'Host::Managed Main' queue
2020-06-15T18:09:11 [D|app|ee8573b4] Enqueued task 'Deploy TFTP iPXE config for ipa-01.domain.com' to 'Host::Managed Main' queue
2020-06-15T18:09:11 [I|app|6fe275c9] Processing by NotificationRecipientsController#index as JSON
2020-06-15T18:09:11 [D|tax|6fe275c9] Current location set to Default Location
2020-06-15T18:09:11 [D|tax|6fe275c9] Current organization set to Default Organization
2020-06-15T18:09:11 [D|not|6fe275c9] Cache Hit: notification, reading cache for notification-5
2020-06-15T18:09:11 [D|app|6fe275c9] Body: {"notifications":[{"id":24,"seen":false,"level":"success","text":"A job 'Run Ansible roles' has finished successfully","created_at":"2020-06-15T17:30:12.456Z","group":"Jobs","actions":{"links":[{"href":"/job_invocations/19","title":"Job Details"}]}},{"id":23,"seen":false,"l
evel":"success","text":"A job 'Run Ansible roles' has finished successfully","created_at":"2020-06-15T17:25:10.578Z","group":"Jobs","actions":{"links":[{"href":"/job_invocations/18","title":"Job Details"}]}},{"id":22,"seen":false,"level":"success","text":"A job 'Run Ansible roles' has finished successfully","created
_at":"2020-06-15T17:17:07.770Z","group":"Jobs","actions":{"links":[{"href":"/job_invocations/17","title":"Job Details"}]}},{"id":21,"seen":false,"level":"success","text":"ipa-02.domain.com has been provisioned successfully","created_at":"2020-06-15T16:30:42.111Z","group":"Hosts","actions":{"links":[{"href":"/hosts/ip
a-02.domain.com","title":"Details"}]}},{"id":20,"seen":false,"level":"success","text":"ipa-01.domain.com has been provisioned successfully","created_at":"2020-06-15T16:14:49.509Z","group":"Hosts","actions":{"links":[{"href":"/hosts/ipa-01.domain.com","title":"Details"}]}},{"id":19,"seen":false,"level":"success","text":
"A job 'Run Ansible roles' has finished successfully","created_at":"2020-06-15T15:11:11.640Z","group":"Jobs","actions":{"links":[{"href":"/job_invocations/16","title":"Job Details"}]}}]}
2020-06-15T18:09:11 [I|app|6fe275c9] Completed 200 OK in 135ms (Views: 0.5ms | ActiveRecord: 22.3ms)
2020-06-15T18:09:11 [D|app|ee8573b4] pool_owner(113)
2020-06-15T18:09:12 [D|app|ee8573b4] found vm: 113 member of pool:
2020-06-15T18:09:12 [D|app|ee8573b4] found vm 113 on node pve-01
2020-06-15T18:09:12 [D|app|ee8573b4] pool_owner(113)
2020-06-15T18:09:12 [D|app|ee8573b4] found vm: 113 member of pool:
2020-06-15T18:09:12 [D|app|ee8573b4] found vm 113 on node pve-01
2020-06-15T18:09:12 [D|app|ee8573b4] Scheduling compute instance update because volid changed it's value from 'none' (String) to 'hybrid-erasure:vm-113-disk-0' (String)
2020-06-15T18:09:12 [D|app|ee8573b4] Detected a change is required for compute resource
2020-06-15T18:09:12 [D|app|ee8573b4] Enqueued task 'Compute resource update for ipa-01.domain.com' to 'Host::Managed Main' queue
2020-06-15T18:09:12 [I|app|f267eedc] Started GET "/tasks/427dfe51-035a-44e8-a499-813fe04bea3e" for 123.123.132 at 2020-06-15 18:09:12 +0000
2020-06-15T18:09:12 [I|app|f267eedc] Processing by TasksController#show as */*
2020-06-15T18:09:12 [I|app|f267eedc]   Parameters: {"id"=>"427dfe51-035a-44e8-a499-813fe04bea3e"}
2020-06-15T18:09:12 [D|app|ee8573b4] Processing task 'Compute resource update for ipa-01.domain.com' from 'Host::Managed Main'
2020-06-15T18:09:12 [I|app|ee8573b4] Update Proxmox Compute instance for ipa-01.domain.com
2020-06-15T18:09:12 [W|app|ee8573b4] Failed to update a compute ITO Lab PVE (Proxmox) instance ipa-01.domain.com: ERF42-1306 [Foreman::Exception]: Invalid identifier interface[0]. Must be net[n] with n integer >= 0
2020-06-15T18:09:12 [D|app|ee8573b4] Backtrace for 'Failed to update a compute ITO Lab PVE (Proxmox) instance ipa-01.domain.com: ERF42-1306 [Foreman::Exception]: Invalid identifier interface[0]. Must be net[n] with n integer >= 0' error (Foreman::Exception): ERF42-1306 [Foreman::Exception]: Invalid identifier interfa
ce[0]. Must be net[n] with n integer >= 0
2020-06-15T18:09:12 [W|app|ee8573b4] Rolling back due to a problem: [#<Orchestration::Task:0x000000001274b4b0 @name="Compute resource update for ipa-01.domain.com", @id="Compute resource update for ipa-01.domain.com", @status="failed", @priority=7, @action=[#<Host::Managed id: 7, name: "ipa-01.domain.com", last_compile
: "2020-06-15 17:30:51", last_report: "2020-06-15 17:32:40", updated_at: "2020-06-15 17:32:40", created_at: "2020-06-15 16:00:19", root_pass: "xxx", architecture_id: 1, operatingsystem_id: 3, environment_id: 1, ptable_id: 113, medium_id: nil, build: false, comment: "
", disk: "", installed_at: "2020-06-15 16:14:47", model_id: 1, hostgroup_id: 2, owner_id: 5, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: true, use_image: nil, image_file: nil, uuid: "113", compute_resource_id: 1, puppet_proxy_id: 1, certname: nil, image_id: nil, organization_id: 1, location_id
: 2, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: 1, provision_method: "build", grub_pass: "xxx", global_status: 2, lookup_value_matcher: "fqdn=ipa-01.domain.com", pxe_loader: "PXELinux BIOS", initiated_at: nil, build_errors: nil, discovery_rule
_id: nil>, :setComputeUpdate], @created=1592244552.219757, @timestamp=2020-06-15 18:09:12 UTC>]
2020-06-15T18:09:12 [I|app|ee8573b4] Processed 1 tasks from queue 'Host::Managed Main', completed 0/5
2020-06-15T18:09:12 [E|app|ee8573b4] Task 'Compute resource update for ipa-01.domain.com' *failed*
2020-06-15T18:09:12 [E|app|ee8573b4] Task 'Deploy TFTP PXELinux config for ipa-01.domain.com' *canceled*
2020-06-15T18:09:12 [E|app|ee8573b4] Task 'Deploy TFTP PXEGrub2 config for ipa-01.domain.com' *canceled*
2020-06-15T18:09:12 [E|app|ee8573b4] Task 'Deploy TFTP PXEGrub config for ipa-01.domain.com' *canceled*
2020-06-15T18:09:12 [E|app|ee8573b4] Task 'Deploy TFTP iPXE config for ipa-01.domain.com' *canceled*
2020-06-15T18:09:12 [I|app|f267eedc]   Rendered tasks/_list.html.erb (2.1ms)
2020-06-15T18:09:12 [I|app|f267eedc] Completed 200 OK in 20ms (Views: 10.4ms | ActiveRecord: 1.4ms)
2020-06-15T18:09:12 [D|app|ee8573b4] Unpermitted parameter: :media_selector
2020-06-15T18:09:12 [D|app|ee8573b4] Unpermitted parameter: :media_selector
2020-06-15T18:09:12 [D|app|ee8573b4] Unpermitted parameter: :media_selector
2020-06-15T18:09:12 [E|app|ee8573b4] Failed to save: Failed to update a compute ITO Lab PVE (Proxmox) instance ipa-01.domain.com: ERF42-1306 [Foreman::Exception]: Invalid identifier interface[0]. Must be net[n] with n integer >= 0
2020-06-15T18:09:12 [I|app|ee8573b4]   Rendering hosts/edit.html.erb within layouts/application
2020-06-15T18:09:12 [D|app|ee8573b4] Deface: 3 overrides found for 'hosts/_form'
2020-06-15T18:09:12 [D|app|ee8573b4] Deface: 'add_execution_interface_js' matched 1 times with 'div#primary'
2020-06-15T18:09:12 [I|app|ee8573b4] Deface: [WARNING] No :original defined for 'add_execution_interface_js', you should change its definition to include:
2020-06-15T18:09:12 [D|app|ee8573b4] Deface: 'ansible_roles_tab' matched 1 times with 'li.active'
2020-06-15T18:09:12 [I|app|ee8573b4] Deface: [WARNING] No :original defined for 'ansible_roles_tab', you should change its definition to include:
2020-06-15T18:09:12 [D|app|ee8573b4] Deface: 'ansible_roles_tab_content' matched 1 times with 'div.tab-pane.active'
2020-06-15T18:09:12 [I|app|ee8573b4] Deface: [WARNING] No :original defined for 'ansible_roles_tab_content', you should change its definition to include:
2020-06-15T18:09:12 [I|app|ee8573b4]   Rendered hosts/_progress.html.erb (1.5ms)
2020-06-15T18:09:12 [D|tax|ee8573b4] Current organization set to Default Organization
2020-06-15T18:09:12 [D|tax|ee8573b4] Current location set to Default Location
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.15.1.1/app/views/overrides/activation_keys/_host_environment_select.html.erb (32.4ms)
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered hosts/puppet/_main_tab_fields.html.erb (14.9ms)
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered collection of puppetclasses/_selectedClasses.html.erb [0 times] (0.0ms)
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered collection of puppetclasses/_classes_in_groups.html.erb [0 times] (0.0ms)
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered puppetclasses/_classes.html.erb (1.1ms)
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered puppetclasses/_class_selection.html.erb (87.6ms)
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered hosts/puppet/_puppet_classes_tab.html.erb (93.3ms)
2020-06-15T18:09:13 [D|app|ee8573b4] Deface: 1 overrides found for 'nic/_base_form'
2020-06-15T18:09:13 [D|app|ee8573b4] Deface: 'add_execution_interface' matched 1 times with 'erb[loud]:contains("interface_provision")'
2020-06-15T18:09:13 [I|app|ee8573b4] Deface: [WARNING] No :original defined for 'add_execution_interface', you should change its definition to include:
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered nic/_base_form.html.erb (76.2ms)
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered nic/_virtual_form.html.erb (3.4ms)
2020-06-15T18:09:13 [D|app|ee8573b4] Deface: 1 overrides found for 'nic/_provider_specific_form'
2020-06-15T18:09:13 [I|app|ee8573b4] Deface: 'foreman_fog_proxmox/engine_add_vm_type_to_nic_provider_specific_form' matched starting with 'erb[loud]:contains('f.fields_for')' and ending with 'erb[silent]:contains('end')'
2020-06-15T18:09:13 [D|app|ee8573b4] Deface: 'foreman_fog_proxmox/engine_add_vm_type_to_nic_provider_specific_form' matched 1 times with 'erb[loud]:contains('f.fields_for')'
2020-06-15T18:09:13 [D|app|ee8573b4] pool_owner(113)
2020-06-15T18:09:13 [D|app|ee8573b4] found vm: 113 member of pool:
2020-06-15T18:09:13 [D|app|ee8573b4] found vm 113 on node pve-01
2020-06-15T18:09:13 [D|app|ee8573b4] pool_owner(113)
2020-06-15T18:09:13 [D|app|ee8573b4] found vm: 113 member of pool:
2020-06-15T18:09:13 [D|app|ee8573b4] found vm 113 on node pve-01
2020-06-15T18:09:13 [D|app|ee8573b4] pool_owner(113)
2020-06-15T18:09:13 [D|app|ee8573b4] found vm: 113 member of pool:
2020-06-15T18:09:13 [D|app|ee8573b4] found vm 113 on node pve-01
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/server/_network.html.erb (73.6ms)
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/container/_network.html.erb (41.1ms)
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/_network.html.erb (200.5ms)
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered nic/_provider_specific_form.html.erb (567.3ms)
2020-06-15T18:09:13 [I|app|ee8573b4]   Rendered nic/manageds/_managed.html.erb (692.6ms)
2020-06-15T18:09:14 [I|app|ee8573b4]   Rendered nic/_base_form.html.erb (63.3ms)
2020-06-15T18:09:14 [I|app|ee8573b4]   Rendered nic/_virtual_form.html.erb (1.8ms)
2020-06-15T18:09:14 [D|app|ee8573b4] pool_owner(113)
2020-06-15T18:09:14 [D|app|ee8573b4] found vm: 113 member of pool:
2020-06-15T18:09:14 [D|app|ee8573b4] found vm 113 on node pve-01
2020-06-15T18:09:14 [D|app|ee8573b4] pool_owner(113)
2020-06-15T18:09:14 [D|app|ee8573b4] found vm: 113 member of pool:
2020-06-15T18:09:14 [D|app|ee8573b4] found vm 113 on node pve-01
2020-06-15T18:09:14 [D|app|ee8573b4] pool_owner(113)
2020-06-15T18:09:14 [D|app|ee8573b4] found vm: 113 member of pool:
2020-06-15T18:09:14 [D|app|ee8573b4] found vm 113 on node pve-01
2020-06-15T18:09:14 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/server/_network.html.erb (25.1ms)
2020-06-15T18:09:14 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/container/_network.html.erb (24.6ms)
2020-06-15T18:09:14 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/_network.html.erb (50.7ms)
2020-06-15T18:09:14 [I|app|ee8573b4]   Rendered nic/_provider_specific_form.html.erb (351.1ms)
2020-06-15T18:09:14 [I|app|ee8573b4]   Rendered nic/manageds/_managed.html.erb (424.8ms)
2020-06-15T18:09:14 [I|app|ee8573b4]   Rendered hosts/_interfaces.html.erb (1134.0ms)
2020-06-15T18:09:14 [D|app|ee8573b4] pool_owner(113)
2020-06-15T18:09:14 [D|app|ee8573b4] found vm: 113 member of pool:
2020-06-15T18:09:14 [D|app|ee8573b4] found vm 113 on node pve-01
2020-06-15T18:09:14 [D|app|ee8573b4] Deface: 1 overrides found for 'hosts/_compute_detail'
2020-06-15T18:09:14 [D|app|ee8573b4] Deface: 'foreman_fog_proxmox/engine_add_from_profile_to_compute_detail' matched 1 times with 'erb[loud]:contains('provider_partial')'
2020-06-15T18:09:14 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/_general.html.erb (31.2ms)
2020-06-15T18:09:15 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/container/_extended.html.erb (346.9ms)
2020-06-15T18:09:15 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/server/_advanced.html.erb (3.6ms)
2020-06-15T18:09:15 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/container/_advanced.html.erb (2.0ms)
2020-06-15T18:09:15 [D|app|ee8573b4] parse_server_vm args={"config_attributes"=>{"vmid"=>"113", "interfaces"=>  <Fog::Proxmox::Compute::Interfaces
2020-06-15T18:09:15 [D|app|ee8573b4] parse_server_volumes(): volumes=[]
2020-06-15T18:09:15 [D|app|ee8573b4] parse_server_memory(): {:memory=>4096, :shares=>1, :balloon=>4096}
2020-06-15T18:09:15 [D|app|ee8573b4] parse_server_interfaces(): interfaces_to_delete=[] interfaces_to_add=[]
2020-06-15T18:09:15 [D|app|ee8573b4] general_a: ["node_id", "type", "config_attributes", "volumes_attributes", "interfaces_attributes", "firmware_type", "provision_method", "container_volumes", "server_volumes", "start_after_create"]
2020-06-15T18:09:15 [D|app|ee8573b4] parse_server_config(): {"vmid"=>"113", "interfaces"=>  <Fog::Proxmox::Compute::Interfaces
2020-06-15T18:09:15 [D|app|ee8573b4] parse_server_config(): {"vmid"=>"113", "interfaces"=>  <Fog::Proxmox::Compute::Interfaces
2020-06-15T18:09:15 [D|app|ee8573b4] parse_server_vm(): {"vmid"=>"113", "interfaces"=>  <Fog::Proxmox::Compute::Interfaces
2020-06-15T18:09:15 [D|app|ee8573b4] new_server_vm() vm.config=  <Fog::Proxmox::Compute::ServerConfig
2020-06-15T18:09:15 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/server/_config.html.erb (664.9ms)
2020-06-15T18:09:15 [D|app|ee8573b4] parse_container_vm args={"config_attributes"=>{"vmid"=>"113", "interfaces"=>  <Fog::Proxmox::Compute::Interfaces
2020-06-15T18:09:15 [D|app|ee8573b4] parse_container_ostemplate(): {:ostemplate=>nil, :ostemplate_file=>nil, :ostemplate_storage=>nil}
2020-06-15T18:09:15 [D|app|ee8573b4] parse_container_ostemplate(): {:ostemplate=>nil, :ostemplate_file=>nil, :ostemplate_storage=>nil}
2020-06-15T18:09:15 [D|app|ee8573b4] parse_container_volumes() args=
2020-06-15T18:09:15 [D|app|ee8573b4] parse_container_volumes(): volumes=[]
2020-06-15T18:09:15 [D|app|ee8573b4] parse_container_cpu(): {:cores=>2}
2020-06-15T18:09:15 [D|app|ee8573b4] parse_container_memory(): {:memory=>4096}
2020-06-15T18:09:15 [D|app|ee8573b4] parse_container_interfaces(): interfaces_to_add=[], interfaces_to_delete=[]
2020-06-15T18:09:15 [D|app|ee8573b4] config_keys[:general]: ["node_id", "name", "type", "config_attributes", "volumes_attributes", "interfaces_attributes", "firmware_type", "provision_method", "container_volumes", "server_volumes", "start_after_create"]
2020-06-15T18:09:15 [D|app|ee8573b4] parse_container_config(): {"vmid"=>"113", "interfaces"=>  <Fog::Proxmox::Compute::Interfaces
2020-06-15T18:09:15 [D|app|ee8573b4] parse_container_vm(): {"vmid"=>"113", "interfaces"=>  <Fog::Proxmox::Compute::Interfaces
2020-06-15T18:09:15 [D|app|ee8573b4] new_container_vm() vm.config=  <Fog::Proxmox::Compute::ServerConfig
2020-06-15T18:09:16 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/container/_config.html.erb (10.1ms)
2020-06-15T18:09:16 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/_base.html.erb (1438.2ms)
2020-06-15T18:09:16 [D|app|ee8573b4] Deface: 2 overrides found for 'compute_resources_vms/form/_volumes'
2020-06-15T18:09:16 [D|app|ee8573b4] Deface: 'foreman_fog_proxmox/engine_add_vm_type_to_volumes_edit' matched 1 times with 'div.children_fields'
2020-06-15T18:09:16 [D|app|ee8573b4] Deface: 'foreman_fog_proxmox/engine_add_vm_type_to_volumes_new_volume' matched 1 times with 'erb[silent]:contains('volume = compute_resource.new_volume')'
2020-06-15T18:09:16 [D|app|ee8573b4] Deface: 1 overrides found for 'compute_resources_vms/form/_removable_layout'
2020-06-15T18:09:16 [D|app|ee8573b4] Deface: 'foreman_fog_proxmox/engine_remove_new_vm_from_removable_layout' matched 1 times with 'div.remove-button'
2020-06-15T18:09:17 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/server/_volume.html.erb (341.3ms)
2020-06-15T18:09:17 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/container/_volume_mp.html.erb (324.1ms)
2020-06-15T18:09:17 [D|app|ee8573b4] Deface: 1 overrides found for 'compute_resources_vms/form/_removable_layout'
2020-06-15T18:09:17 [D|app|ee8573b4] Deface: 'foreman_fog_proxmox/engine_remove_new_vm_from_removable_layout' matched 1 times with 'div.remove-button'
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_fog_proxmox-0.11.1/app/views/compute_resources_vms/form/proxmox/server/_volume.html.erb (353.4ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered compute_resources_vms/form/_volumes.html.erb (2149.5ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered hosts/_compute_detail.html.erb (3650.2ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered hosts/_compute.html.erb (3766.8ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered common/os_selection/_architecture.html.erb (6.7ms)
2020-06-15T18:09:18 [D|app|ee8573b4] Deface: 2 overrides found for 'common/os_selection/_operatingsystem'
2020-06-15T18:09:18 [D|app|ee8573b4] Deface: 'hosts_select_media_type' matched 1 times with 'erb[loud]:contains("select_f"):contains(":medium_id")'
2020-06-15T18:09:18 [I|app|ee8573b4] Deface: [WARNING] No :original defined for 'hosts_select_media_type', you should change its definition to include:
2020-06-15T18:09:18 [D|app|ee8573b4] Deface: 'hosts_select_synced_content' matched 1 times with 'erb[loud]:contains("select_f"):contains(":medium_id")'
2020-06-15T18:09:18 [I|app|ee8573b4] Deface: [WARNING] No :original defined for 'hosts_select_synced_content', you should change its definition to include:
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered common/os_selection/_pxe_loader.html.erb (3.1ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered common/os_selection/_operatingsystem.html.erb (137.5ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered hosts/provision_method/build/_form.html.erb (163.7ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered hosts/provision_method/image/_form.html.erb (0.6ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered hosts/_operating_system.html.erb (197.2ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered hosts/_unattended.html.erb (3974.1ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered collection of puppetclasses/_class_parameters.html.erb [0 times] (0.0ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered puppetclasses/_classes_parameters.html.erb (47.3ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered common_parameters/_inherited_parameters.html.erb (5.6ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered common_parameters/_parameter.html.erb (8.6ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered common_parameters/_parameters.html.erb (31.6ms)
2020-06-15T18:09:18 [D|tax|ee8573b4] Current location set to none
2020-06-15T18:09:18 [D|tax|ee8573b4] Current organization set to none
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered hosts/_form.html.erb (5614.1ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered hosts/edit.html.erb within layouts/application (5660.5ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered layouts/_application_content.html.erb (1.3ms)
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendering layouts/base.html.erb
2020-06-15T18:09:18 [I|app|ee8573b4]   Rendered layouts/base.html.erb (57.5ms)
2020-06-15T18:09:18 [D|tax|ee8573b4] Current location set to Default Location
2020-06-15T18:09:18 [D|tax|ee8573b4] Current organization set to Default Organization
2020-06-15T18:09:18 [I|app|ee8573b4] Completed 200 OK in 7934ms (Views: 5666.6ms | ActiveRecord: 248.5ms)

Proxmox VM: image

Environment

Foreman 2.0.1 running on CentOS 7.8.2003 (3.10.0-1127) Proxmox 6.2-6 running kernel 3.10.0-1127

Version

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

Steps to reproduce

  1. Provision host
  2. Edit host and save it
  3. Unable to save.

Expected behavior

Should be able to edit and save.

Actual behavior

Throws an error.

Reproduces how often:

Everytime I edit the host. Note: editing hosts that have not built yet works fine. Maybe this has something to do with reported facts from ansible/puppet?

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue. image

image image

tristanrobert commented 4 years ago

I see in your logs that interface compute_attributes id is an empty string: "compute_attributes"=>{"id"=>"". It should be net0. You should set this id to net0 in interface form > Proxmox section. I think it is related to an empty id at first creation which is computed by default: https://github.com/theforeman/foreman_fog_proxmox/blob/master/app/models/concerns/host_ext/proxmox/interfaces.rb

hakong commented 4 years ago

Should there be an ID form here? image

hakong commented 4 years ago

Here are the attributes of the VM under "Compute Resources" for this VM: image

tristanrobert commented 4 years ago

net0 is set in vm show view (Nics) but not in vm edit view (eth0 is set but plugin don't get it). I think there is a bug I have to investigate: it is related to the complicated way foreman updates interfaces.

tristanrobert commented 4 years ago

Proxmox identifier must be net0 but in your log I see eth0. You should fix it in your interface form with Device identifier: net0 or leave it empty.

Be-El commented 3 years ago

Hi,

I'm running into the same problem (foreman 2.1.2, fog_proxmox 0.11.1). Changing the device identifier is not an option for us, since we use the identifiers in the puppet based network configuration (passing @host.XYZ to the corresponding puppet module...)

If we change the identifier, the generated network configuration will not much the interface names in the VM. We can override this per host, but it requires some extra effort for a large number of instances. Since Linux inside the VM probably cannot detect the proxmox interface name (we use virtio interfaces), I would propose to add a mac address based mapping between interface identifiers in foreman (also as seen inside the VM), and the netX device identifier of proxmox.