[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
Expired
Undecided
Unassigned

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)
Revision history for this message
Paul Mars (upils) wrote :

Hey Soar,

Do you still use this version of ubuntu-image? If you are still building images, can you try ubuntu-image 3.X? This is a complete reimplementation so this bug will probably not appear but the potential underlying issue may still be present.

Changed in ubuntu-image:
assignee: Łukasz Zemczak (sil2100) → nobody
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Ubuntu Image because there has been no activity for 60 days.]

Changed in ubuntu-image:
status: Incomplete → Expired
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.