# Ironic deployment iSCSI - iscsi_target_iqn is not defined

I have successfully setup Packstack Ocata to work with Ironic, but seems that one piece of it it's still missing. I can boot new instance with own image without any error till unpacking ramdisk in baremetal node. I created image parts with following commands:

disk-image-create ubuntu baremetal dhcp-all-interfaces bootloader -o my-image
ramdisk-image-create ubuntu deploy-ironic -o my-image-ramdisk


After DHCP, TFTP and ramdisk unpacking is done and the command where node is pinging Ironic host, there is another part of setup for Ironic going on (as usually at every Ironic deployment). The iSCSI procedure to install image on baremetal node. But here the problem which I'm getting arises (it's shown in node's console). I get message

iscsi_target_iqn is not defined

and after some digging of my OpenStack install and web, I found out that I should have set ISCSI_TARGET_IQN variable as kernel parameter in node's config file (located as /tftpboot/[node_uuid]/config). But it's not, as some other parameters like IRONIC_API_URL (instead of this one, I have something like IPA_URL ), ... I found those variables here - this is also the element which is used in my own image: https://github.com/openstack/diskimage-builder/blob/1.28.0/elements/deploy-ironic/init.d/80-deploy-ironic

I also checked if everything is well with iSCSI daemon and other services which this one depends on. And soon I found out there are some problems which I fixed, so iscsid.service along iscsiuio.service and iscsi-shutdown.service is working. But the problematic is iscsi.service, which is inactive (dead). This is output of systemctl status iscsi.service:

● iscsi.service - Login and scanning of iSCSI devices
Loaded: loaded (/usr/lib/systemd/system/iscsi.service; enabled; vendor preset: disabled)

I tried again to boot new instance, but the same problem with incorrect config of node and iscsi_target_iqn is not defined appeared again.