powerpc build attempts to cross when it's native and fails

Bug #1626810 reported by Robert C Jennings
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas-images
Fix Released
Medium
Scott Moser

Bug Description

When running in the buildd I see "cross=true" and the code goes off to use qemu-powerpc-static (which isn't installed). I see "arch: powerpc rel: yakkety host_arch: ppc" so maybe you have a bad comparison/lookup as these are the same, right?

Fri, 23 Sep 2016 01:48:23 +0000: starting maas-cloudimg2ephemeral -vv --arch=powerpc /tmp/maas-cloudimg2eph2.5Pn2N7/root.img none /tmp/maas-cloudimg2eph2.5Pn2N7/none-kernel /tmp/maas-cloudimg2eph2.5Pn2N7/none-initrd /tmp/maas-cloudimg2eph2.5Pn2N7/manifest
Fri, 23 Sep 2016 01:48:23 +0000: arch: powerpc rel: yakkety host_arch: ppc
Fri, 23 Sep 2016 01:48:23 +0000: qemu_arch=powerpc cross=true
cp: cannot stat '/usr/bin/qemu-powerpc-static': No such file or directory
failed to copy qemu-static [/usr/bin/qemu-powerpc-static] for powerpc
install qemu-user-static or set QEMU_STATIC_FMT
failed to apply updates to /tmp/maas-cloudimg2eph2.5Pn2N7/root.img
failed to turn /tmp/maas-cloudimg2eph2.5Pn2N7/root.img to ephemeral
skipping 404: http://ports.ubuntu.com/ubuntu-ports/dists/yakkety-updates/main/installer-powerpc: [http://ports.ubuntu.com/ubuntu-ports/dists/yakkety-updates/main/installer-powerpc] http error: 404
Traceback (most recent call last):
  File "/build/config/maas/bin/meph2-build", line 25, in <module>
    call_entry_point("meph2.commands.build_image.main")
  File "/build/config/maas/bin/meph2-build", line 22, in call_entry_point
    sys.exit(getattr(sys.modules[istr], ent)())
  File "/build/config/maas/meph2/commands/build_image.py", line 101, in main
    verbosity=vlevel, img_format=args.image_format)
  File "/build/config/maas/meph2/stream.py", line 259, in create_version
    subprocess.check_call(gencmd)
  File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['maas-cloudimg2eph2', '-vv', '--format=squashfs-image', '--kernel=none', '--arch=powerpc', '--manifest=binary/maas/yakkety/powerpc/20160923.1/root-image.manifest', 'livecd.ubuntu-cpc.squashfs', 'binary/maas/yakkety/powerpc/20160923.1/root-image.gz']' returned non-zero exit status 1

Related branches

Revision history for this message
Robert C Jennings (rcj) wrote :

Or we can stop trying to build powerpc entirely, but thought you'd like the log if you wanted to fix it.

Scott Moser (smoser)
Changed in maas-images:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Scott Moser (smoser)
Revision history for this message
Jack Lloyd-Walters (lloydwaltersj) wrote :

Closing as completed as an MP targeting this bug was merged.

Changed in maas-images:
status: Confirmed → 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.