Bug #5483
closedNetwork label empty after cloning vware vm using image and distributed switch for network
Description
Foreman 1.5.0 RC2 (and RC1)
exsi5, Vspere 5.0.0
CentOS 6.2
When creating a vmware vm using image (template) with a distributed switch configured the cloned vm has an inactive network and empty label.
Attached the following screendumps.
New vm with name clonevm.localdomain config, before submit (Nic type: VMXNET3 and Network: DvPortGroup):
-new_clonevm_config.png
Created VM (clonevm.localdomain) with inactive dvPortGroup.
- clonevm-overview.png
Empty Network Label in edit page of cloned vm:
- clonevm_network_config.png
Available labels for network config of clonevm.localdomain:
- clonevm-network_labels.png
Manual Change Network to dvPortGroup(switch2):
- clonevm-changed-network-config.png
Overview with active DvPortGroup:
- clonevm-overview-after-manual-change.png
Files
Updated by Ronny M over 10 years ago
Hope you can reproduce this.
Because I also have this while creating a host thats not based on an image.
Doesn't mater if I use dvPortGroup or dvSwitch2-DVUplinks-253. (Although not sure if both should be available for selection)
Not sure why but during the 10 test that I did that where about creating a host (not image) I once got the below unexpected error but host was still created.
Warning!
undefined method `json?' for nil:NilClass
Updated by Ronny M over 10 years ago
Might have to do with host name "new"?
Started GET "/hosts/new.localdomain" for 192.168.88.1 at 2014-04-29 12:19:08 -0700
Processing by HostsController#new as
Operation FAILED: undefined method `json?' for nil:NilClass
Rendered common/500.html.erb (4.0ms)
Completed 500 Internal Server Error in 8ms (Views: 6.1ms | ActiveRecord: 0.4ms)
Updated by Ronny M over 10 years ago
Yes can reproduce. Hosts with name new produce the undefined method `json?' for nil:NilClass error.
Luckily we don't create host with such a name in production.
Updated by Dominic Cleal over 10 years ago
- Related to Bug #5630: VmWare clone from template fails if Network Adator has labels in VmWare added
Updated by Dominic Cleal about 10 years ago
- Category changed from Compute resources to Compute resources - VMware
Updated by Dominic Cleal almost 10 years ago
- Related to Bug #7740: Installing from VMware Image breaks distributed Port Group support added
Updated by Dominic Cleal almost 10 years ago
- Related to Bug #8047: VM creation with distributed switch fails: "A component of the virtual machine is not accessible on the host." added
Updated by Chris Pisano over 9 years ago
I am seeing the same behavior without distributed port groups.
Updated by Ivan Necas over 9 years ago
Does it even make sense to talk about labels for non-distributed port groups?
Ad. the original issue, we've seen this behavior, if some VMs were mistakenly set
to the specific network, but non-distributed ports, the standard network started
being used as the default one.
The solution seems to not group the network interface just but the network name, but
having there also selection for every possible label.
Updated by Ivan Necas over 9 years ago
- Status changed from New to Assigned
- Assignee set to Ivan Necas
- Target version set to 1.7.2
Updated by The Foreman Bot over 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2714 added
- Pull request deleted (
)
Updated by Dominic Cleal about 9 years ago
- Blocked by Refactor #12494: Update fog to 1.36.0 added
Updated by Ivan Necas about 8 years ago
- Target version changed from 1.7.2 to 1.15.3
Updated by The Foreman Bot about 8 years ago
- Pull request https://github.com/theforeman/foreman/pull/4074 added
Updated by Ivan Necas about 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset d4af7cae07f78bd047290e68af37b55122e0ed4b.
Updated by Dominic Cleal about 8 years ago
- Translation missing: en.field_release set to 210