Project

General

Profile

Bug #17723

Cannot modify/set interface parameters using hammer during provisioning

Added by Neil Hanlon over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hammer CLI
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

History

#1 Updated by Ori Rabin over 6 years ago

  • Assignee deleted (Ori Rabin)

Please do not assign bugs to anyone but yourself.

#2 Updated by Neil Hanlon over 6 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.

#3 Updated by Simone Caldana over 6 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.

Also available in: Atom PDF