New issue
Advanced search Search tips

Issue 884284 link

Starred by 3 users

Issue metadata

Status: Verified
Owner:
Closed: Oct 19
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Crostini installation issue while device is offline

Project Member Reported by avkodipelli@chromium.org, Sep 14

Issue description

Chrome Version: 69.0.3497.95
Chrome OS Version: 10895.56.0
Chrome OS Platform: Kevin, eve
Network info: Wifi

Please specify Cr-* of the system to which this bug/feature applies (add
the label below).

Steps To Reproduce:
(1) Disable wifi.
(2) Open chrome://settings/?search=linux to install crostini.
(3) Click on Turn on to install linux.
(4) Observe bahvior.
(5) Open crostini option as shown in observation video to delete it.
(6) Observe behavior.
(7) Turn on wifi.
(8) Try to delete crostini again.
(9) Observe bahvior.


Expected Result:
4.1 No installation. It should show an error but still Turn ON should be there for installation.
6.1 Able to delete.
 
Actual Result:
4.1 It is not showing Turn ON option and delete option is there without installation.
6.1 As nothing is installed, it should be able to delete without depending on wifi.

How frequently does this problem reproduce? (Always, sometimes, hard to
reproduce?)
Always

Feedback report from kevin:85661320961

 
Cc: jkardatzke@chromium.org
Labels: -Pri-2 -M-69 M-70 Pri-1
Owner: nverne@chromium.org
Status: Assigned (was: Untriaged)
@nverne could we wait to set the preference until termina is installed?

And do you know why uninstall fails? Shouldn't it just be unsetting the preference?
Uninstall does much more than just unsetting the preference. It deletes the VM disk (and the container with it), then it uninstalls the Termina component.

Owner: jopra@chromium.org
I meant in this case it's just unsetting the preference, since the device was offline during setup and couldn't download termina or the container. Or is there more that happens even when offline?
Status: Started (was: Assigned)
I have a WIP CL for this at: https://chromium-review.googlesource.com/c/chromium/src/+/1233016

It side steps some of the current uninstall flow which expects the VM & component to exist. This flow also removes/uninstalls the VM, component, the crostini manager settings, application info and mime type info.
Project Member

Comment 7 by bugdroid1@chromium.org, Sep 25

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/da5b445c45466936dea5c5b2331ed23773d2f62a

commit da5b445c45466936dea5c5b2331ed23773d2f62a
Author: Josh Pratt <jopra@chromium.org>
Date: Tue Sep 25 01:00:38 2018

Skip VM uninstallation steps if Crostini was not fully installed.

This CL skips parts of the uninstall flow if the Termina VM was not
installed. This occurs if installation and uninstallation occurs
offline.

BUG= 884284 

Change-Id: I7e669605844b0914948bde792f67891e55ad0e7a
Reviewed-on: https://chromium-review.googlesource.com/1233016
Reviewed-by: Timothy Loh <timloh@chromium.org>
Reviewed-by: Nicholas Verne <nverne@chromium.org>
Commit-Queue: Josh Pratt <jopra@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593787}
[modify] https://crrev.com/da5b445c45466936dea5c5b2331ed23773d2f62a/chrome/browser/chromeos/crostini/crostini_remover.cc
[modify] https://crrev.com/da5b445c45466936dea5c5b2331ed23773d2f62a/chrome/browser/ui/views/crostini/crostini_browser_test_util.cc
[modify] https://crrev.com/da5b445c45466936dea5c5b2331ed23773d2f62a/chrome/browser/ui/views/crostini/crostini_browser_test_util.h
[modify] https://crrev.com/da5b445c45466936dea5c5b2331ed23773d2f62a/chrome/browser/ui/views/crostini/crostini_uninstaller_view_browsertest.cc

Status: Fixed (was: Started)
Labels: Merge-Request-70
Project Member

Comment 10 by sheriffbot@chromium.org, Sep 26

