Cannot create Centos7 image with DIB software elements config

Bug #1363146 reported by Pedro Sousa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Low
Ian Wienand

Bug Description

Procedure tested:

# wget http://cloud.centos.org/centos/7/devel/CentOS-7-x86_64-GenericCloud-20140826_02.qcow2
# git clone https://git.openstack.org/openstack/diskimage-builder.git
# git clone https://git.openstack.org/openstack/tripleo-image-elements.git
# git clone https://git.openstack.org/openstack/heat-templates.git
# export ELEMENTS_PATH=tripleo-image-elements/elements:heat-templates/hot/software-config/elements
# export DIB_LOCAL_IMAGE=/root/CentOS-7-x86_64-GenericCloud-20140826_02.qcow2
# diskimage-builder/bin/disk-image-create vm centos7 selinux-permissive heat-config os-collect-config os-refresh-config os-apply-config heat-config-cfn-init heat-config-puppet heat-config-script -o centos7.qcow2

Building elements: base vm centos7 selinux-permissive heat-config os-collect-config os-refresh-config os-apply-config heat-config-cfn-init heat-config-puppet heat-config-script
Expanded element dependencies to: heat-config-cfn-init centos7 os-refresh-config rpm-distro os-collect-config pkg-map dib-run-parts redhat-common vm heat-config-puppet manifests pip-and-virtualenv base selinux-permissive os-apply-config pip-manifest cache-url yum source-repositories heat-config heat-config-script
Building in /tmp/image.Y2hj2J55
dib-run-parts Fri Aug 29 16:45:24 WEST 2014 Running /tmp/image.Y2hj2J55/hooks/root.d/01-ccache
dib-run-parts Fri Aug 29 16:45:24 WEST 2014 01-ccache completed
dib-run-parts Fri Aug 29 16:45:24 WEST 2014 Running /tmp/image.Y2hj2J55/hooks/root.d/10-centos7-cloud-image
Repacking base image as tarball.
Working in /tmp/tmp.1vfALYCiG9
/dev/loop2
mount: /dev/mapper is not a block device

Steven Dake (sdake)
no longer affects: heat
Revision history for this message
Ian Wienand (iwienand) wrote :

I will take a look at this

Changed in diskimage-builder:
assignee: nobody → Ian Wienand (iwienand)
Revision history for this message
Steve Kowalik (stevenk) wrote :

That doesn't look like a DIB issue. Are you sure your kernel has "Device mapper support" enabled as either a built-in or a module?

Changed in diskimage-builder:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

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

Changed in diskimage-builder:
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/118246
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=45afb6d86cd020f0856858d7eb6f31b8b6c0b199
Submitter: Jenkins
Branch: master

commit 45afb6d86cd020f0856858d7eb6f31b8b6c0b199
Author: Ian Wienand <email address hidden>
Date: Tue Sep 2 14:30:56 2014 +1000

    Update to newer Centos7 images

    Update to newer Centos7 images as announced at [1].

    Changes included:
     * update to GA image
     * respect TMP_DIR for image working directory
     * use suffix-match rather than prefix-match to build RAW_IMAGE name
       to be more robust against weird names
     * partition layout work-arounds not needed any-more, all one
       partition.

    Resulting image booted locally with kvm and virtualbox (after
    conversion to vdi)

    [1] https://www.redhat.com/archives/rdo-list/2014-August/msg00045.html

    Closes-Bug: #1363146
    Change-Id: Ie24033468b78587ea87188ee1b843b26895798ff

Changed in diskimage-builder:
status: In Progress → Fix Committed
Jay Dobies (jdob)
Changed in diskimage-builder:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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