Project

General

Profile

Actions

Bug #17247

closed

Hammer --interface option doesn't work with subnet name and domain name while creating new host.

Added by Tomáš Strachota about 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Networking
Difficulty:
Triaged:
Team Backlog:
Marek
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Description of problem:
New host creation using --interface options with hammer doesn't accept the subnet and domain names. It works fine with IDs.

hammer host create --name amar-host-one-domain-subnet --hostgroup 'RHEL7' --lifecycle-environment Library --content-view RHEL7 --root-password 'RedHat' --location Celestial --organization Orion --build false --interface="type=interface,mac=fe:54:00:06:f6:68,identifier=eth0,name=h1test,subnet=OrionSubnet1,domain=sat6.gsslab.pnq.redhat.com,ip=10.65.242.70,primary=true,provision=true" 
[Foreman] Password for admin: 
Could not create the host:
  Subnet(#124149220) expected, got String(#19113840)

Version-Release number of selected component (if applicable):
hammer-cli 0.8.0
hammer-cli-foreman 0.8.0
foreman 1.13.0

Steps to Reproduce:
1. Try to create a new system profile with hammer using domain name and subnet name

Actual results:

Could not create the host:
  Subnet(#124149220) expected, got String(#19113840)

Expected results:
It should create the host.

Actions

Also available in: Atom PDF