Bug #17723
openCannot modify/set interface parameters using hammer during provisioning
Description
XenServer (for some reason) doesn't like interfaces named anything but `eth#` for the primary interface name.. so I'm trying to modify it during provisioning. Unfortunately no matter how specific I am during the provision command, the interface doesn't change.
If it matters, the subnet uses DHCP proxy.
Example command:
hammer discovery provision --id 93 --hostgroup-id 12 --new-name <redacted> --build true --interface="primary=true,managed=true,provision=true,type=interface,identifier=eth0,subnet_id=19,domain_id=9,mac=<redacted>"
Expected behavior: Interface identifier will be renamed to "eth0" from "em1"
Actual behavior: Interface is not renamed
Updated by Ori Rabin over 7 years ago
- Assignee deleted (
Ori Rabin)
Please do not assign bugs to anyone but yourself.
Updated by Neil Hanlon over 7 years ago
Ori Rabin wrote:
Please do not assign bugs to anyone but yourself.
I did not assign this to anyone. It must have automatically assigned someone. The field was blank when I submitted the bug.
Updated by Simone Caldana over 7 years ago
Confirmed in 1.14.1 (Katello 3.3).
This makes impossible to provision a bare metal host when the DHCP dynamic range is not part of the Foreman subnet IP range using hammer, as the UI uses a completely different method (PATCH instead of PUT).
The root cause seems to be that hammer discovery provision does not pass the interface parameter values to the API.