IPA deploy driver gives incomprehensible error message when using partition images

Bug #1430454 reported by Jim Rollenhagen
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Medium
Sirushti Murugesan

Bug Description

Clearly using a partition image should fail, however the error message could be better:

Current error message:
17:24:16 jgrimm | anyone seen this error before?->ConfigDriveWriteError', u'details': u'Writing configdrive to device /dev/sda failed with exit code 1. stdout: copy_configdrive_to_disk.sh: Adding configdrive partition to /dev/sda\ncopy_configdrive_to_disk.sh: Error creating configdrive on /dev/sda\n. stderr: partx: /dev/sda: failed to read partition table\nparted: invalid token: primary\nError: Expecting a file system type.

We should verify the image is suitable up front, before attempting to deploy it.

Tags: agent
Changed in ironic:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Jon Grimm (jgrimm) wrote :

FWIW, the image I created was created via DIB and successfullly deployed with pxe_ipmitool.

Nothing fancy, just:
  disk-image-create -a amd64 -u fedora -o my-image

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

Fix proposed to branch: master
Review: https://review.openstack.org/164440

Changed in ironic:
assignee: nobody → Sirushti Murugesan (sirushtim)
status: Confirmed → In Progress
aeva black (tenbrae)
Changed in ironic:
milestone: none → kilo-rc1
aeva black (tenbrae)
Changed in ironic:
milestone: kilo-rc1 → kilo-3
Thierry Carrez (ttx)
Changed in ironic:
milestone: kilo-3 → kilo-rc1
Dmitry Tantsur (divius)
tags: added: agent
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/164440
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=dc4947438bbb88cc4dbd08a3ff7279b5e7ea1590
Submitter: Jenkins
Branch: master

commit dc4947438bbb88cc4dbd08a3ff7279b5e7ea1590
Author: Sirushti Murugesan <email address hidden>
Date: Sat Mar 14 21:51:00 2015 +0530

    Raise exception for Agent Deploy driver when using partition images

    Also, fixed some tests related to common code agent base vendor.

    Implements blueprint whole-disk-image-support
    Closes-Bug: #1430454

    Change-Id: Ibca9fee3ba86ee29ac9fdcdf19bca6c45bb4856f

Changed in ironic:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ironic:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ironic:
milestone: kilo-rc1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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