This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use official centos repos for nfs-ganesha packages
Do not use buildlogs.centos.org as a repo. Those locations are not guaranteed to be permanent storehouses for RPM builds, and they are generally assumed to also have non-release versions as well. Instead, use official Centos mirrors for nfs-ganesha packages starting with ganesha v4. This commit also codifies the NFS repo for stream9, which changes its URL structure significantly from stream8. Though stream9 is not used yet, it will be coming soon, and it is important to record the change in NFS repo that happens in stream9 alongside these changes to make the upcoming transition easier. To handle the additional complexity that now exists with ganesha repos differing between stream8 and stream9, and also differing between Ceph versions, this commit changes the old if,elsif,elsif,else approach to setting the ganesha repo in the Dockerfile to one where __GANESHA_REPO__ is defined and can be overridden in Ceph version directories. All builds using stream8 or stream9 begin with a base __GANESHA_REPO__ that allows the ceph version directory to specify __GANESHA_VER__. This base __GANESHA_REPO__ should be suitable for main builds for the forseeable future. It is also suitable for Ceph reef (which uses __GANESHA_VER__ = 5) and Ceph quincy (which uses __GANESHA_VER__ = 4). Ceph main builds obviously use the latest __GANESHA_VER__ = 5 value. The above applies to the Ceph main, Reef, and Quincy builds which were previously using buildlogs repos. For Ceph Reef, there is an ongoing issue introduced by NFS-Ganesha v5.5, and the NFS-Ganesha version needs to be updated to v5.7. Ensure this update also gets applied to the ARM build for Reef as well. Ceph releases for Pacific and earlier include NFS-Ganesha packages that are built alongside the Ceph RPMs which have specific API compatibility options set. Therefore, __GANESHA_REPO__ is overridden for pacific and lower builds and is set to the same content that was previously selected via the if,elsif,elsif,else behavior. Signed-off-by: Blaine Gardner <[email protected]>
- Loading branch information
Showing
13 changed files
with
55 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
echo "[ganesha]" > /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "name=ganesha" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "baseurl=http://mirror.centos.org/centos/8-stream/storage/\$basearch/nfsganesha-__GANESHA_VER__/" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "gpgcheck=0" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "enabled=1" >> /etc/yum.repos.d/ganesha.repo ; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
echo "[ganesha]" > /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "name=ganesha" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "baseurl=http://mirror.centos.org/centos/8-stream/storage/\$basearch/nfsganesha-__GANESHA_VER__/" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "gpgcheck=0" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "enabled=1" >> /etc/yum.repos.d/ganesha.repo ; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
echo "[ganesha]" > /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "name=ganesha" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "baseurl=https://mirror.stream.centos.org/SIGs/9-stream/storage/\$basearch/nfsganesha-__GANESHA_VER__/" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "gpgcheck=0" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "enabled=1" >> /etc/yum.repos.d/ganesha.repo ; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
echo "[ganesha]" > /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "name=ganesha" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "baseurl=https://download.ceph.com/nfs-ganesha/rpm-V2.7-stable/$CEPH_VERSION/\$basearch/" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "gpgcheck=1" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "enabled=1" >> /etc/yum.repos.d/ganesha.repo ; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
echo "[ganesha]" > /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "name=ganesha" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "baseurl=https://download.ceph.com/nfs-ganesha/rpm-V2.7-stable/$CEPH_VERSION/\$basearch/" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "gpgcheck=1" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "enabled=1" >> /etc/yum.repos.d/ganesha.repo ; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
echo "[ganesha]" > /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "name=ganesha" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "baseurl=https://download.ceph.com/nfs-ganesha/rpm-V2.8-stable/$CEPH_VERSION/\$basearch/" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "gpgcheck=1" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "enabled=1" >> /etc/yum.repos.d/ganesha.repo ; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
echo "[ganesha]" > /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "name=ganesha" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "baseurl=https://download.ceph.com/nfs-ganesha/rpm-V3.3-stable/$CEPH_VERSION/el\$releasever/\$basearch/" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "gpgcheck=1" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "enabled=1" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "[ganesha-noarch]" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "name=ganesha-noarch" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "baseurl=https://download.ceph.com/nfs-ganesha/rpm-V3.3-stable/$CEPH_VERSION/el\$releasever/noarch/" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "gpgcheck=1" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "enabled=1" >> /etc/yum.repos.d/ganesha.repo ; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
echo "[ganesha]" > /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "name=ganesha" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "baseurl=https://download.ceph.com/nfs-ganesha/rpm-V3.5-stable/$CEPH_VERSION/el\$releasever/\$basearch/" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "gpgcheck=1" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "enabled=1" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "[ganesha-noarch]" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "name=ganesha-noarch" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "baseurl=https://download.ceph.com/nfs-ganesha/rpm-V3.5-stable/$CEPH_VERSION/el\$releasever/noarch/" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "gpgcheck=1" >> /etc/yum.repos.d/ganesha.repo ; \ | ||
echo "enabled=1" >> /etc/yum.repos.d/ganesha.repo ; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../../src/daemon-base/__GANESHA_PACKAGES__ | ||
../centos/__GANESHA_PACKAGES__ |