Project

General

Profile

HOWTO write the release notes » History » Version 31

David Galloway, 03/30/2021 04:17 PM

1 22 David Galloway
h1. ceph.git Release Notes
2
3 13 Loïc Dachary
* git clone http://github.com/ceph/ceph (or git fetch to get the latest stable branch updates). Do *not* checkout the release branch as it does not have the *ceph-release-notes* script
4
* run the following:
5 5 Loïc Dachary
<pre>
6 31 David Galloway
cd src/script
7 9 Loïc Dachary
virtualenv v
8 20 Nathan Cutler
source v/bin/activate
9 1 Loïc Dachary
pip install githubpy GitPython review requests
10 22 David Galloway
# Replace 15.2.8 with whatever the previous stable release was
11
# Replace 'octopus' with whatever release you're working on
12
# Replace XXXXX with your GitHub API token
13
./ceph-release-notes  -r tags/v15.2.8..origin/octopus $(git rev-parse --show-toplevel) --token XXXXX
14 9 Loïc Dachary
deactivate
15 1 Loïc Dachary
</pre>
16 29 David Galloway
* Create a new branch either in your own fork of ceph.git or the actual ceph.git (but be careful and tidy!)
17 22 David Galloway
* Edit <code>doc/releases/RELEASE.rst</code>
18 1 Loïc Dachary
<pre>
19 22 David Galloway
vXX.X.X Branch
20
==============
21
22
This is the Xth backport release in the RELEASE series.  !! If there is a major change, it should be mentioned here.  Ask sage, josh, and neha !!
23
We recommend all users update to this release.
24
25
Notable Changes
26 1 Loïc Dachary
---------------
27 22 David Galloway
28
* Copy them from here: https://github.com/ceph/ceph/blob/octopus/PendingReleaseNotes
29 1 Loïc Dachary
30
Changelog
31
---------
32 22 David Galloway
33 29 David Galloway
* The bullet points output by <code>ceph-release-notes</code> should go here
34 1 Loïc Dachary
</pre>
35 30 David Galloway
* create a pull request with this change and request reviews from: neha-ojha, batrick, jdurgin, liewegas, dillaman, cbodley, sebastian-philipp
36 29 David Galloway
37
h3. Release Notes gotchas
38
39
* The *ceph-release-notes* script requires that each pull request is prefixed with the component it relates to (mon, osd etc.). If that's not the case, it will display an error message such as
40 22 David Galloway
<pre>
41 29 David Galloway
ERROR: http://github.com/ceph/ceph/pull/4884 title Keystone PKI token expiration is not enforced does not match ^(?:hammer|infernalis|jewel|kraken): (cli|common|mon|osd|fs|librbd|rbd|fs|mds|objecter|rgw|build/ops|tests|tools|cmake|doc|crush|librados)(:.*)
42 26 David Galloway
</pre>
43 29 David Galloway
the pull request title must be edited to add the required prefix.
44 22 David Galloway
45
h1. E-mail Release Notes
46
47
<pre>
48
To: ceph-announce@ceph.io, ceph-users@ceph.io, dev@ceph.io, ceph-maintainers@ceph.io
49
50
Title: vXX.X.X RELEASE released
51
52
Body:
53
We're happy to announce the Xth backport release in the RELEASE series. !! If there is a major change, it should be mentioned here.  Ask sage, josh, and neha !! We recommend users to update to this release. For a detailed release notes with links & changelog please refer to the official blog entry at https://ceph.io/releases/vXX-X-X-RELEASE-released
54
55
Notable Changes
56
---------------
57
58
* Copy bullet points from doc/releases/RELEASE.rst
59
60
Getting Ceph
61
------------
62
* Git at git://github.com/ceph/ceph.git
63
* Tarball at http://download.ceph.com/tarballs/ceph-XX.X.X.tar.gz
64
* For packages, see http://docs.ceph.com/docs/master/install/get-packages/
65
* Release git sha1: $SHA1
66
</pre>
67
68
h1. Website Release Notes
69
70
These instructions are for the Wordpress site.  These will change when the new site is launched in 2021 (?).
71
72
* Log in to the Wordpress Admin panel
73
* Go to https://ceph.io/wp-admin/edit.php
74
* Mouse over a recent "released" blog post and click *Clone*
75
* Click *Edit* on the new cloned draft
76
* Using the same script,
77
<pre>
78
./ceph-release-notes --html -r tags/v15.2.8..origin/octopus $(git rev-parse --show-toplevel) --token XXXXX
79
</pre>
80 24 David Galloway
* Due to dgalloway's limited python skills, this will output each line as <code><li><p>octopus: mds: etc.</code>.
81 25 David Galloway
* Paste the output into a file, open it in <code>vim</code> and delete the <code>release:</code> column.  e.g.,
82 24 David Galloway
<pre>
83
- <li><p>octopus: mds: etc.
84
- <li><p>octopus: mds: etc.
85
+ <li><p>mds: etc.
86
+ <li><p>mds: etc.
87
</pre>
88 22 David Galloway
* Update the backport release # and RELEASE name if needed
89
* Copy the notable changes from your e-mail
90 28 David Galloway
* Copy the output of <code>ceph-release-notes --html</code> under *Changelog* between the <code><u></u></code> tags.  You may need to click *Edit as HTML*
91
* Be sure to update the URL slug on the right toolbar