Bug 1401595 - Rhev pxe provision boot order being set is incorrect
Summary: Rhev pxe provision boot order being set is incorrect
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.6.0
Hardware: All
OS: All
high
high
Target Milestone: GA
: 5.7.2
Assignee: Martin Betak
QA Contact: Ilanit Stein
URL:
Whiteboard: rhev:pxe:provision
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-05 16:11 UTC by Josh Carter
Modified: 2020-03-11 15:27 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-06 06:33:37 UTC
Category: ---
Cloudforms Team: RHEVM
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
automation logs (1.76 MB, text/plain)
2017-02-03 18:05 UTC, Shveta
no flags Details

Description Josh Carter 2016-12-05 16:11:58 UTC
Description of problem:

Issuing a rhev pxe provision creates a vm with the incorrect boot order of 1.HD 2.Network and the virtual machine never picks up the pxe server. 

To summarize this issue.
1: VM provision started on CF 
2: The VM get created on RHV ,and power it on 
3: PXE/kick start didn't start on the VM.

If the above is correct can you please try to create empty template on RHV side and set the boot sequence options 
1: First Device: Network(PXE)
2: Second Device: HD

RHEV 3.5

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 Tomas Jelinek 2016-12-06 09:14:02 UTC
@Josh: so, if I get you correctly the issue is that:
- create a template and set the boot order of it to have 1st device network
- provision a VM from this template using CF
- the resulting VM does not have the netwrork as a first boot device

If this is indeed the case, than you are hitting this issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1340163

It will be fixed in 5.7.0

Comment 6 Martin Betak 2016-12-09 19:06:20 UTC
@Josh, just to be sure: did the overall PXE provisioning process fail or the only issue is that the VM is configured with 'hd' boot options?

Because from my understanding the VM entity should have the boot options inherited from the template (i.e. 'hd' in the case of a 'Blank' template) and after that VM is created it should be provisioned using the "Run Once" functionality where the boot options will be overriden to 'network' just for the single run for the provisioning purposes. (meaning that rest api will report just the "permanent" configuration of 'hd' as the boot order)

Is this the behavior you are observing or is something completely different happening?

Comment 7 Josh Carter 2016-12-12 21:45:12 UTC
With a template with the boot order set correctly (networking, hd) the vm boots up with HD first and never proceeds further in the pxe process.

Comment 8 Martin Betak 2016-12-13 12:33:30 UTC
@Josh if that is the case are you sure there is no problem with your particular PXE server? Maybe the boot proceeds with boot from hdd because it didn't manage to boot from network.

Comment 13 Ilanit Stein 2017-01-25 15:38:49 UTC
I've checked along with mbetak the PXE VM provision on different CFME versions,
and here's what we've got:

VM Provision from PXE problem was reproduced on CFME-5.6.2.2 & RHV-3.6.10
It was also reproduced on CFME-5.6.3.3 (latest CFME-5.6).
The VM that was created on RHV, was NOT ran once & loaded from Network,
as it should have.
It was simply run, using the boot order it inherited from the RHV template. 
In the case we checked, template had a HDD, CDROM boot order, and the VM failed to load from those two.

However, 
on CFME-5.7.0.17 (CFME-5.7 released on recent GA) & RHV-3.6.10, 
VM provision from PXE succeeded.
VM was run once, loaded from Network, using the selected image, then after installation of the image finished, the VM was restarted, and was loaded OK from HDD.
 
More details on the reproduce:
=============================
All the above reproduce trials were done using the same RHV-3.6.10, RHV template, PXE server, custom template.

After adding PXE server, and custom template, 
from Compute->Infrastructure->VMs & Templates-> Provision VMs:
Chose a RHV RHEL6.3 template, 
provision from PXE image, 
and in the custom tab, I chose the custom template, and entered a password.

Comment 18 Ilanit Stein 2017-02-02 11:43:29 UTC
Tested VM PXE provision, same way as mentioned in comment #13,
for CFME-5.7.1 & RHV-3.6.10, and it works well.

Comment 19 Shveta 2017-02-03 18:05:55 UTC
Created attachment 1247549 [details]
automation logs

tried with two different PXE servers.


Note You need to log in before you can comment on or make changes to this bug.