Bug #13980
closed
VMWARE: since 1.10, NIC type and Network different from profile configuration
Added by Lionel Beard over 8 years ago.
Updated over 6 years ago.
Description
Hi,
It was working fine before update to 1.10, but now when I create a VMware host, interface details such as NIC type and Network are not filled with values configured into vmware profiles.
Foreman propose the first element on each list.
If I look into production log file:
Started POST "/hosts/interfaces"
Processing by HostsController#interfaces as */*
Parameters: (...)"compute_attributes"=>{"type"=>"VirtualE1000", "network"=>"NET1"}}(...)
I can see that parameters sent are not the one defined in profiles.
Thanks.
Could you confirm precisely which Foreman version you're on? The Found in release field says 1.10.0, in which case, please update to 1.10.2 as there were a couple of fixes in .1 that might be applicable.
Dominic Cleal wrote:
Could you confirm precisely which Foreman version you're on? The Found in release field says 1.10.0, in which case, please update to 1.10.2 as there were a couple of fixes in .1 that might be applicable.
Sorry, I made a mistake in release field.
The bug appears in 1.10.0 version, and I have just updated to 1.10.2, and the bug is still here.
It was also present on 1.10.1.
- Category changed from VM management to Host creation
- Translation missing: en.field_release set to 145
No problem, thanks for confirming.
Could you run through the exact steps you take on the New Host form, e.g. the order of which boxes you select from and if your compute profile is set on the host group or you're selecting it? If you have the ability to record a video/GIF, this can be very helpful to show the issue.
It might also be worth trying to create a new compute profile in case it's that, and to try some different steps such as selecting the compute profile explicitly or changing the order. The inheritance of profiles changed a lot in 1.10 and is sensitive to this.
Thanks for your message because, thanks to that, I found a way to resolve the issue.
Actually, no compute profile was set into my host groups. And the bug appears, even if I set a compute profile on host creation form.
Now, I have set a default compute profile on each host groups, and interface details are correct.
It is good for me.
Do you still consider is it a bug?
Do you still want the video?
- Related to Bug #11124: Interface compute attributes not merged from API request over compute profile added
I think I've reproduced it now rather simply! Are these the same as your steps without the host group?
1. Select the compute resource
2. Select a compute profile
3. Check interfaces tab
Any time you change the compute profile, the attributes/network settings aren't updated.
This seems to work properly if I revert #11124.
- Status changed from New to Assigned
- Assignee set to Dominic Cleal
- Has duplicate Bug #13779: Setting compute profile in EC2 provisioning over-rides image AMI with a default AMI added
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3314 added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Related to Bug #13581: Clicking "Resolve" in Operating System -> Provisioning templates causes UI issues with drop-downs in the Interfaces tab added
This fix is applicable to 1.10, however the change does not apply to 1.11 as hosts_controller.rb does not appear to contain the function that is modified.
Has this change been updated in version 1.11 as well?
- Bugzilla link set to 1322047
Also available in: Atom
PDF