Project

General

Profile

Actions

Bug #13980

closed

VMWARE: since 1.10, NIC type and Network different from profile configuration

Added by Lionel Beard about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.


Related issues 3 (0 open3 closed)

Related to Foreman - Bug #11124: Interface compute attributes not merged from API request over compute profileClosedTimo Goebel07/15/2015Actions
Related to Foreman - Bug #13581: Clicking "Resolve" in Operating System -> Provisioning templates causes UI issues with drop-downs in the Interfaces tabResolved02/05/2016Actions
Has duplicate Foreman - Bug #13779: Setting compute profile in EC2 provisioning over-rides image AMI with a default AMIDuplicate02/17/2016Actions
Actions #1

Updated by Dominic Cleal about 8 years ago

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.

Actions #2

Updated by Lionel Beard about 8 years ago

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.

Actions #3

Updated by Dominic Cleal about 8 years ago

  • 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.

Actions #4

Updated by Lionel Beard about 8 years ago

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?

Actions #5

Updated by Dominic Cleal about 8 years ago

  • Related to Bug #11124: Interface compute attributes not merged from API request over compute profile added
Actions #6

Updated by Dominic Cleal about 8 years ago

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.

Actions #7

Updated by Lionel Beard about 8 years ago

Yes, these are the same.

Actions #8

Updated by Dominic Cleal about 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal
Actions #9

Updated by Dominic Cleal about 8 years ago

  • Has duplicate Bug #13779: Setting compute profile in EC2 provisioning over-rides image AMI with a default AMI added
Actions #10

Updated by The Foreman Bot about 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3314 added
Actions #11

Updated by Dominic Cleal about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #12

Updated by Dominic Cleal almost 8 years ago

  • Related to Bug #13581: Clicking "Resolve" in Operating System -> Provisioning templates causes UI issues with drop-downs in the Interfaces tab added
Actions #13

Updated by Matthew Ceroni almost 8 years ago

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?

Actions #14

Updated by Dominic Cleal almost 8 years ago

The fix is in both 1.10.3 and 1.11.0-RC3. You're right that the 1.10 and 1.11 fixes differ, I had to rewrite it a little for 1.10.

Fix from 1.11.0-RC3: https://github.com/theforeman/foreman/commit/c404041c6fe4816b9c44e78f1e2225960ab95c9d
Fix from 1.10.3: https://github.com/theforeman/foreman/commit/b3a5c5ffc32536e2514b24f2297aece6273d09b2

Actions #15

Updated by Marek Hulán about 7 years ago

  • Bugzilla link set to 1322047
Actions

Also available in: Atom PDF