Labels: -Merge-Request-70 Merge-Review-70 Hotlist-Merge-Review
This bug requires manual review: M70 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: benmason@(Android), kariahda@(iOS), geohsu@(ChromeOS), abdulsyed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Started (was: Fixed)
Leaving as started until merged into M70.
Labels: -Merge-Review-70 Merge-Approved-70
Project Member

Comment 13 by bugdroid1@chromium.org, Sep 28

Labels: -merge-approved-70 merge-merged-3538
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7e311674ee32761c83d717c88aa400fcfa2a3994

commit 7e311674ee32761c83d717c88aa400fcfa2a3994
Author: Nicholas Verne <nverne@chromium.org>
Date: Fri Sep 28 04:54:02 2018

Merge into M70

Skip VM uninstallation steps if Crostini was not fully installed.

This CL skips parts of the uninstall flow if the Termina VM was not
installed. This occurs if installation and uninstallation occurs
offline.

BUG= 884284 

Change-Id: I0586df4871cc436b9d51d37733b112e6a9276e57
Reviewed-on: https://chromium-review.googlesource.com/1250387
Reviewed-by: Nicholas Verne <nverne@chromium.org>
Cr-Commit-Position: refs/branch-heads/3538@{#728}
Cr-Branched-From: 79f7c91a2b2a2932cd447fa6f865cb6662fa8fa6-refs/heads/master@{#587811}
[modify] https://crrev.com/7e311674ee32761c83d717c88aa400fcfa2a3994/chrome/browser/chromeos/crostini/crostini_remover.cc
[modify] https://crrev.com/7e311674ee32761c83d717c88aa400fcfa2a3994/chrome/browser/ui/views/crostini/crostini_browser_test_util.cc
[modify] https://crrev.com/7e311674ee32761c83d717c88aa400fcfa2a3994/chrome/browser/ui/views/crostini/crostini_browser_test_util.h
[modify] https://crrev.com/7e311674ee32761c83d717c88aa400fcfa2a3994/chrome/browser/ui/views/crostini/crostini_uninstaller_view_browsertest.cc

Labels: Merge-Merged-70-3538
The following revision refers to this bug: 
https://chromium.googlesource.com/chromium/src.git/+/7e311674ee32761c83d717c88aa400fcfa2a3994

Commit: 7e311674ee32761c83d717c88aa400fcfa2a3994
Author: nverne@chromium.org
Commiter: nverne@chromium.org
Date: 2018-09-28 04:54:02 +0000 UTC

Merge into M70

Skip VM uninstallation steps if Crostini was not fully installed.

This CL skips parts of the uninstall flow if the Termina VM was not
installed. This occurs if installation and uninstallation occurs
offline.

BUG= 884284 

Change-Id: I0586df4871cc436b9d51d37733b112e6a9276e57
Reviewed-on: https://chromium-review.googlesource.com/1250387
Reviewed-by: Nicholas Verne <nverne@chromium.org>
Cr-Commit-Position: refs/branch-heads/3538@{#728}
Cr-Branched-From: 79f7c91a2b2a2932cd447fa6f865cb6662fa8fa6-refs/heads/master@{#587811}
Status: Fixed (was: Started)
CL was merged into m70, should be fixed.
So I got some mix results:

M70 (70.0.3538.124.0, chrome os: 11021.104.0, stable): Deletion of linux with wifi disabled is still a no-op (kevin board)

M71 (71.0.3578.119, chrome os: 11151.97.0, stable): Deletion of linux with wifi disabled is still a no-op (kevin board)

M72 (72,0,3626.43, chrome os: 11316.57.0, beta): Deletion of linux with wifi disabled works appropriately. Create linux with wifi enable work fine

M73 (73.0.3654.0, chrome os: 11516.0.0, dev): Deletion of linux with wifi disabled works appropriately. Create linux with wifi enable work fine (eve board)
Status: Verified (was: Fixed)
Closing the issue as it is working in M72. (M71 and M70 were already out with stable release).

Sign in to add a comment