Merge "Do not pass PXE net config from bootloader to ramdisk"
This commit is contained in:
commit
f696defb08
@ -3,7 +3,7 @@ default=deploy
|
|||||||
image={{pxe_options.deployment_aki_path}}
|
image={{pxe_options.deployment_aki_path}}
|
||||||
label=deploy
|
label=deploy
|
||||||
initrd={{pxe_options.deployment_ari_path}}
|
initrd={{pxe_options.deployment_ari_path}}
|
||||||
append="rootfstype=ramfs selinux=0 disk={{ pxe_options.disk }} iscsi_target_iqn={{ pxe_options.iscsi_target_iqn }} deployment_id={{ pxe_options.deployment_id }} deployment_key={{ pxe_options.deployment_key }} ironic_api_url={{ pxe_options.ironic_api_url }} troubleshoot=0 text {{ pxe_options.pxe_append_params|default("", true) }} ip=%I:{{pxe_options.tftp_server}}:%G:%M:%H::on" {% if pxe_options.root_device %}root_device={{ pxe_options.root_device }}{% endif %}
|
append="rootfstype=ramfs selinux=0 disk={{ pxe_options.disk }} iscsi_target_iqn={{ pxe_options.iscsi_target_iqn }} deployment_id={{ pxe_options.deployment_id }} deployment_key={{ pxe_options.deployment_key }} ironic_api_url={{ pxe_options.ironic_api_url }} troubleshoot=0 boot_server={{ pxe_options.tftp_server }} text {{ pxe_options.pxe_append_params|default("", true) }} BOOTIF={{ mac }}" {% if pxe_options.root_device %}root_device={{ pxe_options.root_device }}{% endif %}
|
||||||
|
|
||||||
image={{pxe_options.aki_path}}
|
image={{pxe_options.aki_path}}
|
||||||
label=boot
|
label=boot
|
||||||
|
@ -5,7 +5,7 @@ dhcp
|
|||||||
goto deploy
|
goto deploy
|
||||||
|
|
||||||
:deploy
|
:deploy
|
||||||
kernel {{ pxe_options.deployment_aki_path }} selinux=0 disk={{ pxe_options.disk }} iscsi_target_iqn={{ pxe_options.iscsi_target_iqn }} deployment_id={{ pxe_options.deployment_id }} deployment_key={{ pxe_options.deployment_key }} ironic_api_url={{ pxe_options.ironic_api_url }} troubleshoot=0 text {{ pxe_options.pxe_append_params|default("", true) }} ip=${ip}:${next-server}:${gateway}:${netmask} BOOTIF=${mac} {% if pxe_options.root_device %}root_device={{ pxe_options.root_device }}{% endif %}
|
kernel {{ pxe_options.deployment_aki_path }} selinux=0 disk={{ pxe_options.disk }} iscsi_target_iqn={{ pxe_options.iscsi_target_iqn }} deployment_id={{ pxe_options.deployment_id }} deployment_key={{ pxe_options.deployment_key }} ironic_api_url={{ pxe_options.ironic_api_url }} troubleshoot=0 boot_server={{ pxe_options.tftp_server }} text {{ pxe_options.pxe_append_params|default("", true) }} BOOTIF=${mac} {% if pxe_options.root_device %}root_device={{ pxe_options.root_device }}{% endif %}
|
||||||
initrd {{ pxe_options.deployment_ari_path }}
|
initrd {{ pxe_options.deployment_ari_path }}
|
||||||
boot
|
boot
|
||||||
|
|
||||||
|
@ -2,9 +2,8 @@ default deploy
|
|||||||
|
|
||||||
label deploy
|
label deploy
|
||||||
kernel {{ pxe_options.deployment_aki_path }}
|
kernel {{ pxe_options.deployment_aki_path }}
|
||||||
append initrd={{ pxe_options.deployment_ari_path }} rootfstype=ramfs selinux=0 disk={{ pxe_options.disk }} iscsi_target_iqn={{ pxe_options.iscsi_target_iqn }} deployment_id={{ pxe_options.deployment_id }} deployment_key={{ pxe_options.deployment_key }} ironic_api_url={{ pxe_options.ironic_api_url }} troubleshoot=0 text {{ pxe_options.pxe_append_params|default("", true) }} {% if pxe_options.root_device %}root_device={{ pxe_options.root_device }}{% endif %}
|
append initrd={{ pxe_options.deployment_ari_path }} rootfstype=ramfs selinux=0 disk={{ pxe_options.disk }} iscsi_target_iqn={{ pxe_options.iscsi_target_iqn }} deployment_id={{ pxe_options.deployment_id }} deployment_key={{ pxe_options.deployment_key }} ironic_api_url={{ pxe_options.ironic_api_url }} troubleshoot=0 boot_server={{ pxe_options.tftp_server }} text {{ pxe_options.pxe_append_params|default("", true) }} {% if pxe_options.root_device %}root_device={{ pxe_options.root_device }}{% endif %}
|
||||||
ipappend 3
|
ipappend 2
|
||||||
|
|
||||||
|
|
||||||
label boot
|
label boot
|
||||||
kernel {{ pxe_options.aki_path }}
|
kernel {{ pxe_options.aki_path }}
|
||||||
|
@ -2,9 +2,8 @@ default deploy
|
|||||||
|
|
||||||
label deploy
|
label deploy
|
||||||
kernel /tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/deploy_kernel
|
kernel /tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/deploy_kernel
|
||||||
append initrd=/tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/deploy_ramdisk rootfstype=ramfs selinux=0 disk=cciss/c0d0,sda,hda,vda iscsi_target_iqn=iqn-1be26c0b-03f2-4d2e-ae87-c02d7f33c123 deployment_id=1be26c0b-03f2-4d2e-ae87-c02d7f33c123 deployment_key=0123456789ABCDEFGHIJKLMNOPQRSTUV ironic_api_url=http://192.168.122.184:6385 troubleshoot=0 text test_param root_device=vendor=fake,size=123
|
append initrd=/tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/deploy_ramdisk rootfstype=ramfs selinux=0 disk=cciss/c0d0,sda,hda,vda iscsi_target_iqn=iqn-1be26c0b-03f2-4d2e-ae87-c02d7f33c123 deployment_id=1be26c0b-03f2-4d2e-ae87-c02d7f33c123 deployment_key=0123456789ABCDEFGHIJKLMNOPQRSTUV ironic_api_url=http://192.168.122.184:6385 troubleshoot=0 boot_server=192.168.122.184 text test_param root_device=vendor=fake,size=123
|
||||||
ipappend 3
|
ipappend 2
|
||||||
|
|
||||||
|
|
||||||
label boot
|
label boot
|
||||||
kernel /tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/kernel
|
kernel /tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/kernel
|
||||||
|
@ -49,7 +49,8 @@ class TestPXEUtils(db_base.DbTestCase):
|
|||||||
'deployment_aki_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-'
|
'deployment_aki_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-'
|
||||||
u'c02d7f33c123/deploy_kernel',
|
u'c02d7f33c123/deploy_kernel',
|
||||||
'disk': 'cciss/c0d0,sda,hda,vda',
|
'disk': 'cciss/c0d0,sda,hda,vda',
|
||||||
'root_device': 'vendor=fake,size=123'
|
'root_device': 'vendor=fake,size=123',
|
||||||
|
'tftp_server': '192.168.122.184'
|
||||||
}
|
}
|
||||||
self.agent_pxe_options = {
|
self.agent_pxe_options = {
|
||||||
'deployment_ari_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7'
|
'deployment_ari_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user