Bug #20239
closedProvide upgrade for qpid dir in installer upgrade
Description
Cloned from BZ:
++ This bug was initially created as a clone of Bug #1450948 ++
Description of problem:
Due to bz1367735, qpid-cpp-* packages will be updated from 0.30 to 0.34 in Satellite 6.3. That brings several recommended or mandatory updates to installer / upgrade procedure.
While the original BZ is filed against qpid component, let track here the installer bits. If you see this as a duplicate, close this BZ as dup of 1367735.
Version-Release number of selected component (if applicable):
Satellite 6.3
How reproducible:
n.a.
Steps to Reproduce / What is required:
1) add to /etc/qpid/qpidd.conf:
session-max-unacked=10
wcache-page-size=4
to the installer by default
2) the upgrade needs an automated script (working both on RHEL6 and RHEL7 with different path to linear store) for the linearstore directory structure update per [1]/[2]
[1] https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_MRG/3/html-single/Messaging_Installation_and_Configuration_Guide/index.html#Upgrade_a_MRG_Messaging_3.1_Server_to_MRG_Messaging_3.2
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1263141
--- Additional comment from RHEL Product and Program Management on 2017-05-15 08:55:46 EDT ---
Since this issue was entered in Red Hat Bugzilla, the pm_ack has been
set to + automatically for the next planned release
--- Additional comment from Pavel Moravec on 2017-06-06 14:32:46 EDT ---
The script from [2] bug had some issues, here is improved version optimized to Satellite (that does not use qpid transactions so tpl can be ignored):
#!/usr/bin/env bash
- Qpid dir
QD=/var/lib/qpidd
- Qpid data dir
#QDD=${QD} ## for rhel6
QDD=${QD}/.qpidd ## for rhel7
- Qpid linearstore dir
QLSD=${QDD}/qls
- migrating dat dir with bdb
mv ${QLSD}/dat ${QLSD}/dat2
- preparing new structure
mkdir -p ${QLSD}/p001/efp/2048k/in_use
mkdir -p ${QLSD}/p001/efp/2048k/returned
#mkdir -p ${QLSD}/tpl2 ## not present in Satellite6
mkdir -p ${QLSD}/jrnl2
- movig queue's journal
for qd in ${QLSD}/jrnl/*; do
bnqd=$(basename $qd)
echo "migrating journal files of queue $bnqd"
mkdir -p "${QLSD}/jrnl2/${bnqd}" # for each jrnl file in the queue's dir, move the raw file to "in_use" dir and create symlink from the queue's dir to the file
for jrnlfile in $(ls $qd); do
mv ${qd}/${jrnlfile} "${QLSD}/p001/efp/2048k/in_use/"
ln -s "${QLSD}/p001/efp/2048k/in_use/${jrnlfile}" "${QLSD}/jrnl2/${bnqd}/${jrnlfile}"
done
done
- moving transactions ## not present in Satellite6
#if -d ${QLSD}/tpl ; then - for tpl in ${QLSD}/tpl/*; do
- echo $tpl
- mv ${tpl} ${QLSD}/p001/efp/2084k/in_use/
- ln -s "${QLSD}/p001/efp/in_use/$(basename ${tpl})" "${QLSD}/tpl2/$(basename ${tpl})"
- done
#fi
- restore access permissions
chown -R qpidd:qpidd ${QD} - restore SELinux context by current policy
restorecon -FR ${QD}
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello-installer/pull/518 added
Updated by Chris Roberts over 7 years ago
- Translation missing: en.field_release set to 166
Updated by Chris Roberts over 7 years ago
- Translation missing: en.field_release changed from 166 to 267
Updated by Chris Roberts over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello-installer|8e1e78099ad701770510f1f557840ebaeaa7c809.
Updated by The Foreman Bot over 7 years ago
- Pull request https://github.com/Katello/katello-installer/pull/519 added
Updated by Eric Helms over 7 years ago
- Translation missing: en.field_release changed from 267 to 281
Updated by The Foreman Bot over 7 years ago
- Pull request https://github.com/Katello/katello-installer/pull/525 added
Updated by The Foreman Bot over 7 years ago
- Pull request https://github.com/Katello/katello-installer/pull/531 added