snap create-key timeouts

Bug #1685146 reported by Federico Gimenez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Undecided
Unassigned

Bug Description

We have started getting an error on the test ran on zesty during the 2.24 SRU validation, the create-key test https://github.com/snapcore/snapd/blob/master/tests/main/create-key/task.yaml, which exercise the snap create-key command reaches the kill timeout and throws an error http://paste.ubuntu.com/24425481/ I've tried with the previous snapd version, 2.23.6+17.04.1 currently available in the archive, and it fails too.

This happens also with ubuntu-core images built from edge, this is the strace output from a zesty run http://paste.ubuntu.com/24425544/

Revision history for this message
Federico Gimenez (fgimenez) wrote :

Seems to be related to the lack of entropy in the test machines and sometimes on real desktops. Installing the rng-tools package, adding "HRNGDEVICE=/dev/urandom" to /etc/default/rng-tools and restarting rng-tools.service solve the issue for classic systems.

Revision history for this message
Michael Vogt (mvo) wrote :

This is fixed with https://github.com/snapcore/snapd/pull/4354 which will replace /dev/random with /dev/urandom in the tests.

Changed in snapd:
status: New → 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.