Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1382030 - [RFE] Be able to choose the network boot order when using VMware provisioning with compute resource
Summary: [RFE] Be able to choose the network boot order when using VMware provisioning...
Keywords:
Status: CLOSED DUPLICATE of bug 1398317
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources - VMWare
Version: 6.2.2
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: Unspecified
Assignee: Chris Roberts
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-05 14:40 UTC by Kenny Tordeurs
Modified: 2023-12-15 15:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-16 22:00:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Kenny Tordeurs 2016-10-05 14:40:41 UTC
Description of problem:
The setting which hardcodes PXE (network) boot as first choise, is problematic for us for several reasons
1. the only way to change it, is to edit the VMs vmx-file while the server is powered off (it is not even possible to change it in the virtual bois of the vm)
2. we use use image bases installations due to not having dhcp available on the client subnets, and we never use PXE
3. when we get PXE first on all new hosts, we get a delay in the boot process while the PXE boot times out
4. if for some reason a server on the subnet should start to answer PXE requests, we might have one or more servers reinstalled unintentionally

We would like to have the boot order configurable, and also be able to have a blank/null value which uses the default from VMWare.

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

How reproducible:
100%

Steps to Reproduce:
1. Create a new host with VMware compute resource
2.
3.

Actual results:
Network is in first boot order

Expected results:
Be able to choose which boot order will be used

Additional info:
I think this is caused by the following code:

/usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb
~~~
...
   def vm_instance_defaults
      super.merge(
        :memory_mb  => 768,
        :interfaces => [new_interface],
        :volumes    => [new_volume],
        :scsi_controller => { :type => scsi_controller_default_type },
        :datacenter => datacenter,
        :boot_order => ['network', 'disk'],
~~~


Reason why there is network as primary for boot_order is for rebuilding:

When creating a virtual machine via Foreman on a VMware compute resource (ESX), the boot order of the VM has the hard disk as first boot device and network as last boot device.
This works for the first VM build because there's nothing on the VM HDD, but when you try to rebuild the VM the PXE image is never loaded from the network because the installed OS is booted first from HDD.
Somehow the default boot order should have network set as the first boot device, just like it happens for other compute resource types, e.g. libvirt/KVM.

So in your case you could modify the boot_order if you are not rebuilding the machines this would be valid.
If we would do something as a one time only network for primary boot_order we would have the same issue when trying to rebuild the VM.

Comment 1 Kenny Tordeurs 2016-10-12 13:34:14 UTC
Removing the boot_order [1] line makes the boot order of new VMs behave like in 6.1.x (uses the default boot order from VMWare).

[1] /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb

Comment 2 Chris Roberts 2017-04-05 14:57:49 UTC
Part of the work im doing for this:

https://bugzilla.redhat.com/show_bug.cgi?id=1398317

So taking this BZ

Comment 3 Chris Roberts 2017-05-16 22:00:08 UTC

*** This bug has been marked as a duplicate of bug 1398317 ***


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