Skip to content
Snippets Groups Projects
Commit cdeb0085 authored by Julien Leduc's avatar Julien Leduc
Browse files

Fixing repos priorities: as we are now pulling from the TAG repo we may have...

Fixing repos priorities: as we are now pulling from the TAG repo we may have more recent EOS version in the CTA-CI repo (this was not the case for the commit repo). EOS tag repo has now a higher priority and yum cache is purged.
parent ce236877
Branches
Tags
No related merge requests found
......@@ -33,12 +33,17 @@ fi
kubectl -n ${NAMESPACE} exec ctaeos -- yum-config-manager --disable cta-artifacts
####
## CTA-CI REPOS HAVE A PRIORITY SET TO 4 (See: CTA/continuousintegration/docker/ctafrontend/cc7/etc/yum.repos.d/cta-ci.repo)
## EOS REPOS SHOULD HAVE A HIGHER PRIORITY (HENCE LOWER NUMBER) SO THAT WE ARE UPGRADING FROM EOS REPOS
## AND NOT CTA-CI IF ONE BRANCH IS AHEAD OF EOS
####
# This is the commit repo: any commit from any branch in EOS is pushed there => works if lucky...
echo -e "[eos-ci-eos-commit]\nname=EOS CI commit repo for eos packages\nbaseurl=http://storage-ci.web.cern.ch/storage-ci/eos/citrine/commit/el-7/x86_64/\npriority=4\ngpgcheck=0\nenabled=${COMMIT_REPO_ENABLED}\n\n" | kubectl -n ${NAMESPACE} exec -i ctaeos -- bash -c "cat > /etc/yum.repos.d/eos-ci-commit.repo"
echo -e "[eos-ci-eos-commit]\nname=EOS CI commit repo for eos packages\nbaseurl=http://storage-ci.web.cern.ch/storage-ci/eos/citrine/commit/el-7/x86_64/\npriority=3\ngpgcheck=0\nenabled=${COMMIT_REPO_ENABLED}\n\n" | kubectl -n ${NAMESPACE} exec -i ctaeos -- bash -c "cat > /etc/yum.repos.d/eos-ci-commit.repo"
# This is the tag repo: only tagged commits aimed for production are going here.
# IF IT DOESN'T WORK WE CAN COMPLAIN HEAVILY
echo -e "[eos-ci-eos-tag]\nname=EOS CI tag repo for eos packages\nbaseurl=http://storage-ci.web.cern.ch/storage-ci/eos/citrine/tag/el-7/x86_64/\npriority=4\ngpgcheck=0\nenabled=${TAG_REPO_ENABLED}\n\n" | kubectl -n ${NAMESPACE} exec -i ctaeos -- bash -c "cat > /etc/yum.repos.d/eos-ci-tag.repo"
echo -e "[eos-ci-eos-depend]\nname=EOS CI repo for eos depend packages\nbaseurl=http://storage-ci.web.cern.ch/storage-ci/eos/citrine-depend/el-7/x86_64/\npriority=4\ngpgcheck=0\nenabled=1\n\n" | kubectl -n ${NAMESPACE} exec -i ctaeos -- bash -c "cat > /etc/yum.repos.d/eos-ci-depend.repo"
echo -e "[eos-ci-eos-tag]\nname=EOS CI tag repo for eos packages\nbaseurl=http://storage-ci.web.cern.ch/storage-ci/eos/citrine/tag/el-7/x86_64/\npriority=3\ngpgcheck=0\nenabled=${TAG_REPO_ENABLED}\n\n" | kubectl -n ${NAMESPACE} exec -i ctaeos -- bash -c "cat > /etc/yum.repos.d/eos-ci-tag.repo"
echo -e "[eos-ci-eos-depend]\nname=EOS CI repo for eos depend packages\nbaseurl=http://storage-ci.web.cern.ch/storage-ci/eos/citrine-depend/el-7/x86_64/\npriority=3\ngpgcheck=0\nenabled=1\n\n" | kubectl -n ${NAMESPACE} exec -i ctaeos -- bash -c "cat > /etc/yum.repos.d/eos-ci-depend.repo"
kubectl -n ${NAMESPACE} exec ctaeos -- eos version
......@@ -46,6 +51,9 @@ kubectl -n ${NAMESPACE} exec ctaeos -- sed -i '/^.:eos.*/d' /etc/yum/pluginconf.
kubectl -n ${NAMESPACE} exec ctaeos -- sed -i '/.*protected=1.*/d' /etc/yum.repos.d/cta-ci.repo
## Purge YUM cache before installing anything new
kubectl -n ${NAMESPACE} exec ctaeos -- yum clean all
kubectl -n ${NAMESPACE} exec ctaeos -- yum install -y eos-server eos-client
kubectl -n ${NAMESPACE} exec ctaeos -- systemctl restart eos@*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment