I used nova-baremetal to deploy a node, and it worked. But it's just a ubuntu node.
But when I used the diskimage-builder to create a image with openstack, the deployment failed.
I got the error message from nova-baremetal-deploy-helper:
2014-02-28 12:29:45.905 ERROR nova.virt.baremetal.deploy_helper [req-dc56aa91-019b-491e-9093-0cf9a4bd39ed None None] deployment to node 1 failed 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper Traceback (most recent call last): 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper File "/opt/stack/nova/nova/cmd/baremetal_deploy_helper.py", line 292, in run 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper deploy(*params) 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper File "/opt/stack/nova/nova/cmd/baremetal_deploy_helper.py", line 257, in deploy 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper LOG.error(_("StdErr : %r"), err.stderr) 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__ 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper six.reraise(self.type_, self.value, self.tb) 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper File "/opt/stack/nova/nova/cmd/baremetal_deploy_helper.py", line 251, in deploy 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper image_path, preserve_ephemeral) 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper File "/opt/stack/nova/nova/cmd/baremetal_deploy_helper.py", line 231, in work_on_disk 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper LOG.error(_("Failed to detect root device UUID.")) 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__ 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper six.reraise(self.type_, self.value, self.tb) 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper File "/opt/stack/nova/nova/cmd/baremetal_deploy_helper.py", line 228, in work_on_disk 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper root_uuid = block_uuid(root_part) 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper File "/opt/stack/nova/nova/cmd/baremetal_deploy_helper.py", line 146, in block_uuid 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper check_exit_code=[0]) 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper File "/opt/stack/nova/nova/utils.py", line 165, in execute 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper return processutils.execute(cmd, **kwargs) 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper File "/opt/stack/nova/nova/openstack/common/processutils.py", line 193, in execute 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper cmd=' '.join(cmd)) 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper ProcessExecutionError: Unexpected error while running command. 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper Command: sudo nova-rootwrap /etc/nova/rootwrap.conf blkid -s UUID -o value /dev/disk/by-path/ip-192.168.100.11:3260-iscsi-iqn-0f715f00-0e49-4fea-aed6-896bfc60fb9e-lun-1-part1 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper Exit code: 2 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper Stdout: '' 2014-02-28 12:29:45.905 TRACE nova.virt.baremetal.deploy_helper Stderr: ''
We can see with this command 'sudo nova-rootwrap /etc/nova/rootwrap.conf blkid -s UUID -o value /dev/disk/by-path/ip-192.168.100.11:3260-iscsi-iqn-0f715f00-0e49-4fea-aed6-896bfc60fb9e-lun-1-part1', we can't get the UUID.
I also investigated how to use 'blkid', and it seems 'blkid' can't fetch UUID from the device.
Can anyone give some advice?