Note
If you are performing a software release, please follow the instructions here
How to Cut a Data Release¶
This document details the process for releasing new OSG Data Release version(s). This document does NOT discuss the policy for deciding what goes into a release, which can be found here.
Due to the length of time that this process takes, it is recommended to do the release over three or more days to allow for errors to be corrected and tests to be run.
Requirements¶
- User certificate registered with OSG's koji with build and release team privileges
- An account on UW CS machines (e.g.
moria
) to access UW's AFS release-tools
scripts in yourPATH
(GitHub)osg-build
scripts in yourPATH
(installed via OSG yum repos or source)- Access to the tarball repository at UNL ([email protected])
Pick the Version and Revision Numbers¶
The rest of this document makes references to <REVISION>
and <VERSION(S)>
, which refer to the space-delimited list of OSG version(s) and data revision, respectively (e.g. 3.3.28 3.4.3
and 2
, respectively). If you are unsure about either the version or revision, please consult the release manager.
Day 0: Generate Preliminary Release List¶
The release manager often needs a tentative list of packages to be released. This is done by finding the package differences between osg-testing and the current release.
Run 0-generate-pkg-list
from a machine that has your koji-registered user certificate:
VERSIONS='<VERSION(S)>'
REVISION=<REVISION>
git clone https://github.com/opensciencegrid/release-tools.git
cd release-tools
0-generate-pkg-list -d $REVISION $VERSIONS
Day 1: Verify Pre-Release and Generate Tarballs¶
This section is to be performed 1-2 days before the release (as designated by the release manager) to perform last checks of the release and create the client tarballs.
Step 1: Verify Pre-Release¶
Compare the list of packages already in pre-release to the final list for the release put together by the OSG Release Coordinator (who should have updated release-list
in git). To do this, run the 1-verify-prerelease
script from git:
VERSIONS='<VERSION(S)>'
REVISION=<REVISION>
1-verify-prerelease -d $REVISION $VERSIONS
If there are any discrepancies, consult the release manager. You may have to tag or untag packages with the osg-koji
tool.
Step 2: Test Pre-Release in VM Universe¶
To test pre-release, you will be kicking off a manual VM universe test run from osg-sw-submit.chtc.wisc.edu
.
- Ensure that you meet the pre-requisites for submitting VM universe test runs
-
Prepare the test suite by running:
osg-run-tests -P 'Testing OSG pre-release'
-
cd
into the directory specified in the output of the previous command - Submit the DAG:
./master-run.sh
Note
Test upcoming even though nothing will be released into upcoming. It is possible that a blahp (or some other) update in 3.X could affect upcoming.
Note
If there are failures, consult the release-manager before proceeding.
Step 3: Test the Pre-Release on the Madison ITB site¶
Test the pre-release on the Madison ITB by following the ITB pre-release testing instructions. If you not local to Madison, consult the release manager for the designated person to do this testing.
Step 4: Regenerate the build repositories¶
To avoid 404 errors when retrieving packages, it's necessary to regenerate the build repositories. Run the following script from a machine with your koji-registered user certificate:
NON_UPCOMING_VERSIONS="<NON-UPCOMING VERSION(S)>"
1-regen-repos $NON_UPCOMING_VERSIONS
Step 5: Create the client tarballs¶
Create the OSG client tarballs on dumbo.chtc.wisc.edu using the relevant script from git:
NON_UPCOMING_VERSION="<NON-UPCOMING VERSION>"
REVISION=<REVISION>
git clone https://github.com/opensciencegrid/tarball-client.git
pushd tarball-client
./docker-make-client-tarball --osgver 3.5 --version $NON_UPCOMING_VERSION --relname $REVISION --all
popd
Step 6: Briefly test the client tarballs¶
As an unprivileged user, run the script:
NON_UPCOMING_VERSIONS="<NON-UPCOMING VERSION(S)>"
./1-verify-tarballs -d $REVISION $NON_UPCOMING_VERSIONS
If you have time, try some of the binaries, such as grid-proxy-init.
Todo
We need to automate this and have it run on the proper architectures and version of RHEL.
Step 7: Upload the tarballs to AFS¶
After testing the tarballs in the next step. Upload them to AFS.
./upload-tarballs-to-afs -d $REVISION $NON_UPCOMING_VERSION
Step 8: Update the UW AFS installation of the tarball client¶
The UW keeps an install of the tarball client in /p/vdt/workspace/tarball-client
on the UW's AFS. To update it, run the following commands:
NON_UPCOMING_VERSIONS="<NON-UPCOMING VERSION(S)>"
for ver in $NON_UPCOMING_VERSIONS; do
/p/vdt/workspace/tarball-client/afs-install-tarball-client $ver $REVISION
done
Step 9: Wait¶
Wait for clearance. The OSG Release Coordinator (in consultation with the Software Team and any testers) need to sign off on the update before it is released. If you are releasing things over two days, this is a good place to stop for the day.
Day 2: Pushing the Release¶
Step 1: Push from pre-release to release¶
This script moves the packages into release, clones releases into new version-specific release repos, locks the repos and regenerates them.
VERSIONS='<VERSION(S)>'
REVISION=<REVISION>
2-push-release -d $REVISION $VERSIONS
Step 2: Generate the release notes¶
This script generates the release notes and updates the release information in AFS.
VERSIONS='<VERSION(S)>'
REVISION=<REVISION>
2-make-notes -d $REVISION $VERSIONS
*.txt
files are created and it should be verified that they've been moved to /p/vdt/public/html/release-info/ on UW's AFS.- For each release version, use the
*release-note*
files to update the relevant sections of the release note pages.
Step 3: Upload the client tarballs¶
Upload the tarballs to the repository with the following procedure from a UW CS machine (e.g., moria
):
NON_UPCOMING_VERSIONS="<NON-UPCOMING VERSION(S)>"
./2-upload-tarballs $NON_UPCOMING_VERSIONS
Step 4: Install the tarballs into OASIS¶
Note
You must be an OASIS manager of the mis
VO to do these steps. Known managers as of 2014-07-22: Mat, Tim C, Tim T, Brian L.
Get the uploader script from Git and run it with osgrun
from the UW AFS install of the tarball client you made earlier. On a UW CSL machine:
NON_UPCOMING_VERSIONS="<NON-UPCOMING VERSION(S)>"
cd /tmp
git clone --depth 1 file:///p/vdt/workspace/git/repo/tarball-client.git
for ver in $NON_UPCOMING_VERSIONS; do
/p/vdt/workspace/tarball-client/current/sys/osgrun /tmp/tarball-client/upload-tarballs-to-oasis $ver $REVISION
done
The script will automatically ssh you to oasis-login.opensciencegrid.org and give you instructions to complete the process.
Step 5: Remove old UW AFS installations of the tarball client¶
To keep space usage down, remove tarball client installations and symlinks under /p/vdt/workspace/tarball-client
on UW's AFS that are more than 2 months old.
To remove them, first check the list:
find /p/vdt/workspace/tarball-client -maxdepth 1 -mtime +60 -name 3\* -ls
Then if the output looks reasonable (contains at least one installation, but does not contain recent installations), remove them:
find /p/vdt/workspace/tarball-client -maxdepth 1 -mtime +60 -name 3\* -exec rm -rf {} +
Step 6: Update the Docker WN client¶
Update the GitHub repo at opensciencegrid/docker-osg-wn using the update-all
script found in opensciencegrid/docker-osg-wn-scripts. This requires push access to the opensciencegrid/docker-osg-wn
repo.
Instructions for using the script:
git clone [email protected]:opensciencegrid/docker-osg-wn-scripts.git
git clone [email protected]:opensciencegrid/docker-osg-wn.git
docker-osg-wn-scripts/update-all docker-osg-wn
cd docker-osg-wn
# Verify everything looks fine and run the 'git push' command
# that 'update-all' should have printed
Step 7: Verify the VO Package and/or CA certificates¶
Wait for the CA certificates to be updated. It may take a while for the updates to reach the mirror used to update the web site. The repository is checked hourly for updated CA certificates. Once the web page is updated, run the following command to update the VO Package and/or CA certificates in the tarball installations and verify that the version of the VO Package and/or CA certificates match the version that was promoted to release.
/p/vdt/workspace/tarball-client/current/amd64_rhel7/osgrun osg-update-data
Step 8: Make release note pages¶
-
Copy the release note page from the latest data release of each series and put the new version number in the file name. Edit the release number and date.
-
Insert the package and RPM lists generated in Step 2 above.
-
For the list of changes, make an entry for each package. (VO Package v??, and/or CA certificates based on IGTF 1.??) Under each package, list the VOs or CAs affected. Usually, you can just paste this from their release announcement. (At the time of writing, CA certificate and VO updates are the only packages that go into a data only release.)
-
Spell check the release note pages.
-
Add the new pages to the release series table in
docs/release/notes.md
. List the major packages that are mentioned in the release announcement. -
Locally serve up the web pages and ensure that the formatting looks good and the links work as expected.
-
Make a pull request, get it approved, and merged.
-
When the web page is available, you can announce the release.
Step 9: Announce the release¶
The following instructions are meant for the release manager (or interim release manager). If you are not the release manager, let the release manager know that they can announce the release.
-
The release manager writes the a release announcement for each version and sends it out. The announcement should mention a handful of the most important updates. Due to downstream formatting issues, each major change should end at column 76 or earlier. Here is a sample, replace
<BRACKETED TEXT>
with the appropriate values: If you are only updating certificates or only updated the VO package, delete the corresponding text:Subject: Announcing OSG CA Certificate and VO Package Updates Subject: Announcing OSG CA Certificate Update Subject: Announcing VO Package Update We are pleased to announce a data release for the OSG Software Stack. Data releases do not contain any software changes. This release contains updated CA Certificates based on IGTF <VERSION>: - <Change 1 from IGTF changelog> - <Change 2 from IGTF changelog> This release contains VO Package v<VERSION>: This release also contains VO Package v<VERSION>: - <Change 1 from VO changelog> - <Change 2 from VO changelog> Release notes and pointers to more documentation can be found at: http://www.opensciencegrid.org/docs/release/<SERIES.VERSION>/release-<RELEASE-VERSION>/ The following containers have updated 'release' tags and are available through Docker Hub (https://hub.docker.com/r/opensciencegrid/): - container name 1 - container name 2 - container name 3 Need help? Let us know: http://www.opensciencegrid.org/docs/common/help/ We welcome feedback on this release!
-
The release manager uses the osg-notify tool on
osg-sw-submit.chtc.wisc.edu
to send the release announcement using the following command:$ osg-notify --cert your-cert.pem --key your-key.pem \ --no-sign --type production --message <PATH TO MESSAGE FILE> \ --subject '<EMAIL SUBJECT>' \ --recipients "[email protected] [email protected] [email protected] [email protected] [email protected]" \ --oim-recipients resources --oim-recipients vos --oim-contact-type administrative
Replacing
<EMAIL SUBJECT>
with an appropriate subject for your announcement and<PATH TO MESSAGE FILE>
with the path to the file containing your message in plain text. -
The release manager releases the tickets marked 'Ready for Release' in the release's JIRA filter using the 'bulk change' function.
Day 3: Update the ITB¶
Now that the release has had a chance to propagate to all the mirrors, update the Madison ITB site by following the yum update section of the Madison ITB document. If you are not local to Madison, consult the release manager for the designated person to do the update.