2013-05-10 16:32:33 +00:00
======================
Ceph Release Process
======================
2012-10-03 06:41:35 +00:00
1. Build environment
====================
2014-03-08 23:07:39 +00:00
There are multiple build environments, debian based packages are built via pbuilder for multiple distributions. The build hosts are listed in the `` deb_hosts `` file, and the list of distributions are in `` deb_dist `` . All distributions are build on each of the build hosts. Currently there is 1 64 bit and 1 32 bit build host.
2012-10-03 06:41:35 +00:00
2013-05-07 23:11:29 +00:00
The RPM based packages are built natively, so one distribution per build host. The list of hosts is found in `` rpm_hosts `` .
2012-10-03 06:41:35 +00:00
2012-10-03 15:44:52 +00:00
Prior to building, it's necessary to update the pbuilder seed tarballs::
./update_all_pbuilders.sh
2012-10-03 06:41:35 +00:00
2. Setup keyring for signing packages
=====================================
2012-10-04 21:51:29 +00:00
::
2012-10-03 15:44:52 +00:00
export GNUPGHOME=<path to keyring dir>
2012-10-03 06:41:35 +00:00
# verify it's accessible
gpg --list-keys
2012-10-04 21:51:29 +00:00
The release key should be present::
2012-10-03 15:44:52 +00:00
pub 4096R/17ED316D 2012-05-20
2013-09-09 22:26:47 +00:00
uid Ceph Release Key <sage@newdream.net>
2012-10-03 15:44:52 +00:00
2012-10-03 06:41:35 +00:00
3. Set up build area
====================
2012-12-27 23:39:46 +00:00
Clone the ceph and ceph-build source trees::
2012-10-03 06:41:35 +00:00
git clone http://github.com/ceph/ceph.git
git clone http://github.com/ceph/ceph-build.git
2013-05-10 16:32:33 +00:00
In the ceph source directory, checkout next branch (for point releases use the {codename} branch)::
2012-10-03 06:41:35 +00:00
git checkout next
2012-12-27 23:39:46 +00:00
Checkout the submodules::
2012-10-03 06:41:35 +00:00
2015-03-06 16:08:55 +00:00
git submodule update --force --init --recursive
2012-10-03 06:41:35 +00:00
4. Update Build version numbers
================================
2013-09-09 22:26:47 +00:00
Substitute the ceph release number where indicated below by the string `` 0.xx `` .
2012-12-27 23:39:46 +00:00
Edit configure.ac and update the version number. Example diff::
2013-09-09 22:26:47 +00:00
-AC_INIT([ceph], [0.54], [ceph-devel@vger.kernel.org])
+AC_INIT([ceph], [0.55], [ceph-devel@vger.kernel.org])
2012-12-27 23:39:46 +00:00
Update the version number in the debian change log::
2012-10-03 06:41:35 +00:00
2013-09-09 22:26:47 +00:00
DEBEMAIL user@host dch -v 0.xx-1
2012-10-03 06:41:35 +00:00
2012-10-03 15:44:52 +00:00
Commit the changes::
2012-10-03 06:41:35 +00:00
2013-09-09 22:26:47 +00:00
git commit -a
2012-10-03 06:41:35 +00:00
2012-10-03 15:44:52 +00:00
Tag the release::
2012-10-03 06:41:35 +00:00
2013-09-09 22:26:47 +00:00
../ceph-build/tag-release v0.xx
2012-10-03 06:41:35 +00:00
5. Create Makefiles
===================
2012-10-03 15:44:52 +00:00
The actual configure options used to build packages are in the
`` ceph.spec.in `` and `` debian/rules `` files. At this point we just
need to create a Makefile.::
2012-10-03 06:41:35 +00:00
2013-09-09 22:26:47 +00:00
./do_autogen.sh
2012-10-03 06:41:35 +00:00
6. Run the release scripts
==========================
2012-10-03 15:44:52 +00:00
This creates tarballs and copies them, with other needed files to
the build hosts listed in deb_hosts and rpm_hosts, runs a local build
2014-03-08 23:07:39 +00:00
script, then rsyncs the results back to the specified release directory.::
2012-10-03 06:41:35 +00:00
2013-09-09 22:26:47 +00:00
../ceph-build/do_release.sh /tmp/release
2012-10-03 06:41:35 +00:00
7. Create RPM Repo
==================
2014-03-10 21:10:10 +00:00
Copy the rpms to the destination repo::
2012-10-03 06:41:35 +00:00
2013-06-07 05:31:54 +00:00
mkdir /tmp/rpm-repo
../ceph-build/push_to_rpm_repo.sh /tmp/release /tmp/rpm-repo 0.xx
2013-09-09 22:26:47 +00:00
2013-06-07 05:31:54 +00:00
Next add any additional rpms to the repo that are needed such as leveldb and
and ceph-deploy. See RPM Backports section
2012-10-03 06:41:35 +00:00
2014-03-10 21:10:10 +00:00
Finally, sign the rpms and build the repo indexes::
2013-09-09 22:26:47 +00:00
2013-06-07 05:31:54 +00:00
../ceph-build/sign_and_index_rpm_repo.sh /tmp/release /tmp/rpm-repo 0.xx
2012-10-03 06:41:35 +00:00
2013-06-07 05:31:54 +00:00
8. Create Debian repo
2012-10-03 06:41:35 +00:00
=====================
2012-12-27 23:39:46 +00:00
The key-id used below is the id of the ceph release key from step 2::
2012-10-04 21:51:29 +00:00
2013-09-09 22:26:47 +00:00
mkdir /tmp/debian-repo
../ceph-build/gen_reprepro_conf.sh /tmp/debian-repo key-id
../ceph-build/push_to_deb_repo.sh /tmp/release /tmp/debian-repo 0.xx main
2012-10-03 06:41:35 +00:00
2013-06-07 05:31:54 +00:00
Next add any addition debian packages that are needed such as leveldb and
ceph-deploy. See the Debian Backports section below.
2014-07-09 05:35:46 +00:00
Debian packages are signed when added to the repo, so no further action is
2013-06-07 05:31:54 +00:00
needed.
2012-10-03 06:41:35 +00:00
9. Push repos to ceph.org
==========================
2012-10-03 15:44:52 +00:00
For a development release::
2013-09-09 22:26:47 +00:00
rcp ceph-0.xx.tar.bz2 ceph-0.xx.tar.gz \
ceph_site@ceph.com:ceph.com/downloads/.
rsync -av /tmp/rpm-repo/0.xx/ ceph_site@ceph.com:ceph.com/rpm-testing
rsync -av /tmp/debian-repo/ ceph_site@ceph.com:ceph.com/debian-testing
2012-10-03 15:44:52 +00:00
For a stable release, replace {CODENAME} with the release codename (e.g., `` argonaut `` or `` bobtail `` )::
2012-10-03 06:41:35 +00:00
2013-05-10 16:32:33 +00:00
rcp ceph-0.xx.tar.bz2 \
ceph_site@ceph.com:ceph.com/downloads/ceph-0.xx.tar.bz2
rcp ceph-0.xx.tar.gz \
ceph_site@ceph.com:ceph.com/downloads/ceph-0.xx.tar.gz
rsync -av /tmp/rpm-repo/0.xx/ ceph_site@ceph.com:ceph.com/rpm-{CODENAME}
rsync -auv /tmp/debian-repo/ ceph_site@ceph.com:ceph.com/debian-{CODENAME}
2012-10-03 06:41:35 +00:00
10. Update Git
==============
2013-05-10 16:32:33 +00:00
Point release
-------------
For point releases just push the version number update to the
2014-03-10 21:10:10 +00:00
branch and the new tag::
2013-05-10 16:32:33 +00:00
git push origin {codename}
git push origin v0.xx
Development and Stable releases
-------------------------------
2012-10-03 15:44:52 +00:00
For a development release, update tags for `` ceph.git `` ::
2012-12-26 20:54:27 +00:00
git push origin v0.xx
2013-05-10 16:32:33 +00:00
git push origin HEAD:last
2012-10-03 15:44:52 +00:00
git checkout master
git merge next
git push origin master
git push origin HEAD:next
Similarly, for a development release, for both `` teuthology.git `` and `` ceph-qa-suite.git `` ::
git checkout master
git reset --hard origin/master
2013-05-10 16:32:33 +00:00
git branch -f last origin/next
git push -f origin last
2013-03-06 06:08:15 +00:00
git push -f origin master:next