cros_sdk vgchange/devmapper error |
||||
Issue descriptionGot an error running a local tryjob cros tryjob -g 985121 --local eve-no-vmtest-pre-cq In InitSDK: 11:51:22: INFO: RunCommand: /usr/local/google/home/ayatane/src/tryjob/repository/chromium/tools/depot_tools/ensure_bootstrap in /usr/local/google/home/ayatane/src/tryjob/repository/chromium/tools/depot_tools Bootstrapping cipd client for linux-amd64 from https://chrome-infra-packages.appspot.com/client?platform=linux-amd64&version=git_revision:4d19637ec2c3d1efd8c6a1b05285118b786919e2... 11:51:30: INFO: RunCommand: /usr/local/google/home/ayatane/src/tryjob/repository/chromite/bin/cros_sdk --buildbot-log-version --create --replace in /usr/local/google/home/ayatane/src/tryjob/repository 11:51:31: NOTICE: Deleting chroot. 11:51:32: WARNING: Failed to activate VG on try 1. 11:51:32: WARNING: Failed to activate VG on try 2. 11:51:33: WARNING: Failed to activate VG on try 3. cros_sdk: Unhandled exception: Traceback (most recent call last): File "/usr/local/google/home/ayatane/src/tryjob/repository/chromite/bin/cros_sdk", line 169, in <module> DoMain() File "/usr/local/google/home/ayatane/src/tryjob/repository/chromite/bin/cros_sdk", line 165, in DoMain commandline.ScriptWrapperMain(FindTarget) File "/usr/local/google/home/ayatane/src/tryjob/repository/chromite/lib/commandline.py", line 911, in ScriptWrapperMain ret = target(argv[1:]) File "/usr/local/google/home/ayatane/src/tryjob/repository/chromite/scripts/cros_sdk.py", line 1004, in main if not cros_build_lib.MountChroot(options.chroot, create=True): File "/usr/local/google/home/ayatane/src/tryjob/repository/chromite/lib/cros_build_lib.py", line 1622, in MountChroot SudoRunCommand(cmd, capture_output=True, print_cmd=False) File "/usr/local/google/home/ayatane/src/tryjob/repository/chromite/lib/cros_build_lib.py", line 294, in SudoRunCommand return RunCommand(cmd, **kwargs) File "/usr/local/google/home/ayatane/src/tryjob/repository/chromite/lib/cros_build_lib.py", line 658, in RunCommand raise RunCommandError(msg, cmd_result) chromite.lib.cros_build_lib.RunCommandError: return code: 5; command: vgchange -q -ay cros_usr+local+google+home+ayatane+src+chromiumos+chroot_000 device-mapper: reload ioctl on (253:7) failed: No data available 1 logical volume(s) in volume group "cros_usr+local+google+home+ayatane+src+chromiumos+chroot_000" now active cmd=['vgchange', '-q', '-ay', 'cros_usr+local+google+home+ayatane+src+chromiumos+chroot_000'] 11:51:33: ERROR: return code: 1; command: /usr/local/google/home/ayatane/src/tryjob/repository/chromite/bin/cros_sdk --buildbot-log-version --create --replace cmd=['/usr/local/google/home/ayatane/src/tryjob/repository/chromite/bin/cros_sdk', '--buildbot-log-version', '--create', '--replace'], cwd=/usr/local/google/home/ayatane/src/tryjob/repository, extra env={'USE': u'chrome_internal', 'FEATURES': 'separatedebug'} STEP_FAILURE 11:51:33: ERROR: /usr/local/google/home/ayatane/src/tryjob/repository/chromite/bin/cros_sdk failed (code=1)
,
May 3 2018
Could you check if you have any device-mapper logs in /var/log/messages? In the meantime, to get going again, you can either reboot or delete ~/tryjob/repository/chroot.img. Either one should clean up whatever is wedged.
,
May 4 2018
A number of messages like this that seems to coincide temporally with the times I tried running the tryjobs, to the best of my memory: May 2 18:40:01 sharanohiar.mtv.corp.google.com kernel: [1987936.816729] device-mapper: table: 253:12: thin: Couldn't open thin internal device May 2 18:40:01 sharanohiar.mtv.corp.google.com kernel: [1987936.816735] device-mapper: ioctl: error adding target to table May 2 18:40:01 sharanohiar.mtv.corp.google.com kernel: [1987936.960710] device-mapper: table: 253:12: thin: Couldn't open thin internal device May 2 18:40:01 sharanohiar.mtv.corp.google.com kernel: [1987936.960716] device-mapper: ioctl: error adding target to table May 2 18:40:01 sharanohiar.mtv.corp.google.com kernel: [1987937.076503] device-mapper: table: 253:12: thin: Couldn't open thin internal device May 2 18:40:01 sharanohiar.mtv.corp.google.com kernel: [1987937.076509] device-mapper: ioctl: error adding target to table Deleting chroot.img doesn't help Will try rebooting later, I feel like that has a high chance of helper.
,
May 4 2018
I have gotten into a state where a reboot was required, but didn't have time to try and debug. Since then, things have been stable for me.
,
May 7 2018
Issue persists across a reboot. cros_sdk works normally for my normal chroot. Hopefully someone has some insight, because it sounds like I'm going to actually have to take some time to dig into this myself.
,
May 8 2018
I have this on my list to investigate, but it's been stubbornly hard to narrow down. If you do spend some time on it, please share whatever you learn here.
,
May 8 2018
Moving this out of the untriaged queue
,
May 15 2018
I have spotted this error on a builder now. https://luci-milo.appspot.com/buildbot/chromeos/nyan-full-compile-paladin/12641 https://logs.chromium.org/v/?s=chromeos%2Fbb%2Fchromeos%2Fnyan-full-compile-paladin%2F12641%2F%2B%2Frecipes%2Fsteps%2FCleanUp%2F0%2Fstdout I am also still experiencing this randomly, but I haven't had time or the need to dig into it.
,
May 15 2018
,
May 15 2018
I have crrev.com/c/1058071 out for review that I think will address this.
,
May 15 2018
Re #8 upon closer inspection, the error that appeared in the build seems to be different.
,
May 24 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/chromite/+/04b73c195727bb3bc8e77a9c48b0a2cb6680ac0d commit 04b73c195727bb3bc8e77a9c48b0a2cb6680ac0d Author: Benjamin Gordon <bmgordon@chromium.org> Date: Thu May 24 22:44:35 2018 cros_sdk_lib: Rescan loopbacks during chroot setup lvmetad is supposed to rescan devices for LVM metadata as they come and go, but sometimes it misses an event. When this happens, it can keep stale data about our chroot loopback devices. This later shows up as mysterious device-mapper errors when trying to re-mount an existing chroot image or re-use a loopback device. To correct for this, force rescanning loopback devices when we attach or detach them during chroot setup and teardown. pvscan --cache will fail if use_lvmetad isn't turned on in the global config, but it fails quickly without any side effects, so we just run it and ignore the exit code rather than trying to determine if it's strictly necessary. BUG=chromium:752562, chromium:764150 , chromium:839581 TEST=cros_sdk --replace 100 times in a loop; cros_sdk_unittest passes Change-Id: I7504036a3af8273a27bf279b907a01f2087b99be Reviewed-on: https://chromium-review.googlesource.com/1058071 Commit-Ready: Benjamin Gordon <bmgordon@chromium.org> Tested-by: Benjamin Gordon <bmgordon@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> [modify] https://crrev.com/04b73c195727bb3bc8e77a9c48b0a2cb6680ac0d/lib/cros_sdk_lib.py [modify] https://crrev.com/04b73c195727bb3bc8e77a9c48b0a2cb6680ac0d/lib/cros_sdk_lib_unittest.py
,
May 25 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/935b926c05a8870c2a155a2b9bb5a512b57529b9 commit 935b926c05a8870c2a155a2b9bb5a512b57529b9 Author: chromite-chromium-autoroll <chromite-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com> Date: Fri May 25 01:32:28 2018 Roll src/third_party/chromite/ b887ecda5..04b73c195 (2 commits) https://chromium.googlesource.com/chromiumos/chromite.git/+log/b887ecda57d6..04b73c195727 $ git log b887ecda5..04b73c195 --date=short --no-merges --format='%ad %ae %s' 2018-05-11 bmgordon cros_sdk_lib: Rescan loopbacks during chroot setup 2018-05-23 ayatane Run tests when building infra Go binaries Created with: roll-dep src/third_party/chromite BUG=chromium:752562, chromium:764150 , chromium:839581 ,chromium:None The AutoRoll server is located here: https://chromite-chromium-roll.skia.org Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md If the roll is causing failures, please contact the current sheriff, who should be CC'd on the roll, and stop the roller if necessary. TBR=chrome-os-gardeners@chromium.org Change-Id: I9a2dd44468169b73ae835707be14812a876adaeb Reviewed-on: https://chromium-review.googlesource.com/1072805 Commit-Queue: Chromite Chromium Autoroll <chromite-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com> Reviewed-by: Chromite Chromium Autoroll <chromite-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com> Cr-Commit-Position: refs/heads/master@{#561725} [modify] https://crrev.com/935b926c05a8870c2a155a2b9bb5a512b57529b9/DEPS
,
May 25 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by dgarr...@chromium.org
, May 3 2018