RHCS Release Manager: Difference between revisions

From Alteeve Wiki
Jump to navigation Jump to search
No edit summary
Line 9: Line 9:
<source lang="bash">
<source lang="bash">
</source>
</source>
== Testing v3.1.8 ==


== Testing v3.1.8 ==
== Testing v3.1.8 ==
Line 15: Line 17:
!Distro
!Distro
!style="white-space: nowrap;"|Arch
!style="white-space: nowrap;"|Arch
!style="white-space: nowrap;"|Date tested
!style="white-space: nowrap;"|Date tested<br /><span class="code">(YYYY-MM-DD)</span>
!style="white-space: nowrap;"|Results
!style="white-space: nowrap;"|Results
!Notes
!Notes
Line 21: Line 23:
|style="white-space: nowrap;"|Fedora Rawhide
|style="white-space: nowrap;"|Fedora Rawhide
|x86_64
|x86_64
|<span class="code">Dec. 01, 2011</span>
|<span class="code">2011-12-03</span>
|style="color: orange;"|Problem
|style="color: green;"|Success
|It couldn't determine the kernel version at all. Tried <span class="code">make</span>-ing anyway; Seemed to succeed.
|
<source lang="bash">
./configure
</source>
<source lang="text">
Configuring Makefiles for your system...
 
Checking tree: nothing to do
 
Checking kernel:
WARNING: Could not determine kernel version.
          Build might fail!
Completed Makefile configuration
</source>
<source lang="bash">
make
</source>
<source lang="text">
...
make[1]: Leaving directory `/root/cluster-3.1.8/doc'
make -C contrib all
make[1]: Entering directory `/root/cluster-3.1.8/contrib'
set -e && \
for i in ; do \
make -C $i all; \
done
make[1]: Leaving directory `/root/cluster-3.1.8/contrib'
</source>
|-
|-
|Fedora Rawhide
|Fedora Rawhide
|i386
|i386
|Dec. 01, 2011
|<span class="code">2011-12-03</span>
|style="color: orange;"|Problem
|style="color: green;"|Success
|It couldn't determine the kernel version at all. Tried <span class="code">make</span>-ing anyway; Seemed to succeed.
|
<source lang="bash">
./configure
</source>
<source lang="text">
Configuring Makefiles for your system...
 
Checking tree: nothing to do
 
Checking kernel:
WARNING: Could not determine kernel version.
          Build might fail!
Completed Makefile configuration
</source>
<source lang="bash">
make
</source>
<source lang="text">
...
make[1]: Leaving directory `/root/cluster-3.1.8/doc'
make -C contrib all
make[1]: Entering directory `/root/cluster-3.1.8/contrib'
set -e && \
for i in ; do \
make -C $i all; \
done
make[1]: Leaving directory `/root/cluster-3.1.8/contrib'
</source>
|-
|-
|Fedora 16
|Fedora 16
|x86_64
|x86_64
|Dec. 01, 2011
|<span class="code">2011-12-03</span>
|style="color: red;"|Failed!
|style="color: green;"|Success
|It looks like it's comparing the <span class="code">y</span> number, and ignoring <span class="code">x</span>.
|
<source lang="bash">
./configure
</source>
<source lang="text">
Configuring Makefiles for your system...
 
Checking tree: nothing to do
 
Checking kernel:
Current kernel version: 3.1.2
Minimum kernel version: 2.6.31
FAILED!
</source>
|-
|-
|Fedora 16
|Fedora 16
|i386
|i386
|Dec. 01, 2011
|<span class="code">2011-12-03</span>
|style="color: red;"|Failed!
|style="color: green;"|Success
|It looks like it's comparing the <span class="code">y</span> number, and ignoring <span class="code">x</span>.
|
<source lang="bash">
./configure
</source>
<source lang="text">
Configuring Makefiles for your system...
 
Checking tree: nothing to do
 
Checking kernel:
Current kernel version: 3.1.2
Minimum kernel version: 2.6.31
FAILED!
</source>
|-
|-
|Fedora 15
|Fedora 15
|x86-64
|x86-64
|Dec. 01, 2011
|<span class="code">2011-12-03</span>
|style="color: green;"|Success
|style="color: green;"|Success
|
|
Line 131: Line 53:
|Fedora 15
|Fedora 15
|i386
|i386
|Dec. 01, 2011
|<span class="code">2011-12-03</span>
|style="color: green;"|Success
|style="color: green;"|Success
|
|
|-
|Debian 6
|amd64
|Dec. 01, 2011
|style="color: red;"|Incompatible
|This will not work on Debian 6 because <span class="code">cpg_ringid</span> isn't in the version of [[corosync]] provided by Debian
|-
|Debian 6
|i386
|Dec. 01, 2011
|style="color: red;"|Incompatible
|This will not work on Debian 6 because <span class="code">cpg_ringid</span> isn't in the version of [[corosync]] provided by Debian
|-
|-
|Ubuntu 11.10
|Ubuntu 11.10
|amd64
|amd64
|Dec. 01, 2011
|<span class="code">2011-12-03</span>
|style="color: orange;"|Problem
|style="color: green;"|Success
|Unable to determine kernel version, but seems to build fine.
|
<source lang="bash">
./configure
</source>
<source lang="text">
Configuring Makefiles for your system...
 
Checking tree: nothing to do
 
Checking kernel:
WARNING: Could not determine kernel version.
          Build might fail!
Completed Makefile configuration
</source>
|-
|-
|Ubuntu 11.10
|Ubuntu 11.10
|i386
|i386
|Dec. 01, 2011
|<span class="code">2011-12-03</span>
|style="color: orange;"|Problem
|style="color: green;"|Success
|Unable to determine kernel version, but seems to build fine.
|
<source lang="bash">
|}
./configure
</source>
<source lang="text">
Configuring Makefiles for your system...


Checking tree: nothing to do
Cluster test


Checking kernel:
{|class="wikitable sortable"
WARNING: Could not determine kernel version.
!style="white-space: nowrap;"|Test
          Build might fail!
!style="white-space: nowrap;"|Node 1
Completed Makefile configuration
!style="white-space: nowrap;"|Node 2
</source>
!style="white-space: nowrap;"|Node 3
!Notes
|-
!style="white-space: nowrap;"|Cluster Start
|
|
|
|
|}
|}


= Distro Testing =
= Distro Testing =
Line 201: Line 102:
== Debian 6 ==
== Debian 6 ==


Packages to install;
Debian 6 does not support RHEL's Cluster 3.1+ as it's included version of [[corosync]] is too old. No further compatibility testing will be run for this version of Debian.
 
<source lang="bash">
apt-get update
apt-get -y install rsync bzip2 linux-headers-$(uname -r) make liblogthread-dev gcc libxml2-dev libcorosync-dev libldap-dev \
zlib1g-dev libopenais-dev pkg-config libdbus-1-dev
</source>


== Ubuntu 11.10 ==
== Ubuntu 11.10 ==

Revision as of 20:27, 3 December 2011

 AN!Wiki :: How To :: RHCS Release Manager

These are notes, primarily for me, used in my RHCS release manager tasks.

Test Results

These tests are run by copying over the tarball created on the build machine (my laptop), untar'ing it and running ./configure && make.

Testing v3.1.8

Testing v3.1.8

Distro Arch Date tested
(YYYY-MM-DD)
Results Notes
Fedora Rawhide x86_64 2011-12-03 Success
Fedora Rawhide i386 2011-12-03 Success
Fedora 16 x86_64 2011-12-03 Success
Fedora 16 i386 2011-12-03 Success
Fedora 15 x86-64 2011-12-03 Success
Fedora 15 i386 2011-12-03 Success
Ubuntu 11.10 amd64 2011-12-03 Success
Ubuntu 11.10 i386 2011-12-03 Success

Cluster test

Test Node 1 Node 2 Node 3 Notes
Cluster Start


Distro Testing

Note: Always update the OS before running tests!

Fedora 15, 16 and Rawhide

Packages to install;

yum -y groupinstall "Development Libraries" "Development Tools" "Fedora Packager"
yum -y install vim wget corosynclib-devel openaislib-devel

Debian 6

Debian 6 does not support RHEL's Cluster 3.1+ as it's included version of corosync is too old. No further compatibility testing will be run for this version of Debian.

Ubuntu 11.10

Packages to install;

apt-get update
apt-get -y dist-upgrade
apt-get -y install linux-headers-$(uname -r) libxml2-dev libcorosync-dev libldap2-dev zlib1g-dev libopenais-dev libdbus-1-dev \
 libslang2-dev libncurses5-dev

Build Environment

This is how to setup a machine for building and releasing new version of RHCS. This requires a proper FAS account.

yum -y groupinstall "Development Libraries" "Development Tools" "Fedora Packager"
yum -y install vim wget gnupg

Build cluster.

git clone ssh://git.fedorahosted.org/git/cluster.git
cd cluster/
git branch stable31 --track origin/STABLE31
git checkout stable31

Change this to reflect the appropriate versions.

make -f make/release.mk version=3.1.8 oldversion=3.1.7

Pushing Changes to git

Initial Setup of git

Don't have notes, this is from bash's history. Sort this out later.

  1. Misc commands

man git-send-email git clone http://git.fedorahosted.org/git/cluster.git man git git branch http://git.fedorahosted.org/git/cluster.git man git git show-branch http://git.fedorahosted.org/git/cluster.git git clone http://git.fedorahosted.org/git/cluster.git git show-branch git branch </source>

Pushing To origin

Confirming the changes before committing.

git diff
diff --git a/configure b/configure
index 9c7a773..4e9bc2a 100755
--- a/configure
+++ b/configure
@@ -254,13 +254,14 @@ sub kernel_version {
     }
     close MAKEFILE;
     # Warn and continue if kernel version was not found
-    if (!$build_version || !$build_patchlevel || !$build_sublevel) {
+    if (not defined $build_version || not defined $build_patchlevel || not defined $build_sublevel) {
        print " WARNING: Could not determine kernel version.\n";
        print "          Build might fail!\n";
        return 1;
     }
     # checking VERSION, PATCHLEVEL and SUBLEVEL for the supplied kernel
-    if ($build_version >= $version[0] &&
+    if (($build_version > $version[0]) ||
+        $build_version == $version[0] &&
         $build_patchlevel >= $version[1] &&
         $build_sublevel >= $version[2]) {
       print " Current kernel version appears to be OK\n";

Pushing changes;

Commit locally with signature.

git commit -a -s

(open's editor)

[stable31 9be00f8] Changes the kernel version check to handle 3.x.y kernels. Now if the 'x' version of the running kernel is higher than the 'x' version of the minimum kernel, the test passes. Also changed the method of checking that version numbers were gathered so that a version number of '0' would be seen as valid.
 Committer: Digital Mermaid <digimer@lework.alteeve.com>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 files changed, 3 insertions(+), 2 deletions(-)

Check the current branch name.

git branch
  master
* stable31

This shows that stable31 is active.

Now push up to the main git repo.

git push origin stable31:STABLE31
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 543 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/cluster.git
   991bfb0..9be00f8  stable31 -> STABLE31

An email should have been automatically sent to the appropriate mailing lists.

 

Any questions, feedback, advice, complaints or meanderings are welcome.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.