Bug 1546487
| Summary: | Rollback after failed upgrade from 4.1 to 4.2 does not reconfigure original postgresql service | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine-dwh | Reporter: | Yedidyah Bar David <didi> |
| Component: | Setup | Assignee: | Yedidyah Bar David <didi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jiri Belka <jbelka> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.2.0 | CC: | bugs, didi, jbelka, lleistne, lsvaty, lveyde, sradco, stirabos, ylavi |
| Target Milestone: | ovirt-4.2.2 | Flags: | rule-engine:
ovirt-4.2+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-engine-dwh-4.2.2.1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1492138 | Environment: | |
| Last Closed: | 2018-03-29 11:01:29 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1492138 | ||
| Bug Blocks: | 1631202 | ||
|
Description
Yedidyah Bar David
2018-02-18 08:30:50 UTC
ok, ovirt-engine-setup-base-4.2.2.1-0.1.el7.noarch
after engine-setup fail because of some strange issue with rpm deps everything else was rolled back successfully and works ok.
...
2018-02-23 14:27:38,622+0100 ERROR otopi.plugins.otopi.packagers.yumpackager yumpackager.error:85 Yum [u'rhevm-4.1.10.
1-0.1.el7.noarch requires rhevm-doc >= 4.0', u'ovirt-engine-4.2.2.1-0.1.el7.noarch requires rhvm = 4.2.2.1-0.1.el7', u
'rhevm-4.1.10.1-0.1.el7.noarch requires redhat-support-plugin-rhev >= 4.0', u'rhevm-4.1.10.1-0.1.el7.noarch requires o
virt-engine = 4.1.10.1-0.1.el7']
2018-02-23 14:27:38,623+0100 DEBUG otopi.context context._executeMethod:143 method exception
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/otopi/context.py", line 133, in _executeMethod
method['method']()
File "/usr/share/otopi/plugins/otopi/packagers/yumpackager.py", line 248, in _packages
self.processTransaction()
File "/usr/share/otopi/plugins/otopi/packagers/yumpackager.py", line 262, in processTransaction
if self._miniyum.buildTransaction():
File "/usr/lib/python2.7/site-packages/otopi/miniyum.py", line 920, in buildTransaction
raise yum.Errors.YumBaseError(msg)
YumBaseError: [u'rhevm-4.1.10.1-0.1.el7.noarch requires rhevm-doc >= 4.0', u'ovirt-engine-4.2.2.1-0.1.el7.noarch requi
res rhvm = 4.2.2.1-0.1.el7', u'rhevm-4.1.10.1-0.1.el7.noarch requires redhat-support-plugin-rhev >= 4.0', u'rhevm-4.1.
10.1-0.1.el7.noarch requires ovirt-engine = 4.1.10.1-0.1.el7']
2018-02-23 14:27:38,625+0100 ERROR otopi.context context._executeMethod:152 Failed to execute stage 'Package installat
ion': [u'rhevm-4.1.10.1-0.1.el7.noarch requires rhevm-doc >= 4.0', u'ovirt-engine-4.2.2.1-0.1.el7.noarch requires rhvm
= 4.2.2.1-0.1.el7', u'rhevm-4.1.10.1-0.1.el7.noarch requires redhat-support-plugin-rhev >= 4.0', u'rhevm-4.1.10.1-0.1
.el7.noarch requires ovirt-engine = 4.1.10.1-0.1.el7']
...
2018-02-23 14:27:38,626+0100 INFO otopi.plugins.otopi.packagers.yumpackager yumpackager.info:80 Yum Performing yum tra
nsaction rollback
Loaded plugins: product-id, versionlock
...
2018-02-23 14:27:38,665+0100 DEBUG otopi.transaction transaction.abort:119 aborting 'DWH Engine database Transaction'
2018-02-23 14:27:38,665+0100 DEBUG otopi.transaction transaction.abort:119 aborting 'Database Transaction'
2018-02-23 14:27:38,666+0100 DEBUG otopi.transaction transaction.abort:119 aborting 'Version Lock Transaction'
2018-02-23 14:27:38,667+0100 DEBUG otopi.transaction transaction.abort:119 aborting 'DWH database Transaction'
2018-02-23 14:27:38,667+0100 DEBUG otopi.transaction transaction.abort:119 aborting 'Firewalld Transaction'
2018-02-23 14:27:38,668+0100 DEBUG otopi.transaction transaction.abort:119 aborting 'DBMS Upgrade Transaction'
2018-02-23 14:27:38,668+0100 INFO otopi.plugins.ovirt_engine_setup.ovirt_engine.db.dbmsupgrade postgres.abort:808 Rolling back to the previous PostgreSQL instance (postgresql).
2018-02-23 14:27:38,669+0100 DEBUG otopi.plugins.otopi.services.systemd systemd.state:130 stopping service rh-postgresql95-postgresql
2018-02-23 14:27:38,669+0100 DEBUG otopi.plugins.otopi.services.systemd plugin.executeRaw:813 execute: ('/usr/bin/systemctl', 'stop', 'rh-postgresql95-postgresql.service'), executable='None', cwd='None', env=None
2018-02-23 14:27:39,712+0100 DEBUG otopi.plugins.otopi.services.systemd plugin.executeRaw:863 execute-result: ('/usr/bin/systemctl', 'stop', 'rh-postgresql95-postgresql.service'), rc=0
2018-02-23 14:27:39,713+0100 DEBUG otopi.plugins.otopi.services.systemd plugin.execute:921 execute-output: ('/usr/bin/systemctl', 'stop', 'rh-postgresql95-postgresql.service') stdout:
2018-02-23 14:27:39,714+0100 DEBUG otopi.plugins.otopi.services.systemd plugin.execute:926 execute-output: ('/usr/bin/systemctl', 'stop', 'rh-postgresql95-postgresql.service') stderr:
2018-02-23 14:27:39,714+0100 DEBUG otopi.plugins.otopi.services.systemd systemd.state:130 starting service postgresql
2018-02-23 14:27:39,715+0100 DEBUG otopi.plugins.otopi.services.systemd plugin.executeRaw:813 execute: ('/usr/bin/systemctl', 'start', 'postgresql.service'), executable='None', cwd='None', env=None
...
engine=# show data_directory;
data_directory
---------------------
/var/lib/pgsql/data
(1 row)
# systemctl is-enabled postgresql
enabled
# systemctl is-active postgresql
active
# systemctl is-active ovirt-engine-dwhd
inactive
# systemctl start ovirt-engine-dwhd
# systemctl is-active ovirt-engine-dwhd
active
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |