[Classic][arm64/armhf] The options combination causes generate_manifests() function failed

Bug #1886758 reported by Soar Huang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Image
New
Undecided
Łukasz Zemczak

Bug Description

When building classic image, if the target arch is arm64/armhf and with options "-f cloud-image", ie.

---------------------------------
sudo QEMU_STATIC=qemu-arm-static TARGET_ARCH=armhf ubuntu-image classic -f cloud-image -d --hooks-directory hooks -s bionic -a armhf -O out-tmp -w work gadget/prime
---------------------------------

will cause generate_manifests() function failed. No matter with/without option "--hooks-directory hooks" or not.

## Error message ##
---------------------------------
DEBUG:ubuntu-image:-> [13] generate_manifests
chroot: failed to run command ‘dpkg-query’: No such file or directory
ERROR:ubuntu-image:COMMAND FAILED: ['sudo', 'chroot', '/home/vagrant/vasteras/image-builds/work/root', 'dpkg-query', '-W', '--showformat=${Package} ${Version}\n']
ERROR:ubuntu-image:uncaught exception in state machine step: [13] generate_manifests
---------------------------------

## Other test cases ##

* If the target arch is amd64 and with options "-f cloud-image", the failure will not happened.

* If the target arch is arm64/armhf and with options "-p ubuntu-cpc" without option "--hooks-directory hooks", the failure will not happened.

BUT.. WITH option "--hooks-directory hooks", the failure will happened.

Soar Huang (soarhuang)
description: updated
Revision history for this message
Soar Huang (soarhuang) wrote :

Test cases table as attached (ubunut-image_TestCases.png), hope the table clarifies any confusion.

Changed in ubuntu-image:
assignee: nobody → Łukasz Zemczak (sil2100)
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.