Project

General

Profile

Actions

Bug #21349

open

Interface compute attribute not overwritten by API request

Added by Cosmin Oprea over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

You have a compute profile defined with two network interfaces:
compute-profile "Small" \
- network=net3
- network=net4

But when running:

hammer -v -d host create \
--name "test" \
--compute-profile "Small" \
--compute-resource "VMware_DEV" \
--compute-attributes "cpus=2,corespersocket=1,memory_mb=4096,...
--interface "type=interface,compute_type=VirtualVmxnet3,identifier=eth0,subnet_id=X,ip=xxx.xxx.xxx.xxx,network=net1,managed=1,primary=0,provision=1,virtual=0" \
--interface "type=interface,compute_type=VirtualVmxnet3,identifier=eth1,subnet_id=Y,ip=xxx.xxx.xxx.xxx,network=net2,managed=0,primary=1,provision=0,virtual=0" \

one would expect that the compute attributes for the interfaces to overwrite the ones defined in the compute profile.

However VM is always create with two interfaces in the vlans specified by the compute profile.

This behaviour has been noticed with foreman-1.11.0

No data to display

Actions

Also available in: Atom PDF