CCI-MOC / m2

Bare Metal Imaging (Malleable Metal as a Service)
18 stars 16 forks source link

Passing multiple Targets in ipxe file #176

Open mihirborkar opened 6 years ago

mihirborkar commented 6 years ago

In addition to the issue #175 , When I try passing multiple targets in the ipxe file, it should ideally pick up the first active path and boot from it. Which it does for the following configuration with 10.20.30.1 and 10.20.30.2 being the two target IPs :

#!ipxe
  sleep 23
  set keep-san 1
  ifconf --configurator=dhcp net0
  sanboot iscsi:10.20.30.1:tcp:3260:1:kumo-dan-installscript-img37 \
                iscsi:10.20.30.2:tcp:3260:1:kumo-dan-installscript-img37
  boot

However when I try adding another target in the ipxe file Like :

#!ipxe
  sleep 23
  set keep-san 1
  ifconf --configurator=dhcp net0
  sanboot iscsi:10.20.30.1:tcp:3260:1:kumo-dan-installscript-img37 \
                iscsi:10.20.30.2:tcp:3260:1:kumo-dan-installscript-img37 \
                **iscsi:10.20.30.3:tcp:3260:1:kumo-dan-installscript-img37**
  boot

it gives me an error stating Could not describe san device : No such device http://ipxe.org/err/348520

  1. I have tried logging into the physical terminal and giving the arguments rather than passing them through the /var;/lib/tftpboot/dell*.ipxe file, but still getting the same result.

  2. I have also tried reducing the name of the targets in the below fashion:

root@bmi-introspect tftpboot]# cat dell-12.ipxe 
#!ipxe
      sleep 23
      set keep-san 1
      ifconf --configurator=dhcp net0
      shell
      sanboot iscsi:10.20.30.1:tcp:3260:1:try \
              iscsi:10.20.30.2:tcp:3260:1:try \
              iscsi:10.20.30.3:tcp:3260:1:try
      boot

However on doing this, the node gets stuck on :

dracut-initqueue[537] : RTNETLINK answers: File exists 
dracut-initqueue[537] : Warning : Kernel command line option 'iscsi_firmware' is deprecated, use 'rd.iscsi.firmware' instead.
dracut-initqueue[537] : Warning : iscsistart : could not get list of targets from firmware. 

Kindly let me know if anyone knows how to go about it.