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 #1

Updated by Tomáš Strachota about 8 years ago

  • Subject changed from Hammer --interface option doesn't work with subnet name and domain name while creating new host. to Hammer --interface option doesn't work with subnet name and domain name while creating new host.
  • Category set to Networking
  • Target version set to 115
Actions #2

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Tomáš Strachota
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/273 added
Actions #3

Updated by Anonymous almost 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Tomáš Strachota almost 8 years ago

  • Translation missing: en.field_release set to 234
Actions

Also available in: Atom PDF