[CDTS] USB drive test will fail due to no udisks2 package

Bug #1922886 reported by Rick Wu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Next Generation Checkbox (CLI)
Won't Fix
High
Jonathan Cave

Bug Description

[Summary]
USB drive test case will fail due to no udisk2 package.
This won't happen after install udisk2 package manually.
($ sudo apt install udisk2)
Snap info:
Name Version Rev Tracking Publisher Notes
cdts 0.6 87 20.04/stable ce-certification-qa classic
checkbox20 1.20 428 latest/stable ce-certification-qa -

[Steps to reproduce]
1.Boot into system
2.Run "usb/insert" case

[Expected result]
Should detect usb insert without any error.

[Actual result]
USB insert case will fail due to no udisk2 package.

[Failure rate]
100%

Related branches

Revision history for this message
Rick Wu (rickwu4444) wrote :
description: updated
Rick Wu (rickwu4444)
Changed in checkbox-ng:
importance: Undecided → High
Rick Wu (rickwu4444)
Changed in checkbox-ng:
assignee: nobody → Jonathan Cave (jocave)
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

small relief: Hirsute server comes with udisks2.

So far usb/insert job only triggers a non-udisks2 if it detects running on UC, assuming all classic variants had udisks2.

it's true for desktop but up to focal the udisks2 package is not per-installed on server isos.

I've tried to come up with a solution to this problem by designing a snap embedding all the udisks2 services and starting only when there's no existing systemd unit in place. It never worked reliably.

The only interim solution I can think of is a new jinja template helper not checking if checkbox runs on classic or server but systemd service check, or a dpkg db check. In both case the goal is to identify a sw providing the udisks2 service

Revision history for this message
Kent Lin (kent-jclin) wrote :

Customer of ODM program test report the issue when target test machine install Ubuntu Server.

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

Since udisks2 will be back to Ubuntu Server starting with Hirsute let's update our CDTS installation procedure to also install udisks2. That's already what QA does when testing classic images on IoT projects.

That's the short term solution.

Else to support US w/o udisks2, no choice other than merging the two scripts and detect if udisks service is running to decide which portion of code to run.

Rick Wu (rickwu4444)
description: updated
Changed in checkbox-ng:
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.