Ironic fails to deploy instance with pxe_ipmitool driver

asked 2015-08-13 03:44:28 -0500

bonclay7 gravatar image

updated 2015-08-13 03:53:51 -0500

Hi, I am using Ironic (on OpenStack Kilo) to deploy a bare metal server registered with pxe_ipmitool as a driver. The ramdisk and kernel are successufully loaded and the server got a IP from neutron as well, but the deployment fails with iscsiadm commands with this error :

"InstanceDeployFailure: Deploy failed for instance 6d68e947-5ef2-4a4b-858f-7fae7b924d66. Error: 'ascii' codec can't decode byte 0xc2 in position 24: ordinal not in range(128)"

Here are the logs of ironic-conductor :


ironic.common.utils [-] Command stderr is: "" execute /usr/lib/python2.7/site-packages/ironic/common/utils.py:85
oslo_concurrency.processutils [-] Running cmd (subprocess): env LC_ALL=C LANG=C qemu-img info /var/lib/ironic/images/bd764188-1477-4c3a-81e4-a9e933fcec7a/disk execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:199
oslo_concurrency.processutils [-] CMD "env LC_ALL=C LANG=C qemu-img info /var/lib/ironic/images/bd764188-1477-4c3a-81e4-a9e933fcec7a/disk" returned: 0 in 0.014s execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:225
ironic.common.utils [-] Execution completed, command line is "env LC_ALL=C LANG=C qemu-img info /var/lib/ironic/images/bd764188-1477-4c3a-81e4-a9e933fcec7a/disk" execute /usr/lib/python2.7/site-packages/ironic/common/utils.py:83
ironic.common.utils [-] Command stdout is: "image: /var/lib/ironic/images/bd764188-1477-4c3a-81e4-a9e933fcec7a/disk
file format: raw
virtual size: 1.5G (1658585088 bytes)
disk size: 890M

" execute /usr/lib/python2.7/site-packages/ironic/common/utils.py:84
ironic.common.utils [-] Command stderr is: "" execute /usr/lib/python2.7/site-packages/ironic/common/utils.py:85
ironic.drivers.modules.deploy_utils [-] Start destroy disk metadata for node bd764188-1477-4c3a-81e4-a9e933fcec7a. destroy_disk_metadata /usr/lib/python2.7/site-packages/ironic/drivers/modules/deploy_utils.py:442
oslo_concurrency.processutils [-] Running cmd (subprocess): sudo ironic-rootwrap /etc/ironic/rootwrap.conf dd if=/dev/zero of=/dev/disk/by-path/ip-192.168.10.56:3260-iscsi-iqn-bd764188-1477-4c3a-81e4-a9e933fcec7a-lun-1 bs=512 count=36 execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:199
oslo_concurrency.processutils [-] CMD "sudo ironic-rootwrap /etc/ironic/rootwrap.conf dd if=/dev/zero of=/dev/disk/by-path/ip-192.168.10.56:3260-iscsi-iqn-bd764188-1477-4c3a-81e4-a9e933fcec7a-lun-1 bs=512 count=36" returned: 0 in 0.101s execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:225
ironic.common.utils [-] Execution completed, command line is "dd if=/dev/zero of=/dev/disk/by-path/ip-192.168.10.56:3260-iscsi-iqn-bd764188-1477-4c3a-81e4-a9e933fcec7a-lun-1 bs=512 count=36" execute /usr/lib/python2.7/site-packages/ironic/common/utils.py:83
ironic.common.utils [-] Command stdout is: "" execute /usr/lib/python2.7/site-packages/ironic/common/utils.py:84
oslo_concurrency.processutils [-] Running cmd (subprocess): sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m node -p 192.168.10.56:3260 -T iqn-bd764188-1477-4c3a-81e4-a9e933fcec7a --logout execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:199
oslo_concurrency.processutils [-] CMD "sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m node -p 192.168.10.56:3260 -T iqn-bd764188-1477-4c3a-81e4-a9e933fcec7a --logout" returned: 0 in 0.104s execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:225
ironic.common.utils [-] Execution completed, command line is "iscsiadm -m node -p 192.168.10.56:3260 -T iqn-bd764188-1477-4c3a-81e4-a9e933fcec7a --logout" execute /usr/lib/python2.7/site-packages/ironic/common/utils.py:83
ironic.common.utils [-] Command stdout is: "Logging out of ...
(more)
edit retag flag offensive close merge delete

Comments

Did you try deploying using different image?

Srivathsa gravatar imageSrivathsa ( 2015-10-27 04:14:21 -0500 )edit