New issue
Advanced search Search tips

Issue 814949 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 25
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

cros flash not working on fizz

Project Member Reported by haddowk@chromium.org, Feb 22 2018

Issue description

(cr) ((8e3381b...)) haddowk@haddow ~/trunk/src/scripts $  cros flash ssh://100.127.29.212 ../build/images/fizz-moblab/R66-10429.0.2018_02_22_1428-a1/chromiumos_test_image.bin
14:39:07: NOTICE: Preparing to update the remote device 100.127.29.212
14:44:18: ERROR: Remote devserver failed to start!
--- Start output from the devserver startup command ---
Warning: Permanently added '100.127.29.212' (ED25519) to the list of known hosts.
[22/Feb/2018:14:44:17] DEVSERVER Using cache directory /mnt/stateful_partition/cros-flash/tmp.odhxC3nid0/static/cache
[22/Feb/2018:14:44:17] DEVSERVER Serving from /mnt/stateful_partition/cros-flash/tmp.odhxC3nid0/static
[22/Feb/2018:14:44:17] XBUDDY Using shadow config file stored at /mnt/stateful_partition/cros-flash/tmp.odhxC3nid0/src/shadow_xbuddy_config.ini
Traceback (most recent call last):
  File "/mnt/stateful_partition/cros-flash/tmp.odhxC3nid0/src/devserver.py", line 1992, in <module>
    main()
  File "/mnt/stateful_partition/cros-flash/tmp.odhxC3nid0/src/devserver.py", line 1936, in main
    static_dir=options.static_dir)
  File "/mnt/stateful_partition/cros-flash/tmp.odhxC3nid0/src/xbuddy.py", line 219, in __init__
    self._ctx = gs.GSContext() if gs else None
  File "/usr/lib64/python2.7/site-packages/chromite/lib/gs.py", line 529, in __init__
    gsutil_bin = self.GetDefaultGSUtilBin(cache_dir, cache_user=cache_user)
  File "/usr/lib64/python2.7/site-packages/chromite/lib/gs.py", line 416, in GetDefaultGSUtilBin
    tar_cache = cache.TarballCache(common_path, cache_user=cache_user)
  File "/usr/lib64/python2.7/site-packages/chromite/lib/cache.py", line 197, in __init__
    osutils.SafeMakedirsNonRoot(self._cache_dir, user=self._cache_user)
  File "/usr/lib64/python2.7/site-packages/chromite/lib/osutils.py", line 261, in SafeMakedirsNonRoot
    raise MakingDirsAsRoot('Refusing to create %s as user %s!' % (path, user))
chromite.lib.osutils.MakingDirsAsRoot: Refusing to create /tmp/chromeos-cache/common as user None!
--- End output from the devserver startup command ---
14:44:39: ERROR: Rootfs update failed.
14:44:41: WARNING: Reverting update; Boot partition will be /dev/nvme0n1p3
14:47:26: WARNING: --- Start output from /mnt/stateful_partition/cros-flash/tmp.odhxC3nid0/dev_server.log ---[22/Feb/2018:14:44:17] DEVSERVER Using cache directory /mnt/stateful_partition/cros-flash/tmp.odhxC3nid0/static/cache
[22/Feb/2018:14:44:17] DEVSERVER Serving from /mnt/stateful_partition/cros-flash/tmp.odhxC3nid0/static
[22/Feb/2018:14:44:17] XBUDDY Using shadow config file stored at /mnt/stateful_partition/cros-flash/tmp.odhxC3nid0/src/shadow_xbuddy_config.ini
--- End output from /mnt/stateful_partition/cros-flash/tmp.odhxC3nid0/dev_server.log ---
14:47:32: WARNING: Could not copy /var/log/quick-provision.log from device.
14:47:32: ERROR: Device update failed.
14:47:35: ERROR: cros flash failed before completing.
14:47:35: ERROR: Failed to perform rootfs update: DevServerStartupError('Timeout (30) waiting for remote devserver port_file',)

 
Project Member

Comment 1 by bugdroid1@chromium.org, May 23 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/dev-util/+/9caf04b67a9b385ffac30c14c5d5c3c89a62de58

commit 9caf04b67a9b385ffac30c14c5d5c3c89a62de58
Author: Keith Haddow <haddowk@chromium.org>
Date: Wed May 23 01:45:47 2018

common_util: Fix IsRunningOnMoblab function to work with nextgen

New moblab use -moblab postfix, old moblabs used _moblab
Allow this code to work with both

TEST=Tested on moblab
BUG= chromium:814949 

Change-Id: Id520d7a00597a4d514cc48c1cbf9d290f15843c0
Reviewed-on: https://chromium-review.googlesource.com/1067880
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Xixuan Wu <xixuan@chromium.org>

[modify] https://crrev.com/9caf04b67a9b385ffac30c14c5d5c3c89a62de58/common_util.py

Project Member

Comment 2 by bugdroid1@chromium.org, May 31 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/dev-util/+/87850ed8e3e6d89023739d9939507526f44b06ab

commit 87850ed8e3e6d89023739d9939507526f44b06ab
Author: Keith Haddow <haddowk@chromium.org>
Date: Thu May 31 19:26:11 2018

common_util: Fix IsRunningOnMoblab regexp type

Silly type on the regexp

TEST=Tested on moblab
BUG= chromium:814949 

Change-Id: I756249f185c434a9e3779ad6f0e35bd95b6c909c
Reviewed-on: https://chromium-review.googlesource.com/1080276
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Xixuan Wu <xixuan@chromium.org>

[modify] https://crrev.com/87850ed8e3e6d89023739d9939507526f44b06ab/common_util.py

Components: -Infra>Client>ChromeOS Infra>Client>ChromeOS>Build
Owner: haddowk@chromium.org
Status: Fixed (was: Available)

Sign in to add a comment