Project

General

Profile

Actions

Feature #18766

open

Acquire IP address from virtualization environments when possible

Added by Lukas Zapletal about 7 years ago. Updated about 7 years ago.

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

Description

Currently only several Compute Resources read IP addres from newly created VMs, these include GCE, EC2, Rackspace and OpenStack. All virtualization resources only provide MAC address, this is likely limitation of the API and hypervisor being unable to find the IP address. Some virtualization APIs might provide those information, purpose of this feature request is to investigate APIs for libvirt, oVirt/RHEV and VMWare and read the IP address when possible.

This will enable running finish script against, currently when a VM is started from Foreman, orchestration waits until IP is ready which timeouts and provisioning is rolled backed. This is because IP address will never come back from the API and this is required to run finish script via SSH.

The only workaround is to use STATIC IPAM and enter correct IP address in advance when provisioning the host, then orchestration will not wait for IP address and starts attempting to ssh into the host immediately.

Other workaround is to implement this RFE: #18765


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #18765: Use hostname instead IP address for finish scriptClosedLukas Zapletal03/02/2017Actions
Actions #1

Updated by Lukas Zapletal about 7 years ago

  • Related to Feature #18765: Use hostname instead IP address for finish script added
Actions #2

Updated by Timo Goebel about 7 years ago

VMWare knows the IP address of a host when open-vm-tools are installed.

vm = client.servers.get('www.example.com')
vm.public_ip_address

Actions #3

Updated by Lukas Zapletal about 7 years ago

Thanks for update, we don't process it from the response (if API publishes it).

Actions

Also available in: Atom PDF