New issue
Advanced search Search tips

Issue 900257 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

SetUpUser RPC failed in useradd with lock file already used

Project Member Reported by jkardatzke@chromium.org, Oct 30

Issue description

Chrome OS 11209.0.0, celes

Observed from a stainless test run, here's the error:

2018-10-30T03:00:17.166959-07:00 ERR vm_cicerone[32397]: Failed to set up user: failed to add user: useradd: /etc/subgid.24: lock file already used#012useradd: cannot lock /etc/subgid; try again later.#012

Full results:

https://stainless.corp.google.com/browse/chromeos-autotest-results/253504725-chromeos-test/

This is the first time I've seen this happen. I'll update the bug if it happens again.
 
Cc: smbar...@chromium.org
 Issue 908528  has been merged into this issue.
So far I've only seen failures on 3.18 Braswell devices. But no luck trying to get a local repro.

Could be racing against... maybe a deb package's postinst? I have a lot of speculation but no real solid leads.

I think what we need to do for now is dump the container's journald logs if SetUpUser fails.
In case you didn't know, I added a method for doing that so that change should be easy. :)

https://cs.corp.google.com/chromeos_public/src/platform/tast-tests/src/chromiumos/tast/local/vm/container.go?l=439
Project Member

Comment 4 by bugdroid1@chromium.org, Dec 1

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/tast-tests/+/ad7dd0c1e2a3f66f10a87c6d9e45401ddc4713d7

commit ad7dd0c1e2a3f66f10a87c6d9e45401ddc4713d7
Author: Stephen Barber <smbarber@chromium.org>
Date: Sat Dec 01 23:44:21 2018

tast-tests: vm: dump container log on SetUpUser failure

If SetUpUser fails, any useful logs will be in the container's syslog. Grab
these logs on SetUpUser failure.

BUG=chromium:900257
TEST=container_log.txt exists if SetUpUser RPC fails

Change-Id: I7b386eb1f04aacbadc49d082fa00863bbb8dc94a
Reviewed-on: https://chromium-review.googlesource.com/1352717
Commit-Ready: Stephen Barber <smbarber@chromium.org>
Tested-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>

[modify] https://crrev.com/ad7dd0c1e2a3f66f10a87c6d9e45401ddc4713d7/src/chromiumos/tast/local/bundles/cros/vm/crostini_disk_io_perf.go
[modify] https://crrev.com/ad7dd0c1e2a3f66f10a87c6d9e45401ddc4713d7/src/chromiumos/tast/local/bundles/cros/vm/crostini_start_time.go
[modify] https://crrev.com/ad7dd0c1e2a3f66f10a87c6d9e45401ddc4713d7/src/chromiumos/tast/local/vm/container.go
[modify] https://crrev.com/ad7dd0c1e2a3f66f10a87c6d9e45401ddc4713d7/src/chromiumos/tast/local/bundles/cros/vm/crostini_start_everything.go

Sign in to add a comment