ok, rhevm-3.6.9-2 ~~~ ... [ INFO ] Stage: Setup validation During execution engine service will be stopped (OK, Cancel) [OK]: [ ERROR ] It seems that you are running your engine inside of the hosted-engine VM and are not in "Global M aintenance" mode. In that case you should put the system into the "Global Maintenance" mode before running engine-setup, or the hosted-engine HA agent might kill the machine, which might corrupt your data. [ ERROR ] Failed to execute stage 'Setup validation': Hosted Engine setup detected, but Global Maintenance is not set. [ INFO ] Stage: Clean up Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20160912125329-zljjsj.log [ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20160912130140-setup.conf' [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination [ ERROR ] Execution of setup failed ~~~ with global maintenance enabled no such error is visible.
Ooops, this causes broken upgrade of SHE (engine) from 3.5 to 3.6: ~~~ 2016-09-13 08:56:16 DEBUG otopi.ovirt_engine_setup.engine_common.database database.execute:171 Database: 'None', Statement: ' select version, option_value from vdc_options where option_name = %(name)s ', args: {'name': 'HostedEngineVmName'} 2016-09-13 08:56:16 DEBUG otopi.ovirt_engine_setup.engine_common.database database.execute:176 Creating own connection 2016-09-13 08:56:16 DEBUG otopi.ovirt_engine_setup.engine_common.database database.execute:221 Result: [] 2016-09-13 08:56:16 DEBUG otopi.context context._executeMethod:156 method exception Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/otopi/context.py", line 146, in _executeMethod method['method']() File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-common/ovirt-engine-common/system/he.py", line 71, in _validate ownConnection=True, File "/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine/vdcoption.py", line 86, in getVdcOption ownConnection=ownConnection, File "/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine/vdcoption.py", line 61, in getVdcOptionVersions name=name, RuntimeError: Cannot locate application option HostedEngineVmName 2016-09-13 08:56:16 ERROR otopi.context context._executeMethod:165 Failed to execute stage 'Setup validation': Cannot locate application option HostedEngineVmName ~~~ 3.5 engine obviously doesn't know this: ~~~ engine=# select version, option_name,option_value from vdc_options where option_name = 'HostedEngineVmName '; version | option_name | option_value ---------+-------------+-------------- (0 rows) ~~~
(In reply to Jiri Belka from comment #3) > Ooops, this causes broken upgrade of SHE (engine) from 3.5 to 3.6: > > ~~~ > 2016-09-13 08:56:16 DEBUG otopi.ovirt_engine_setup.engine_common.database > database.execute:171 Database: 'None', Statement: ' > select version, option_value > from vdc_options > where option_name = %(name)s > ', args: {'name': 'HostedEngineVmName'} > 2016-09-13 08:56:16 DEBUG otopi.ovirt_engine_setup.engine_common.database > database.execute:176 Creating own connection > 2016-09-13 08:56:16 DEBUG otopi.ovirt_engine_setup.engine_common.database > database.execute:221 Result: [] > 2016-09-13 08:56:16 DEBUG otopi.context context._executeMethod:156 method > exception > Traceback (most recent call last): > File "/usr/lib/python2.6/site-packages/otopi/context.py", line 146, in > _executeMethod > method['method']() > File > "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-common/ovirt- > engine-common/system/he.py", line 71, in _validate > ownConnection=True, > File > "/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine/vdcoption.py", line > 86, in getVdcOption > ownConnection=ownConnection, > File > "/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine/vdcoption.py", line > 61, in getVdcOptionVersions > name=name, > RuntimeError: Cannot locate application option HostedEngineVmName > 2016-09-13 08:56:16 ERROR otopi.context context._executeMethod:165 Failed to > execute stage 'Setup validation': Cannot locate application option > HostedEngineVmName > ~~~ > > 3.5 engine obviously doesn't know this: > > ~~~ > engine=# select version, option_name,option_value from vdc_options where > option_name = 'HostedEngineVmName > '; > version | option_name | option_value > ---------+-------------+-------------- > (0 rows) > ~~~ Steps: 1. have 3.5 SHE env 2. global maintenance 3. update rpms inside engine VM 4. engine-setup
Workaround: curl -o /tmp/patch 'https://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=patch;h=23e9a25de622eb374efa8ffcf8c0bb613082cfc5' cd /usr/share/ovirt-engine patch -p2 -R < /tmp/patch
ok, rhevm-setup-plugin-ovirt-engine-3.6.9.2-0.1.el6.noarch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-1929.html