Project

General

Profile

Actions

Bug #19702

closed

Hammer host create, with vmware compute resource, cant use VMware network names, needs the network ID instead

Added by Daniel Lobato Garcia almost 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1456579
Description of problem:
When trying to use hammer to create a host with the vmware compute resource, you cant use the familiar network names that people are used to - such as v5-server-admin, instead you need to find the network id such as network-91

Hammer gives us no way to find these IDs, the VMware console, so far as I could find, doesnt display them either

You need to either a) write an API script to list them or b) use the web UI which, during creation only, displays the network names and then reverts to using the network id also (see bug https://bugzilla.redhat.com/show_bug.cgi?id=1456457)

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

How reproducible:

Steps to Reproduce:
1. try to create a VM using the familiar name

Actual results:
returns an error when using the network name

Expected results:
host would be created using the name not the ID

In the documentation it list two options with regard to vmware hosts (https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html/hammer_cli_guide/chap-cli_guide-managing_hosts#sect-CLI_Guide-Creating_a_Host)

Specific to hosts provisioned on VMware
---------------------------------------------
compute_type    | Type of the network adapter, depends on your version of vSphere.
compute_network | Network ID form VMware.

It would be great if we could add a third

compute_network_name | Network Name from VMWare

Failing that, if there was a command we could use to list the network names and their corresponding network IDs, that would be great

Additional info:

Example command using the compute_network

hammer host create --name tmi-adrian-p1 --hostgroup-id 19 --compute-resource "VMware DC1" --compute-profile Standard-Test --organization 'TLG' --location P1 --root-password 'redhat01' --interface="identifier=eth0,type=Nic::Managed,managed=true,compute_type=VirtualVmxnet3,compute_network='network
-91',domain_id=1,subnet_id=1,ip=172.31.5.240" --interface="identifier=eth1,type=Nic::Managed,managed=true,compute_type=VirtualVmxnet3,compute_network='network
-1385',domain_id=1,subnet_id=18,primary=true"

Related issues 1 (0 open1 closed)

Related to Hammer CLI - Tracker #26990: Tracker for VMware issuesClosedOleh Fedorenko

Actions
Actions #1

Updated by Dominic Cleal almost 7 years ago

  • Project changed from Foreman to Hammer CLI

This appears to be a duplicate of #4593, the requirement to use IDs as parameters when creating hosts.

Actions #2

Updated by Oleh Fedorenko almost 5 years ago

Actions #3

Updated by yifat makias over 4 years ago

  • Status changed from New to Assigned
  • Assignee set to yifat makias
Actions #4

Updated by The Foreman Bot over 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/465 added
Actions #5

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases hammer-cli-foreman-0.20.0 added
Actions #6

Updated by Anonymous over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF