Bug 709994
Summary: | multiple_occurrences in /etc/qpidd.conf file while installing rhua config rpm | ||
---|---|---|---|
Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Sachin Ghai <sghai> |
Component: | Tools | Assignee: | Jay Dobies <jason.dobies> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.0 | CC: | kbidarka, sghai, tsanders |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-05-31 12:56:00 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 711223 |
Description
Sachin Ghai
2011-06-02 08:16:41 UTC
Good pickup. The qpid configuration is different than pulp's in that it appends to the conf file instead of using sed, which means it's not upgrade safe. I'll take a look. commit d17be92861244f30c320e5dbe8b18ef5ce37a1e5 Author: Jay Dobies <jason.dobies> Date: Thu Jun 2 09:24:46 2011 -0400 709994 - Need to clean up from a previous RHUA config RPM so we don't get duplicate entries on an upgrade. rhui-2.0/tools/etc/rhui/templates/rh-rhua-config.spec One thing to note, this will _not_ work with existing installs from RHUI Tools 2.0.26 or earlier. Here's why: In order to be able to easily clean up the entries we add, I added a comment to the end of each of them to flag them for a simple sed script. That comment won't be present in configuration generated from 2.0.26 and earlier, so the cleanup won't work. You can simulate it by manually adding those comments to your current qpidd.conf file. Then when you upgrade to the version of RHUI Tools that this fix is included in, it will perform the cleanup. Below is a sample of qpidd.conf with the comments in place: # SSL - Added by RHUI Installer require-encryption=yes # RHUI ssl-require-client-authentication=yes # RHUI ssl-cert-db=/etc/pki/rhua/qpid-nss # RHUI ssl-cert-password-file=/etc/pki/rhua/qpid-nss/password # RHUI ssl-cert-name=broker # RHUI ssl-port=5674 # RHUI Note the "# RHUI" comment at the end of each line. The RHUA config RPM now runs: sed -i -e "s/.*RHUI.*//g" /etc/qpidd.conf Before appending the configuration to qpidd.conf. That way, if those lines are present, they are removed first. If they aren't, nothing happens. added to rhui-20 tracker Upgrade is now a clean process. it overwrites instead of appending Examining rh-rhua-config-2.0-2.el6.noarch.rpm: rh-rhua-config-2.0-2.el6.noarch rh-rhua-config-2.0-2.el6.noarch.rpm: does not update installed package. error: not an rpm package Cannot open: rh-rhua-config-2.2. Skipping. Examining rh-rhua-config-2.2-2.el6.noarch.rpm: rh-rhua-config-2.2-2.el6.noarch Marking rh-rhua-config-2.2-2.el6.noarch.rpm as an update to rh-rhua-config-2.0-2.el6.noarch Resolving Dependencies --> Running transaction check ---> Package rh-rhua-config.noarch 0:2.2-2.el6 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================= Package Arch Version Repository Size ================================================================================================================================================================================= Updating: rh-rhua-config noarch 2.2-2.el6 /rh-rhua-config-2.2-2.el6.noarch 111 k Transaction Summary ================================================================================================================================================================================= Install 0 Package(s) Upgrade 1 Package(s) Total size: 111 k Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : rh-rhua-config-2.2-2.el6.noarch 1/2 Updating RHUA Server Configuration Updating RHUA Repository Authentication Configuration Updating Apache SSL Configuration data model in use matches the current version database migration to version 19 complete Stopping httpd: [ OK ] Stopping Qpid AMQP daemon: [ OK ] Stopping mongod: [ OK ] Starting mongod: [ OK ] Starting Qpid AMQP daemon: [ OK ] Starting httpd: [ OK ] Cleanup : rh-rhua-config-2.0-2.el6.noarch 2/2 Consumer Id could not be found. Cannot update consumer profile. Updated: rh-rhua-config.noarch 0:2.2-2.el6 Complete! moving to release pending closing out, product released |