Bug 1468274 - [RFE] Allow supplying MAC address to VMs created via Satellite6
[RFE] Allow supplying MAC address to VMs created via Satellite6
Status: NEW
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Provisioning (Show other bugs)
x86_64 Linux
medium Severity medium (vote)
: Unspecified
: --
Assigned To: satellite6-bugs
Katello QA List
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2017-07-06 10:12 EDT by Mihir Lele
Modified: 2018-02-05 06:11 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mihir Lele 2017-07-06 10:12:43 EDT
Description of problem:

Satellite6 does not honour the mac address specified for provisioning via compute-resource

Version-Release number of selected component (if applicable): 6.2.9

How reproducible:  Always

Steps to Reproduce:

A) Through hammer:

1) hammer host create --hostgroup rhev --name host4 --mac 52:54:00:e4:15:26 --managed true --build true  --location Pune --organization-id 1  --enabled true --compute-profile rhev --compute-resource rhevm

B) Through api:

curl -H "Accept:application/json,version=2"        -H "Content-Type:application/json" -X POST -u admin:redhat        -k -d "{\"host\":{\"organization_id\":1,\"enabled\":1,\"build\":1,\"hostgroup_id\":2,\"compute_profile_name\":\"rhev\",\"compute_resource_name\":\"rhevm\",\"owner_id\":null,\"interfaces_attributes\": [ {\"provision\":1,\"domain_id\":1,\"mac\":\"00:50:56:91:7c:41\",\"primary\":1,\"type\":\"Nic::Managed\",\"ip\":\"\",\"managed\":1,\"subnet_id\":1} ],\"name\":\"test123\",\"managed\":1,\"location_id\":2,\"owner_type\":\"User\",\"overwrite\":0}}"        https://satellite.example.com/api/hosts

Actual results:

Vm gets populated with a different MAC address.

Expected results:

VM should be built with same MAC address as provided on hammer or api.

Additional info:

1) I am using rhevm 4.0. 
2) This issue is also observed at the customer end where vmware is being used.
3) This works as expected when provisioned through webui
Comment 1 Lukas Zapletal 2017-07-21 10:02:40 EDT
This is not supported, creating VM via Satellite6 always generates random MAC address.
Comment 3 Lukas Zapletal 2018-02-05 06:11:26 EST
Just quick update - we don't see this as bug, virtualization/cloud workflow is based on fact that compute resource generates MAC address and Satellite reads that. This RFE is on our backlog, no plans for now.

Note You need to log in before you can comment on or make changes to this bug.