Project

General

Profile

Actions

Bug #20239

closed

Provide upgrade for qpid dir in installer upgrade

Added by Chris Roberts over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Installer
Target version:

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

  1. Qpid dir
    QD=/var/lib/qpidd
  1. Qpid data dir
    #QDD=${QD} ## for rhel6
    QDD=${QD}/.qpidd ## for rhel7
  1. Qpid linearstore dir
    QLSD=${QDD}/qls
  1. migrating dat dir with bdb
    mv ${QLSD}/dat ${QLSD}/dat2
  1. 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
  1. 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
  1. moving transactions ## not present in Satellite6
    #if -d ${QLSD}/tpl ; then
  2. for tpl in ${QLSD}/tpl/*; do
  3. echo $tpl
  4. mv ${tpl} ${QLSD}/p001/efp/2084k/in_use/
  5. ln -s "${QLSD}/p001/efp/in_use/$(basename ${tpl})" "${QLSD}/tpl2/$(basename ${tpl})"
  6. done
    #fi
echo "restoring file permissions/ownership/SELinux.."
  1. restore access permissions
    chown -R qpidd:qpidd ${QD}
  2. restore SELinux context by current policy
    restorecon -FR ${QD}
Actions #1

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
Actions #2

Updated by Chris Roberts over 7 years ago

  • Translation missing: en.field_release set to 166
Actions #3

Updated by Chris Roberts over 7 years ago

  • Translation missing: en.field_release changed from 166 to 267
Actions #4

Updated by Chris Roberts over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by The Foreman Bot over 7 years ago

  • Pull request https://github.com/Katello/katello-installer/pull/519 added
Actions #6

Updated by Eric Helms over 7 years ago

  • Translation missing: en.field_release changed from 267 to 281
Actions #7

Updated by The Foreman Bot over 7 years ago

  • Pull request https://github.com/Katello/katello-installer/pull/525 added
Actions #8

Updated by The Foreman Bot over 7 years ago

  • Pull request https://github.com/Katello/katello-installer/pull/531 added
Actions

Also available in: Atom PDF