Ask Your Question
1

Can't fetch the device UUID when deploying the baremetal node [closed]

asked 2014-02-27 22:57:08 -0500

xu-haiwei gravatar image

updated 2014-02-28 17:24:01 -0500

smaffulli gravatar image

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 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by koolhead17
close date 2014-06-05 08:05:41.787265

Comments

I have the same issue, using a qcow2 image ... :) on ubuntu, I tried using a cirros image and it works fine ...

ecnarvaez ( 2014-03-03 11:52:15 -0500 )edit

@ecnarvaez Thank you for your comment. I am really confused about this. I used the diskimage-builder to create another ubuntu image in qcow2 type, and it worked. Now my goal is not using ubuntu image, I want to deploy node with an openstack image. There must be something wrong with the image.

xu-haiwei ( 2014-03-03 20:36:53 -0500 )edit

@ecnarvaez Have you built a gold image of openstack?

xu-haiwei ( 2014-03-03 23:56:25 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-03-11 01:25:03 -0500

xu-haiwei gravatar image

I got a reply from the Robert Collins, "for nova baremetal you need partition image, not disk images."

edit flag offensive delete link more
1

answered 2014-03-06 22:15:06 -0500

xu-haiwei gravatar image

I have got a little progress, I modified the diskimage-builder command by removing the 'vm' option, and got a new image. Use this command.

$diskimage-builder/bin/disk-image-create -u base local-config stackuser heat-cfntools -a amd64 -o bootstrap

When I used the new image to deploy the bm node, the error disappeared.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

Follow
3 followers

Stats

Asked: 2014-02-27 22:57:08 -0500

Seen: 271 times

Last updated: Mar 11 '14