← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1220904] Re: PXE dhcp_option needs to provide the bootfile_name

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1220904

Title:
  PXE dhcp_option needs to provide the bootfile_name

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  in the nova/virt/baremetal/driver.py the call to pxe.py
  pxe.get_pxe_config_file_path(instance) need to return the bootfile
  name not the path.

  Line 84 reads only my_ip from nova conf. But, bootfile_path in line 512 (bootfile_path = self.driver.get_pxe_config_file_path(instance)) is getting set from pxe.py which is getting the value “/tftpboot/<instance-id>/config”. This value should actually be  “pxelinux.0” (or absolute location of pxelinux.0) .  baremetal does not find the bootfile in “/tftpboot/<instance-id>/config”, it finds it in /tftpboot/pxelinux.0 (where tftproot=/tftpboot set in nova.conf).
   
  In pxe.py,
  def get_pxe_config_file_path(instance):
      """Generate the path for an instances PXE config file."""
      return os.path.join(CONF.baremetal.tftp_root, instance['uuid'], 'config')

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1220904/+subscriptions