Skip to content

update tool: sync xcpng-users.repo from koji before update - #685

Merged
glehmann merged 1 commit into
masterfrom
gln/sync-xcpng-users-repo-xrtw
Sep 3, 2026
Merged

update tool: sync xcpng-users.repo from koji before update#685
glehmann merged 1 commit into
masterfrom
gln/sync-xcpng-users-repo-xrtw

Conversation

@glehmann

@glehmann glehmann commented Aug 27, 2026

Copy link
Copy Markdown
Member

Download the koji xcpng-users.repo file on each host before running the
update, to keep repository definitions in sync with koji. The URL is built
from the host version.

Signed-off-by: Gaëtan Lehmann gaetan.lehmann@vates.tech

This PR is part of a stack containing 2 PRs:

  1. master
  2. "update tool: sync xcpng-users.repo from koji before update" (this PR)
  3. tools: install tmp-ci.repo on hosts before update #689

@glehmann
glehmann requested a review from a team as a code owner August 27, 2026 14:41
@gduperrey
gduperrey requested a review from a team August 27, 2026 14:46
Comment thread lib/tools/tasks/update.py
)
repo_file = '/etc/yum.repos.d/xcpng-users.repo'
logger.info(f"[{host}] Downloading {repo_url} to {repo_file}")
host.ssh(f"curl -fsS -o {repo_file} '{repo_url}'")

@rzr rzr Aug 31, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
host.ssh(f"curl -fsS -o {repo_file} '{repo_url}'")
host.ssh(f"yum-config-manager --add-repo '{repo_url}'")

This is the yum way of doing it, unsure about doing it twice.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yum-config-manager is not available (currently) on xcp-ng 9, so I think it's better to keep the curl version for now.

Download the koji xcpng-users.repo file on each host before running the
update, to keep repository definitions in sync with koji. The URL is built
from the host version.

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
Comment thread lib/tools/tasks/update.py
@glehmann
glehmann merged commit 29fdca1 into master Sep 3, 2026
11 checks passed
@glehmann
glehmann deleted the gln/sync-xcpng-users-repo-xrtw branch September 3, 2026 20:00
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.

4 participants