Bug 2230285 - The environment variable is not correctly set on Fedora 39 images.
Summary: The environment variable is not correctly set on Fedora 39 images.
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 39
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: anaconda-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-09 09:00 UTC by Lukas Ruzicka
Modified: 2023-11-14 14:08 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-14 14:08:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Lukas Ruzicka 2023-08-09 09:00:34 UTC
On Fedora 39 images, the environment variable looks to be empty, so whenever we attempt to check for it in the following command, we get a failure which breaks the openQA tests for several ISOs.

For example, on Everything ISO we expect the variable to be "custom-environment". The following command should be able to return it:

---
grep 'Selecting the.*environment' /tmp/anaconda.log /tmp/packaging.log | tail -1 | grep 'custom-environment'. 
---

However, what we are getting is "Selecting the '' environment."

On Fedora 38, everything works as expected. The problems started to appear when Rawhide became Fedora 39 and we started to test for Fedora 39 isos. 

See the example of a failed test:

https://openqa.fedoraproject.org/tests/2056305#

Reproducible: Always

Steps to Reproduce:
1. Boot the Everything F39 iso.
2. Proceed to Anaconda's main pane.
3. Hit Ctrl-Alt-F3 to proceed to the virtual console.
4. Type the command grep 'Selecting the.*environment' /tmp/anaconda.log /tmp/packaging.log | tail -1 | grep 'custom-environment'
5. The string 'custom-environment' should be returned, but nothing is returned. Exit code is 1.
6. Try to lessen the command to grep 'Selecting the.*environment' /tmp/anaconda.log /tmp/packaging.log
7. You will see the result "Selecting the '' environment".
Actual Results:  
The environment variable seems to be unset.

Expected Results:  
The variable should be set as it was the case on Fedora 38.

Comment 1 Lukas Ruzicka 2023-08-09 09:02:12 UTC
The same problem seems to exist on the Server-boot-iso.

Comment 2 Fedora Release Engineering 2023-08-16 08:08:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 3 Vendula Poncova 2023-10-17 11:36:25 UTC
I tried to reproduce the issue with Fedora-Everything-netinst-x86_64-39_Beta-1.1.iso and it seems to work as expected. There are no logs to investigate, but based on the screenshots, the status of the "Software Selection" screen says "Warning checking software selection". I would guess that there was an issue with comps files. Thanks to that, the default environment selection wasn't a valid option, so Anaconda reset the software selection. That's why you could see "Selecting the '' environment" in the logs. Could you retry the test, please?

Comment 4 Lukas Ruzicka 2023-10-19 08:52:49 UTC
I can no longer see this problem in the OpenQA tests. 
The yesterday's run has passed without issues, see https://openqa.fedoraproject.org/tests/2214034


Note You need to log in before you can comment on or make changes to this bug.