Bug 880120
Summary: | [rhevm-upgrade] Upgrade fails because engine role exist in the DB | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Kiril Nesenko <knesenko> | ||||
Component: | ovirt-engine-setup | Assignee: | Moran Goldboim <mgoldboi> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Pavel Stehlik <pstehlik> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 3.1.0 | CC: | bazulay, dfediuck, dyasny, iheim, Rhev-m-bugs, ykaul | ||||
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-11-26 21:13:47 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: |
|
*** This bug has been marked as a duplicate of bug 879936 *** |
Created attachment 651868 [details] log Description of problem: Tried to upgrade from 3.0 to 3.1 - failed. Followed the presented steps to restore 3.0 After 3.0 was restored, attempted to retry the upgrade. The upgrade failed and the following was in the logs: 2012-11-26 11:51:05::DEBUG::common_utils::341::root:: stderr = 2012-11-26 11:51:05::DEBUG::common_utils::342::root:: retcode = 0 2012-11-26 11:51:05::DEBUG::common_utils::473::root:: Found IP Address: 10.35.16.97 2012-11-26 11:51:05::DEBUG::common_utils::302::root:: Executing command --> '/usr/bin/psql -U postgres -c ALTER DATABASE rhevm RENAME TO engine;' 2012-11-26 11:51:05::DEBUG::common_utils::340::root:: output = ALTER DATABASE 2012-11-26 11:51:05::DEBUG::common_utils::341::root:: stderr = 2012-11-26 11:51:05::DEBUG::common_utils::342::root:: retcode = 0 2012-11-26 11:51:05::DEBUG::common_utils::302::root:: Executing command --> '/usr/bin/psql -U postgres -c ALTER ROLE rhevm RENAME TO engine;' 2012-11-26 11:51:05::DEBUG::common_utils::340::root:: output = 2012-11-26 11:51:05::DEBUG::common_utils::341::root:: stderr = ERROR: role "engine" already exists 2012-11-26 11:51:05::DEBUG::common_utils::342::root:: retcode = 1 2012-11-26 11:51:05::ERROR::rhevm-upgrade::1323::root:: Traceback (most recent call last): File "/usr/bin/rhevm-upgrade", line 1316, in <module> main(options) File "/usr/bin/rhevm-upgrade", line 1224, in main MSG_INFO_PRE_30_UPGRADE) File "/usr/bin/rhevm-upgrade", line 661, in runFunc func[0](*func[1:]) File "/usr/share/ovirt-engine/scripts/upgrade_utils30.py", line 98, in modifyDb utils.execCmd(cmdList=cmd, failOnError=True, msg="Error: couldn't rename DB ROLE 'rhevm' to '%s'" % basedefs.DB_USER, envDict=env) File "/usr/share/ovirt-engine/scripts/common_utils.py", line 345, in execCmd raise Exception(msg) Exception: Error: couldn't rename DB ROLE 'rhevm' to 'engine' Version-Release number of selected component (if applicable): rhevm-3.1.0-31.el6ev.noarch.rpm How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: 1. upgrade flow need to check if there is no engine role and engine db before upgrade starts Additional info: