Ironic: Deploy user image failed use dirver fuel_ipmitool or fuel_ssh

Bug #1641559 reported by tomson
256
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Medium
Fuel Sustaining
Mitaka
Won't Fix
Medium
Fuel Sustaining

Bug Description

I enrolled an ironic node with fuel_ipmitool/fuel_ssh as the driver.And then i used disk-image-create created a user image. Also i used glance image-create registered it with extra info ‘[{"name": "sda", "extra": [], "free_space": 11000, "type": "disk",
"id": "vda", "size": 11000, "volumes": [{"mount": "/", "type":
"partition", "file_system": "ext4", "size": 10000}]}]’

When i used nova boot to boot an instance, the ironic node could powered on and booted with deploy image. But then it reported errors and powered off.

Error information:

 fuel_agent.utils.utils [-] Trying to execute command: mount -t ext2 /dev/sda3 /tmp/tmpsmfXTZ
2016-11-14 07:48:37.673 860 WARNING fuel_agent.utils.utils [-] Failed to execute command: Unexpected error while running command.
Command: mount -t ext2 /dev/sda3 /tmp/tmpsmfXTZ
Exit code: 32
Stdout: ''
Stderr: 'mount: wrong fs type, bad option, bad superblock on /dev/sda3,\n missing codepage or helper program, or other error\n In some cases useful info is found in syslog - try\n dmesg | tail or so\n\n'
2016-11-14 07:48:37.674 860 ERROR fuel_agent.cmd.agent [-] Unexpected error while running command.
Command: mount -t ext2 /dev/sda3 /tmp/tmpsmfXTZ

Tags: area-library
Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

Please attach diagnostic snapshot, marking as Incomplete.

Changed in fuel:
status: New → Incomplete
tomson (zztflyer)
Changed in fuel:
status: Incomplete → New
Revision history for this message
tomson (zztflyer) wrote :

I tried many times, it seems about the user images. I got that fuel_ipmitool only support raw format user images.
Now I wonder how to build a usable user image.

below is how i create a user image.

disk-image-create -a amd64 -p grub2-common,grub-pc,grub-gfxpayload-lists,emacs24-nox,parted vm ubuntu-minimal -o ubuntu-minimal -t raw

In this way, the ironic-conductor log report errors:

Exit code: 32
Stdout: ''
Stderr: 'mount: wrong fs type, bad option, bad superblock on /dev/sda3,\n missing codepage or helper program, or other error\n In some cases useful info is found in syslog - try\n dmesg | tail or so\n\n'

Revision history for this message
tomson (zztflyer) wrote :

when i execute this command:
disk-image-create -a amd64 -p grub2-common,grub-pc,grub-gfxpayload-lists,emacs24-nox,parted baremetal ubuntu-minimal -o ubuntu-minimal -t raw

it output three files:ubuntu-minimal.initrd ubuntu-minimal.raw ubuntu-minimal-2nd.vmlinuz.

I register ubuntu-minimal.raw
glance image-create --name myimage --disk-format raw --container-format bare \
--file ubuntu-minimal.raw --visibility public
glance image-update 8304e68e-1df8-403b-8c85-1fb6b09bdc55 --property cpu_arch=x86_64 \
--property hypervisor_type="baremetal" \
--property fuel_disk_info='[{"name": "sda", "extra": [], "free_space": 110000, "type": "disk","id": "vda", "size": 110000, "volumes": [{"mount": "/", "type":"partition", "file_system": "ext4", "size": 30000}]}]'

at last i use this image to boot an instance successfully, but ubuntu os didn't work.

Changed in fuel:
milestone: none → 9.2
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
status: New → Confirmed
importance: Undecided → Medium
tags: added: area-library
tomson (zztflyer)
information type: Public → Public Security
Revision history for this message
Stanislaw Bogatkin (sbogatkin) wrote :

Hi tomson,
problem is that disk-image-create uses ext4 but fuel-agent uses ext2 as a file system to mount. So you need or ext2 as image fs type or wait while developers add other fs to fuel-agent.

Roman Vyalov (r0mikiam)
Changed in fuel:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.