New issue
Advanced search Search tips

Issue 830025 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

AU tests failing with: "Omaha Response does not have version in manifest!"

Project Member Reported by dhadd...@chromium.org, Apr 6 2018

Issue description

Previously the update_engine log looked like this:
[0319/143339:INFO:omaha_request_action.cc(838)] Found 1 url(s)
[0319/143339:INFO:omaha_request_action.cc(876)] Payload size = 405569018 bytes
[0319/143339:INFO:omaha_request_action.cc(891)] Received omaha response to update to version 9999.0.0

Now we see this:
[0320/003218:INFO:omaha_request_action.cc(935)] Found 1 <app>.
[0320/003218:INFO:omaha_request_action.cc(1021)] Update for <app> 0
[0320/003218:ERROR:omaha_request_action.cc(1057)] Omaha Response does not have version in manifest!
I have only caught this as my test device was on 66. 

The most recent test checked in about switching urls is also failing with the same error:
https://stainless.corp.google.com/search?test=%5Eautoupdate%5C_OmahaResponse%5C.url%5C_switch%5C.full%24&exclude_non_release=true&exclude_cts=true&col=build&row=model&view=matrix&first_date=2018-03-31&last_date=2018-04-06
Amin, can you help me figure out what broke here?
If you are using an older version of devserver, these two changes need to be cherry picked:

https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/961585
https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/961586

The nano_omaha_devserver should have these changes. Is nano_omaha_devserver has a different code base than devserver?
Yeah, I didn't know that nano_omaha_devserver hardcode the app id. It needs to be changed.
Thanks for the pointers. When I changed the file to return the appid and hash_sha256 it fixed the problem. 

nano_omaha_devserver has no code shared with the devservers. It is a dumb class that is used to return a simple response. It had no logic for figuring stuff out. 
Cc: ahass...@chromium.org
Owner: dhadd...@chromium.org
Status: Assigned (was: Untriaged)
I'm sorry, I wasn't aware of the nano_omaha_devserver code when I added that change. I think you are the author of nano_omaha_devserver and you probably know better how to fix and test it.
Sorry for the trouble.
Project Member

Comment 10 by bugdroid1@chromium.org, Apr 7 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/a8512d0b30036159f71fc25260b9f0fb3050c382

commit a8512d0b30036159f71fc25260b9f0fb3050c382
Author: David Haddock <dhaddock@chromium.org>
Date: Sat Apr 07 05:00:28 2018

Return correct app id and hash_sha256 in nano_omaha_devserver response.

Previously we just returned a default app id for every device. In 67
update_engine has gotten stricter about what it will allow. So we need to
parse the appid from the request and return it in the response.

TEST=Hacking locally with autoupdate_CatchBadSignatures.
BUG= chromium:830025 

Change-Id: Idfec1edaa842f74db44105b7d24f86b01aa32da0
Reviewed-on: https://chromium-review.googlesource.com/1000537
Commit-Ready: David Haddock <dhaddock@chromium.org>
Tested-by: David Haddock <dhaddock@chromium.org>
Reviewed-by: Amin Hassani <ahassani@chromium.org>

[modify] https://crrev.com/a8512d0b30036159f71fc25260b9f0fb3050c382/client/cros/update_engine/nano_omaha_devserver.py

Status: Fixed (was: Assigned)
Status: Verified (was: Fixed)

Sign in to add a comment