Bug 2230285

Summary: The environment variable is not correctly set on Fedora 39 images.
Product: [Fedora] Fedora Reporter: Lukas Ruzicka <lruzicka>
Component: anacondaAssignee: anaconda-maint
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 39CC: anaconda-maint, vslavik, w
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.