[JIRA] (OVIRT-1393) Make mirror injection process remove “skip_if_unavailable” settings
by Barak Korren (oVirt JIRA)
[ https://ovirt-jira.atlassian.net/browse/OVIRT-1393?page=com.atlassian.jir... ]
Barak Korren updated OVIRT-1393:
--------------------------------
Description:
This is a part of [containers CI/CD|https://docs.google.com/a/redhat.com/document/d/1mEo3E0kRvlUWT9VaSP...] flow implementation process.
In order to allow having stub repository configuration files as specified in OVIRT-1391, we need to be able to use the "{skip_if_unavailable}" yum setting. But we don't want this setting to still be in affect once mirror injection happens and the repo configuration points to a real repo. Therefore we need to make the mirror injection process remove this setting for repo configurations into which mirror URLs are injected.
> Make mirror injection process remove “skip_if_unavailable” settings
> -------------------------------------------------------------------
>
> Key: OVIRT-1393
> URL: https://ovirt-jira.atlassian.net/browse/OVIRT-1393
> Project: oVirt - virtualization made easy
> Issue Type: New Feature
> Components: Jenkins
> Reporter: Barak Korren
> Assignee: infra
> Labels: containers, mirrors, mock_runner.sh
>
> This is a part of [containers CI/CD|https://docs.google.com/a/redhat.com/document/d/1mEo3E0kRvlUWT9VaSP...] flow implementation process.
> In order to allow having stub repository configuration files as specified in OVIRT-1391, we need to be able to use the "{skip_if_unavailable}" yum setting. But we don't want this setting to still be in affect once mirror injection happens and the repo configuration points to a real repo. Therefore we need to make the mirror injection process remove this setting for repo configurations into which mirror URLs are injected.
--
This message was sent by Atlassian JIRA
(v1000.990.2#100044)
7 years, 6 months
[JIRA] (OVIRT-1393) b
by Barak Korren (oVirt JIRA)
Barak Korren created OVIRT-1393:
-----------------------------------
Summary: b
Key: OVIRT-1393
URL: https://ovirt-jira.atlassian.net/browse/OVIRT-1393
Project: oVirt - virtualization made easy
Issue Type: New Feature
Reporter: Barak Korren
Assignee: infra
--
This message was sent by Atlassian JIRA
(v1000.990.2#100044)
7 years, 6 months
[JIRA] (OVIRT-1391) Add repo injection capabilities to STD-CI
by Barak Korren (oVirt JIRA)
[ https://ovirt-jira.atlassian.net/browse/OVIRT-1391?page=com.atlassian.jir... ]
Barak Korren updated OVIRT-1391:
--------------------------------
Labels: containers mock_runner.sh standard-ci (was: )
> Add repo injection capabilities to STD-CI
> -----------------------------------------
>
> Key: OVIRT-1391
> URL: https://ovirt-jira.atlassian.net/browse/OVIRT-1391
> Project: oVirt - virtualization made easy
> Issue Type: New Feature
> Components: Jenkins
> Reporter: Barak Korren
> Assignee: infra
> Priority: High
> Labels: containers, mock_runner.sh, standard-ci
>
> This is a part of [containers CI/CD|https://docs.google.com/a/redhat.com/document/d/1mEo3E0kRvlUWT9VaSP...] flow implementation process.
> We want to add to standard-CI ('{{mock-runner.sh}}') the capability to provide a project with information about package repositories that unrelated to the setup of the environment that standard-CI scripts run in.
> A projects will specify required repositories by including one or more files that match the pattern “{{automation/$STD_CI_STAGE.\*.yumrepos.\*}}”, where “{{$STG_CI_STAGE}}” is e.g “{{build-system-artifacts}}” and the wildcard sections can be omitted along with the dots that precede them. The file should be in the format of a yum configuration file and include configuration for required yum repositories. To avoid the projects having to maintain URLs for yum repositories, the file may contain configurations without repository URLs specified and with the “skip_if_unavailable” parameter set to “true”. Only the names of the repository configuration sections will be meaningful for the purpose of the CI system. For each such file the CI system will:
> # Replace any configuration section that defines the “{{ovirt-<distro-id>}}” repository with one or more configuration sections pointing to repositories from which oVirt packages for the distribution identified by "{{<distro-id>}}" may be obtained. “{{<distro-id>}}" will be a string such as “el7” or “fc25”. To allow avoiding collisions with the released oVirt yum configuration, the “{{ovirt-ci-<repoid>}}” and “{{ovirt-experimental-<repoid>}}” configuration section will be treated the same way.
> # Replace any configuration section that defines the “{{ovirt-dependencies-<distro-id>}}” repository with one or more configuration sections pointing to repositories from which oVirt dependency packages need to be obtained. These will include, among others, base operating system packages. The “{{ovirt-ci-dependencies-<repoid>}}” and “{{ovirt-experimental-dependencies-<repoid>}}” configuration section will be treated the same way.
> # Run the mirror injection process. Any repository handled by this process will have the the “{{skip_if_unavailable}}” parameter removed if specified (To make the default value of “{{false}}” come into effect).
> # Prepend a “{{\[main]}}” section that disables the use of the “{{/etc/yum.repos.d}}” directory. This will allow the file to appended to the "{{/etc/yun.conf}}” file to automatically disable all internet-facing preconfigured repositories.
> To allow automation scripts to find the repository files prepared for them, several environment variables will be made available in the Standard-CI runtime environment:
> # {{STD_CI_STAGE}}: Will contain the name of the Standard-CI stage, e.g. “{{build-artifacts}}”.
> # {{STD_CI_DISTRO}}: Will contain the distribution version identifier (e.g “el7” or “fc25”) of the Standard-CI runtime.
> # {{STD_CI_YUMREPOS}}: Will point to an existing “{{*.yumrepos}}” file that most closely matches the current running stage and distribution
--
This message was sent by Atlassian JIRA
(v1000.990.2#100044)
7 years, 6 months
Change in ds-jenkins-stg[master]: Insert the description of the change.
by review@gerrit-staging.phx.ovirt.org
>From Gil Shinar <gshinar(a)redhat.com>:
Gil Shinar has submitted this change and it was merged.
Change subject: Insert the description of the change.
......................................................................
Insert the description of the change.
Change-Id: I71bd36edae9efcba79ee001bb20d8a0480d36df9
---
M automation/upstream_sources.yaml
1 file changed, 0 insertions(+), 3 deletions(-)
Approvals:
Gil Shinar: Looks good to me, approved; Verified; Passed CI tests
--
To view, visit https://gerrit-staging.phx.ovirt.org/38
To unsubscribe, visit https://gerrit-staging.phx.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I71bd36edae9efcba79ee001bb20d8a0480d36df9
Gerrit-PatchSet: 2
Gerrit-Project: ds-jenkins-stg
Gerrit-Branch: master
Gerrit-Owner: Gil Shinar <gshinar(a)redhat.com>
Gerrit-Reviewer: Gil Shinar <gshinar(a)redhat.com>
Gerrit-Reviewer: Jenkins CI <infra(a)ovirt.org>
7 years, 6 months