Support #11278
closedWhen create a virtual machine by Foreman, does not create a network interface on that VM.
Description
Foreman 1.8.2
foreman-xen - ruby193-rubygem-foreman_xen-0.1.1-1.el6.noarch
when i create new VM foreman-xen plugin does not create VIF for VM.
screenshot from xencenter added.
screenshot from foreman added
Log from foreman/production.log:
Started GET "/hosts/new" for 192.168.0.99 at 2015-08-04 08:03:21 +0000 2015-08-04 08:03:21 [I] Processing by HostsController#new as */* 2015-08-04 08:03:21 [I] Rendered hosts/_progress.html.erb (0.1ms) 2015-08-04 08:03:21 [I] Rendered nic/_base_form.html.erb (12.1ms) 2015-08-04 08:03:21 [I] Rendered nic/_virtual_form.html.erb (1.2ms) 2015-08-04 08:03:21 [I] Rendered nic/_provider_specific_form.html.erb (0.2ms) 2015-08-04 08:03:21 [I] Rendered nic/manageds/_managed.html.erb (15.4ms) 2015-08-04 08:03:21 [I] Rendered nic/_base_form.html.erb (11.3ms) 2015-08-04 08:03:21 [I] Rendered nic/_virtual_form.html.erb (1.1ms) 2015-08-04 08:03:21 [I] Rendered nic/_provider_specific_form.html.erb (0.1ms) 2015-08-04 08:03:21 [I] Rendered nic/manageds/_managed.html.erb (14.5ms) 2015-08-04 08:03:21 [I] Rendered hosts/_interfaces.html.erb (31.5ms) 2015-08-04 08:03:21 [I] Rendered common/os_selection/_architecture.html.erb (1.6ms) 2015-08-04 08:03:21 [I] Rendered common/os_selection/_operatingsystem.html.erb (2.0ms) 2015-08-04 08:03:21 [I] Rendered hosts/_operating_system.html.erb (9.7ms) 2015-08-04 08:03:21 [I] Rendered hosts/_unattended.html.erb (9.9ms) 2015-08-04 08:03:21 [I] Rendered puppetclasses/_class_parameters.html.erb (0.0ms) 2015-08-04 08:03:21 [I] Rendered puppetclasses/_classes_parameters.html.erb (8.1ms) 2015-08-04 08:03:21 [I] Rendered common_parameters/_inherited_parameters.html.erb (0.2ms) 2015-08-04 08:03:21 [I] Rendered common_parameters/_puppetclass_parameter.html.erb (2.7ms) 2015-08-04 08:03:21 [I] Rendered common_parameters/_puppetclasses_parameters.html.erb (4.4ms) 2015-08-04 08:03:21 [I] Rendered common_parameters/_parameter.html.erb (1.9ms) 2015-08-04 08:03:21 [I] Rendered common_parameters/_parameters.html.erb (4.3ms) 2015-08-04 08:03:21 [I] Rendered hosts/_form.html.erb (97.7ms) 2015-08-04 08:03:21 [I] Rendered hosts/new.html.erb within layouts/application (98.1ms) 2015-08-04 08:03:21 [I] Rendered home/_user_dropdown.html.erb (1.7ms) 2015-08-04 08:03:21 [I] Read fragment views/tabs_and_title_records-3 (0.2ms) 2015-08-04 08:03:21 [I] Rendered home/_topbar.html.erb (3.0ms) 2015-08-04 08:03:21 [I] Rendered layouts/base.html.erb (4.6ms) 2015-08-04 08:03:21 [I] Completed 200 OK in 111ms (Views: 95.5ms | ActiveRecord: 10.7ms) 2015-08-04 08:03:21 [I] Completed 201 Created in 650ms (Views: 102.5ms | ActiveRecord: 0.0ms) 2015-08-04 08:03:23 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_xen-0.1.1/app/views/compute_resources_vms/show/_xenserver.html.erb (760.3ms) 2015-08-04 08:03:23 [I] Rendered compute_resources_vms/_details.html.erb (946.3ms) 2015-08-04 08:03:23 [I] Completed 200 OK in 2472ms (Views: 948.9ms | ActiveRecord: 2.6ms) 2015-08-04 08:03:23 [I]
VM is created from an existing template in which all preconfigured and there VIF exist too
Files
Updated by Anonymous over 9 years ago
Could you please enable debugging and paste the actual POST with the parameters used to create the VM?
Updated by Aleksei Yamschikov over 9 years ago
- File provisioning_test7.vps provisioning_test7.vps added
attach debug log 'provisioning_test7.vps'
start search from 'Started POST "/hosts" for 192.168.0.99 at 2015-08-04 14:52:27 +0000'
I think all parameters exist in that log. But, if you need more, just say.
Updated by Aleksei Yamschikov over 9 years ago
Also i think i need add XenServer version 6.5
Updated by Aleksei Yamschikov over 9 years ago
same thing - without network interface
Updated by Anonymous over 9 years ago
ooVoo and/or Ben, could you have a look it this, please?
Updated by Aleksei Yamschikov over 9 years ago
in attached log i find next data: "new_interfaces"=>{"_destroy"=>"1", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "managed"=>"1", "primary"=>"0", "provision"=>"0", "virtual"=>"0", "tag"=>"", "attached_to"=>""}}
"_destroy"=>"1" - It may be the case in this setting?
Updated by Anonymous about 9 years ago
Could you please test again with foreman_xen 0.1.5 (Foreman 1.8/1.9) or 0.2.1 (Foreman 1.10+)? Updated rpm/deb packages of the plugin should be out on Monday.