Bug 1157480
Summary: | Upgrade of standalone storage node fails with relation "rhq_storage_node" does not exist | ||||||
---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Filip Brychta <fbrychta> | ||||
Component: | Storage Node, Upgrade | Assignee: | Jay Shaughnessy <jshaughn> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Filip Brychta <fbrychta> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | JON 3.3.0 | CC: | mfoley | ||||
Target Milestone: | CR01 | ||||||
Target Release: | JON 3.3.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-12-11 14:03:34 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Filip Brychta
2014-10-27 10:22:00 UTC
This looks like the result of a false assumption. The latest code assumes the legacy rhq-server.properties file contains valid DB properties and this will be true for Storage Nodes co-located with a Server. But, for standalone SNs it was never required, or needed, to properly set the RDB properties. This is no longer true. We need to do two things: 1) Update the install and upgrade documentation. 2) Have the upgrade code test the DB connection prior to running. I tried to set valid DB properties in rhq-server.properties before the upgrade but it didn't help. I have following setup: server1: JON server (master - postgres db is here) + SN + agent server2: SN + agent 1- stop everything except storage nodes 2- server2: set correct DB properties in jon-server-3.3.0.ER05/bin/rhq-server.properties 3- jon-server-3.3.0.ER05/bin/rhqctl upgrade --from-server-dir /home/hudson/jon-server-3.2.0.GA Result: The same error: Caused by: org.postgresql.util.PSQLException: ERROR: relation "rhq_storage_node" does not exist Did you update the rhq-server.properties file in the --from-server-dir or the newly unzipped dir? With the current code, if you updated the properties file in the --from-server-dir then it would not work, as above. If you fixed it in the newly unzipped location it should work. In the future code , after the fixes are in, you *will* need to update the --from-server-dir version (the old version of the properties file). That will be a one-time fix for this upgrade, and going forward it will get carried forward as expected. I updated the rhq-server.properties file in the newly unzipped dir (comment 2, step 2 - set correct DB properties in jon-server-3.3.0.ER05/bin/rhq-server.properties) I will double check that remote DB connection works Remote DB connections work, it's possible to connect from server2 using psql. commit 1b45c2af77fe3a4670bc4317508780f80ae3f0bc Author: Jay Shaughnessy <jshaughn> Date: Wed Oct 29 09:54:13 2014 -0400 [1139735, 1157480] More upgrade use cases that didn't work. [1139735] An upgrade with a number of storage nodes > than our replication factor (>= 4) could fail because our check for the storage cluster version can fail if the auth info or version info are not replicated to the currently running SNs. To avoid this, for ugrades we now push all storage cluster interaction to the post-upgrade step (i.e. rhqctl --storage-schema). This includes the schema creation for a new, remote storage cluster. [1157480] An upgrade of standalone storage node can fail because those installs may not have set proper DB props in rhq-server.properties. It wasn't required in the past but it is now. In the code we now make sure the properties are copied forward on upgrade. But there is also doco neede here because prior to upgrade from an earlier version, using standalone SNs, the old rhq-server.properties files will need to be updated. Also, update the --list-versions report to better reflect that it may need all SNs to be running to perform the storage schema version check. release/jon3.3.x commit 8999436f3bfdc8bb7c311d1f27615c69d455f845 Author: Jay Shaughnessy <jshaughn> Date: Wed Oct 29 09:54:13 2014 -0400 (cherry picked from commit 1b45c2af77fe3a4670bc4317508780f80ae3f0bc) Signed-off-by: Jay Shaughnessy <jshaughn> master commit 8d200b8d2c03a1b8566680d6e92fb64dde26fd7c Author: Jay Shaughnessy <jshaughn> Date: Thu Oct 30 12:33:27 2014 -0400 [1157480] resolve a test issue by better supporting a missing rhq-server.properties file if the --no-version-stamp option is specified. release/jon3.3.x commit a610ad5f2ec0e4ad8c667d95c3db47a9279455b3 Author: Jay Shaughnessy <jshaughn> Date: Thu Oct 30 12:33:27 2014 -0400 (cherry picked from commit 8d200b8d2c03a1b8566680d6e92fb64dde26fd7c) Signed-off-by: Jay Shaughnessy <jshaughn> Moving to ON_QA as available to test with latest brew build: https://brewweb.devel.redhat.com//buildinfo?buildID=396547 Verified on Version : 3.3.0.CR01 Build Number : 08c2f39:6ac97ac |