Unable to create a mysql guest image using redstack kickstart on a 32-bit OS

Bug #1339841 reported by mariam john
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trove Integration
Won't Fix
Wishlist
Amrith Kumar

Bug Description

Tried to create a mysql guest image on a 32-bit OS using the following command: ./redstack kick-start mysql.

It failed with the following error message: chroot: failed to run command `sh': Exec format error

 check_break after-extra-data bash
+ egrep -e '(,|^)after-extra-data(,|$)' -q
+ echo ''
+ run_d_in_target pre-install
+ check_element
+ '[' -d /tmp/image.sn1478eH/hooks ']'
+ '[' -d /tmp/image.sn1478eH/hooks/pre-install.d ']'
+ sudo mkdir /tmp/image.sn1478eH/mnt/tmp/in_target.d
+ sudo mount --bind /tmp/image.sn1478eH/hooks /tmp/image.sn1478eH/mnt/tmp/in_target.d
+ sudo mount -o remount,ro,bind /tmp/image.sn1478eH/hooks /tmp/image.sn1478eH/mnt/tmp/in_target.d
+ check_break before-pre-install run_in_target bash
+ egrep -e '(,|^)before-pre-install(,|$)' -q
+ echo ''
+ trap 'check_break after-error run_in_target bash' ERR
+ run_in_target dib-run-parts /tmp/in_target.d/pre-install.d
+ cmd='PATH=$PATH:/usr/local/bin ; dib-run-parts /tmp/in_target.d/pre-install.d'
+ ORIG_HOME=/home/ubuntu/trove-integration/scripts/
+ export HOME=/root
+ HOME=/root
+ sudo -E chroot /tmp/image.sn1478eH/mnt sh -c 'PATH=$PATH:/usr/local/bin ; dib-run-parts /tmp/in_target.d/pre-install.d'
chroot: failed to run command `sh': Exec format error
++ check_break after-error run_in_target bash
++ egrep -e '(,|^)after-error(,|$)' -q
++ echo ''
+ cleanup
+ unmount_image

I managed to get this to work by changing amd64 architecture to i386 where the disk-image-create script gets called.

Revision history for this message
Amrith Kumar (amrith) wrote :

I'm assigning it to myself per IRC chat with johnma.

Changed in trove:
assignee: nobody → Amrith (amrith)
Changed in trove:
importance: Undecided → High
affects: trove → trove-integration
Changed in trove-integration:
milestone: none → juno-2
Changed in trove-integration:
milestone: juno-2 → juno-3
Revision history for this message
Amrith Kumar (amrith) wrote :

We talked about this briefly at summit and the thought was that this not be fixed in juno-3. No decision was made about it though. I'll propose deferring at the Wednesday meeting.

Amrith Kumar (amrith)
Changed in trove-integration:
milestone: juno-3 → none
Revision history for this message
Amrith Kumar (amrith) wrote :

The fix for this isn't hard (pick a different base cloud image). The bigger problem is whether we want to actually bother. At this point, I'm not sure it is worth it any longer. I'm marking this as such.

Changed in trove-integration:
importance: High → Medium
status: New → Confirmed
importance: Medium → Wishlist
status: Confirmed → Won't Fix
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.