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

Configure SUMA product tree base URL #1264

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

lcaparroz
Copy link
Member

@lcaparroz lcaparroz commented Dec 23, 2024

Description

Allow user to configure the SUMA product tree base URL in RMT's config file mirroring.suma_product_tree_base_url attribute. The configured value takes precedence over the default (https://scc.suse.com/suma/).

How to test

On your local setup, change the attribute mirroring.suma_product_tree_base_url on config/rmt.local.yml to point to a custom URL (the URL must be reachable and respond to <custom URL>/product_tree.json, e.g.:

mirroring:
  mirror_src: false
  verify_rpm_checksums: false
  dedup_method: hardlink
  suma_product_tree_base_url: <custom URL>/suma/

Then, run bin/rmt-cli mirror, and verify that the log output shows that the mirroring process has finished without any errors regarding the SUMA product tree.

Change Type

Please select the correct option.

  • Bug Fix (a non-breaking change which fixes an issue)
  • New Feature (a non-breaking change which adds new functionality)
  • Documentation Update (a change which only updates documentation)

Checklist

Please check off each item if the requirement is met.

  • I have reviewed my own code and believe that it's ready for an external review.
  • I have provided comments for any hard-to-understand code.
  • I have documented the MANUAL.md file with any changes to the user experience.
  • If my changes are non-trivial, I have added a changelog entry to notify users at package/obs/rmt-server.changes.

Review

Please check out our review guidelines
and get in touch with the author to get a shared understanding of the change.

Allow user to configure the SUMA product tree base URL in RMT's config
file `mirroring.suma_product_tree_base_url` attribute. The configured
value takes precedence over the default (https://scc.suse.com/suma/).
@lcaparroz lcaparroz force-pushed the custom-suma-tree-url branch from 74efdd1 to db348c0 Compare December 23, 2024 15:02
@mirroring_base_dir = mirroring_base_dir
@url = url
@url = url || Settings.try(:mirroring).try(:suma_product_tree_base_url) || FILE_URL
Copy link
Member

Choose a reason for hiding this comment

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

Is the url to load the product tree from different than the scc host from the config?

Copy link
Contributor

Choose a reason for hiding this comment

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

That is a good question.

Wouldn't the config/rmt.yml file have something like this below?
mirroring: suma_product_tree_base_url: <%= ENV['SUMA_URL'] %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants