Project

General

Profile

Actions

action #176532

closed

coordination #175608: [WSL][epic] Unattended installation

[WSL] `403 Forbidden` error code when trying to install WSL

Added by pherranz 3 months ago. Updated 22 days ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
2025-02-04
Due date:
% Done:

100%

Estimated time:
Tags:

Description

Observation

openQA test in scenario sle-15-SP7-Windows 11 UEFI-x86_64-wsl2-main+register@win11_uefi fails in
prepare_wsl

Test suite description

Basic WSL test Test scope:
1) Prepare WSL and other features in Windows
2) Download the image
3) Import embedded certificate from the image
4) Load image
5) Define users
6) Register SUT
7) Exit WSL

Reproducible

Fails since (at least) Build 2.130

Expected result

Last good: 2.129 (or more recent)

Further details

We're getting a 403 Forbidden error code when trying to install WSL from the PowerShell interface. We will have to investigate if this is infra related or MS issue...


Files


Related issues 1 (0 open1 closed)

Blocks Containers and images - action #178561: [WSL] Command `wsl --install --no-distribution` does not require admin privileges anymoreResolvedpherranz2025-03-10

Actions
Actions #1

Updated by pherranz 3 months ago

  • Tags set to WSL
  • Subject changed from test fails in prepare_wsl to [WSL] `403 Forbidden` error code when trying to install WSL
Actions #3

Updated by ph03nix 3 months ago

One can access those resources by either passing an API key (See https://open.qa/docs/#_personal_access_token) or we might find a different way.

Perhaps someone could ask, if our own workers could be excepted from requiring to authenticate.

Actions #4

Updated by ph03nix 3 months ago

  • Priority changed from Normal to High
Actions #5

Updated by etchubykalo 3 months ago

  • Priority changed from High to Normal

locally the download works.

Could be something related to o.s.d authetication?

Actions #6

Updated by etchubykalo 3 months ago

  • Priority changed from Normal to High
Actions #7

Updated by etchubykalo 3 months ago

We are trying to download WSL from the Microsoft Store. I do not understand why this fails, as it is not from o.s.d where we are getting the assets from.

It briefly worked here: https://openqa.suse.de/tests/16666023#step/prepare_wsl/17

Actions #8

Updated by pherranz 2 months ago

  • Assignee set to pherranz
Actions #9

Updated by ph03nix about 2 months ago

  • Project changed from openQA Tests (public) to Containers and images
  • Category deleted (Bugs in existing tests)
Actions #10

Updated by pherranz about 2 months ago

As @ph03nix suggested, maybe it's a good idea to add the WSL installation to the Autounattend.xml file.

Actions #11

Updated by pherranz about 2 months ago

  • Status changed from Workable to In Progress
  • % Done changed from 0 to 70

After several days of trial and error, I managed to make this configuration run locally in my laptop:
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/21302

Pending to test on OSD.

Actions #12

Updated by pherranz about 2 months ago

The 403 error persists even when trying to install in the OS deployment...

Actions #13

Updated by pherranz about 2 months ago ยท Edited

  • Status changed from Blocked to Feedback

After speaking to @ph03nix, we've decided to stop Win11 tests to run for a week just to see if the issue is due to a MS limit or firewalling.

https://gitlab.suse.de/qac/qac-openqa-yaml/-/merge_requests/2090

Actions #14

Updated by pherranz about 1 month ago

We've already re-enabled the tests to check if the error persists:
https://gitlab.suse.de/qac/qac-openqa-yaml/-/merge_requests/2110

Actions #16

Updated by ph03nix about 1 month ago

  • Parent task set to #175608
Actions #17

Updated by pherranz about 1 month ago

  • Blocks action #178561: [WSL] Command `wsl --install --no-distribution` does not require admin privileges anymore added
Actions #18

Updated by pherranz about 1 month ago

The error disappears after a week of not pulling from MS:
https://openqa.suse.de/tests/17091135#step/prepare_wsl/17

Actions #19

Updated by pherranz 29 days ago

  • Status changed from In Progress to Feedback

Re-running the single test last Friday reproduced the error. I've reached out to Moussa Sagna (Microsoft contact) for assistance in troubleshooting and resolving this issue.

Actions #20

Updated by pherranz 22 days ago

  • Status changed from Feedback to Resolved
  • % Done changed from 50 to 100

Well, now that the WSL comes pre-installed in Windows images seems like the 403 is no more present.

Let's close the issue by now.

Actions

Also available in: Atom PDF