Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1083998

Summary: PRD35 - [RFE] using foreman provider to provision bare-metal hosts
Product: Red Hat Enterprise Virtualization Manager Reporter: Oved Ourfali <oourfali>
Component: ovirt-engineAssignee: Yaniv Bronhaim <ybronhei>
Status: CLOSED ERRATA QA Contact: sefi litmanovich <slitmano>
Severity: unspecified Docs Contact:
Priority: urgent    
Version: 3.5.0CC: aberezin, bazulay, gklein, iheim, juwu, lpeer, oourfali, pstehlik, rbalakri, Rhev-m-bugs, slitmano, ybronhei, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: vt1.3 Doc Type: Enhancement
Doc Text:
With this update, you can now use Foreman to detect bare metal hosts, allowing the administrator to select and provision the bare metal host as a Red Hat Enterprise Virtualization Manager host.
Story Points: ---
Clone Of: 1081371 Environment:
Last Closed: 2015-02-11 17:58:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1083993, 1142871, 1165208    
Bug Blocks: 1081371, 1120896, 1142923, 1156165    

Description Oved Ourfali 2014-04-03 11:31:50 UTC
The requirement is for to leverage the Foreman provider in order to see information about bare-metal hosts, and provision.

Comment 1 Barak 2014-04-13 15:39:39 UTC
*** Bug 1081371 has been marked as a duplicate of this bug. ***

Comment 2 sefi litmanovich 2015-01-06 10:22:03 UTC
Verified with:

satellite 6.0.6, foreman-, ruby193-rubygem-ovirt_provision_plugin-1.0.1-1.el6.noarch.


the ovirt provisioning plugin is functional.
it was tested on a closed environment with a host serving as dhcp/dns/tftp/satellite server and as gateway from the inner network to outside network.
another host served as engine and a third host as the host to be provisioned and installed on rhevm.

if network is configured in the correct manner and satellite is configured according to feature wiki page (we might have to add/change some entries on the wiki page) + ovirt provisioning and foreman-discovery plugins are set then flow works:

1. reboot a host on the network and run from pxe.
2. choose foreman-discovery in the pxe menu.
3. host is discovered by foreman.
4. add foreman as an external provider in rhevm.
5. in rhevm, add host choosing 'Use Foreman Hosts Providers', and choose the host from the discovered hosts list.
6. choose a working host group to use for the host provisioning.
7. host state is OS_INSTALLATION and foreman's provisioning template installs os on the host.
8. after os installation is complete and successful host state in rhevm moves to installing as normal.
9. host is up.

The flow was tested with rhel 6.6 and rhel 7 provisioned on the host

two bugs are still opened but aren't blockers:

Comment 6 errata-xmlrpc 2015-02-11 17:58:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.