Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openQA: Allow overriding of install repos #1474 #1545

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

lkocman
Copy link
Contributor

@lkocman lkocman commented Aug 19, 2024

  • Override urls by using agama.install_url=https://url1,https://url2 boot param
  • Add logger so we can print some repo related debug messages that can be captured by agama logs store

Problem

We need to be able to test installation of preproduction data. See details in #1474

Example usage

Add agama.install_url as a boot argument to the linux kernel. Multiple urls can be seprated by commas.

image

# cat /proc/cmdline 
BOOT_IMAGE=/boot/vmlinuz-6.10.5-1-default root=UUID=4fd273b6-0453-4b36-8f58-a81e70bc9b9a splash=silent mitigations=auto quiet security=apparmor agama.install_url=https://download.opensuse.org/repositories/openSUSE:/Leap:/16.0/product/repo/Leap-16.0-aarch64-ppc64le-s390x-x86_64,https://download.opensuse.org/repositories/openSUSE:/Leap:/16.0/standard/x86_64/

This will now set https://download.opensuse.org/repositories/openSUSE:/Leap:/16.0/product/repo/Leap-16.0-aarch64-ppc64le-s390x-x86_64 as an installation_url to all products. This is extremely helpful for staging testing or any testing in openQA before publishing changes to the public repository.

Note: if you specify incorrect urls, you can at least the value it in the overview screen :-)
image

@lkocman lkocman changed the title Allow overriding of install repos Issue#1474 Allow overriding of install repos #1474 Aug 19, 2024
@lkocman lkocman changed the title Allow overriding of install repos #1474 openQA: Allow overriding of install repos #1474 Aug 19, 2024
@coveralls
Copy link

coveralls commented Aug 19, 2024

Coverage Status

coverage: 71.319% (+0.02%) from 71.298%
when pulling 42fbf98 on lkocman:openqa
into f1187eb on openSUSE:master.

@lkocman
Copy link
Contributor Author

lkocman commented Aug 20, 2024

(squashed my changes)

doc/boot_arguments.md Outdated Show resolved Hide resolved
* Use agama.install_url=https://..,https://.. boot param
* multiple values can be separted by commas
@jreidinger jreidinger merged commit 55fabd7 into agama-project:master Aug 20, 2024
3 checks passed
@@ -15,6 +15,22 @@ See [URL handling in the
installer](https://github.com/yast/yast-installation/blob/master/doc/url.md) to find more details
about the supported URLs.

## Custom Installation URL Configuration

You can override the default `installation_url` set in the product files [here](https://github.com/openSUSE/agama/tree/master/products.d) by passing the `agama.install_url` parameter as a boot option in the bootloader.
Copy link
Contributor

@imobachgs imobachgs Aug 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, we should try to use the same name for the parameter, either install_url or installation_url but the same.

lkocman added a commit to lkocman/os-autoinst-distri-opensuse that referenced this pull request Aug 27, 2024
lkocman added a commit to lkocman/os-autoinst-distri-opensuse that referenced this pull request Aug 27, 2024
lkocman added a commit to lkocman/os-autoinst-distri-opensuse that referenced this pull request Aug 27, 2024
lkocman added a commit to lkocman/os-autoinst-distri-opensuse that referenced this pull request Aug 28, 2024
* Introduced in agama-project/agama#1545
* Pass comma separated values from AGAMA_INSTALL_URL
* Agama boot entry finally done through needle match
lkocman added a commit to lkocman/os-autoinst-distri-opensuse that referenced this pull request Aug 28, 2024
* Introduced in agama-project/agama#1545
* Pass comma separated values from AGAMA_INSTALL_URL
* Agama boot entry finally done through needle match
lkocman added a commit to lkocman/os-autoinst-distri-opensuse that referenced this pull request Aug 28, 2024
* Introduced in agama-project/agama#1545
* Pass comma separated values from AGAMA_INSTALL_URL
  as agama.install_url boot param
* Agama boot entry finally done through needle match
lkocman added a commit to lkocman/os-autoinst-distri-opensuse that referenced this pull request Sep 4, 2024
* Introduced in agama-project/agama#1545
* Pass comma separated values from AGAMA_INSTALL_URL
  as agama.install_url boot param
* Agama boot entry finally done through needle match
lkocman added a commit to lkocman/os-autoinst-distri-opensuse that referenced this pull request Sep 4, 2024
* Introduced in agama-project/agama#1545
* Pass REPO_0 as a param to it agama supports, comma separated list
  as agama.install_url boot param
* Agama boot entry finally done through needle match
volodymyrkatkalov pushed a commit to volodymyrkatkalov/os-autoinst-distri-opensuse that referenced this pull request Sep 11, 2024
* Introduced in agama-project/agama#1545
* Pass REPO_0 as a param to it agama supports, comma separated list
  as agama.install_url boot param
* Agama boot entry finally done through needle match
@imobachgs imobachgs mentioned this pull request Sep 20, 2024
imobachgs added a commit that referenced this pull request Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

openQA: product-testing please provide a way to inject a custom repository
4 participants