Problem:
When using the VMware import (Compute Resource -> VirtualMachines -> Import as managed), the MAC address is visible at first (in the Interface tab) but gets removed when choosing a Organization or Location.
Afterwards, the MAC can not be added because the field is greyed out (unless switching the type back and forth).
If not paying attention and fixing this manually, this results in a Host without TFTP/DHCP config deployed.
Expected outcome:
The MAC address should stay configured.
Foreman and Proxy versions:
- Foreman 2.3.3
- Smartproxy 2.3.3
Foreman and Proxy plugin versions:
tfm-rubygem-fog-vsphere-3.4.0-1.el7.noarch
Clients:
The problem is observed with at least Firefox and Microsoft Edge (based on chromium).
Other relevant data:
This has worked in the past (with Foreman 1.24). I can not really say anything about Foreman 2.0 to 2.2 because we never used it.
I do see the following in the JavaScript console:
[DOM] Found 2 elements with non-unique id #interface: (More info: https://www.chromium.org/developers/design-documents/create-amazing-password-forms)
The Foreman log looks fine; I can just see the request without any MAC address configured:
[...]
2021-06-08T14:52:24 [I|app|98212efb] Completed 200 OK in 18ms (Views: 5.4ms | ActiveRecord: 4.9ms | Allocations: 12730)
2021-06-08T14:52:24 [I|aud|5cd53b8f] Nic::Managed (66948) create event on mac
2021-06-08T14:52:24 [I|aud|5cd53b8f] Nic::Managed (66948) create event on ip 10.0.0.123
2021-06-08T14:52:24 [I|aud|5cd53b8f] Nic::Managed (66948) create event on type Nic::Managed
2021-06-08T14:52:24 [I|aud|5cd53b8f] Nic::Managed (66948) create event on name foo.bar.example.com
2021-06-08T14:52:24 [I|aud|5cd53b8f] Nic::Managed (66948) create event on host_id 32838
2021-06-08T14:52:24 [I|aud|5cd53b8f] Nic::Managed (66948) create event on subnet_id 189
2021-06-08T14:52:24 [I|aud|5cd53b8f] Nic::Managed (66948) create event on domain_id 4
[...]