Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1613875 - [downstream clone - 4.2.6] Indicate that RHV-H hosts have to be rebooted always after upgrade
[downstream clone - 4.2.6] Indicate that RHV-H hosts have to be rebooted alwa...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
4.2.4
Unspecified Unspecified
unspecified Severity medium
: ovirt-4.2.6
: ---
Assigned To: Ondra Machacek
Pavol Brilla
: ZStream
Depends On: 1603020 1618980
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-08 08:57 EDT by RHV Bugzilla Automation and Verification Bot
Modified: 2018-09-04 09:42 EDT (History)
10 users (show)

See Also:
Fixed In Version: ovirt-engine-4.2.6.4
Doc Type: Bug Fix
Doc Text:
Red Hat Virtualization Hosts must always be rebooted after an upgrade. In this release, the Reboot check box in the Administration Portal will be read-only for Red Hat Virtualization Hosts. For REST API requests Reboot option will be set to true by default for Red Hat Virtualization Hosts.
Story Points: ---
Clone Of: 1603020
Environment:
Last Closed: 2018-09-04 09:41:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Infra
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 93418 master MERGED core: Disallow disable of reboot for oVirt node 2018-08-08 08:57 EDT
oVirt gerrit 93438 master MERGED Add hypervisor.name property 2018-08-08 08:57 EDT
oVirt gerrit 93470 master MERGED Add note to upgrade host 2018-08-08 08:57 EDT
oVirt gerrit 93500 model_4.2 MERGED Add hypervisor.name property 2018-08-08 08:57 EDT
oVirt gerrit 93502 model_4.2 MERGED Add note to upgrade host 2018-08-08 08:57 EDT
oVirt gerrit 93575 ovirt-engine-4.2 MERGED core: Disallow disable of reboot for oVirt node 2018-08-08 09:39 EDT
Red Hat Product Errata RHBA-2018:2623 None None None 2018-09-04 09:42 EDT

  None (edit)
Description RHV Bugzilla Automation and Verification Bot 2018-08-08 08:57:01 EDT
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1603020 +++
======================================================================

Description of problem:
While upgrading Hosts from RHV manager, It prompts a warning dialogue box with check-box for 'Reboot Host after upgrade'. Even if the User unchecks the box, Host reboots.

Version-Release number of selected component (if applicable):
rhvm-4.2.4.5-0.1.el7_3

How reproducible:
100%

Steps to Reproduce:

1] Upgrade Host using RHV manager - 
  i] Select Host which shows 'Upgrade Available'.
  ii] Go to Installation -> Upgrade.
  iii] Warning dialogue box opens up with a checkbox for asking 'Reboot Host after upgrade' option.
  iv] Uncheck the box and proceed with upgrading.

Actual results:
Host reboots.

Expected results:
The host should not be rebooted post upgrading packages.

Additional info:

As per upstream BZ [RFE] https://bugzilla.redhat.com/show_bug.cgi?id=1380498#c16, If user unchecks the 'Restart host after upgrade', Host should not be rebooting.

(Originally by Chetan Nagarkar)
Comment 1 RHV Bugzilla Automation and Verification Bot 2018-08-08 08:57:09 EDT
Either way it’s probably better that it did reboot rather than the opposite. 

And attach logs and concrete description of action please. A Bug without logs is only half-useful.

(Originally by michal.skrivanek)
Comment 2 RHV Bugzilla Automation and Verification Bot 2018-08-08 08:57:13 EDT
Michael,

Here is the engine logs snippet: [I will soon attach engine log file to this BZ in private]

=> Host Upgrade started:

~~~
2018-07-17 11:15:21,978+12 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-hostUpdatesChecker-Thread-3) [] EVENT_ID: HOST_AVAILABLE_UPDATES_FINISHED(885), Check for available updates on host Host-1 was completed successfully with message 'found updates for packages nbdkit-plugin-python-common, python-perf, nbdkit'.

2018-07-17 11:26:07,862+12 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-13) [] EVENT_ID: HOST_UPGRADE_STARTED(840), Host Host-1 upgrade was started (User: admin@internal-authz).

2018-07-17 11:26:10,715+12 INFO  [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-commandCoordinator-Thread-10) [abcdefgh-d8b6-46e4-aa38-08f2fe813a61] START, SetVdsStatusVDSCommand(HostName = Host-1, SetVdsStatusVDSCommandParameters:{hostId='660e3593-3cac-4e8d-9a45-5359027e306b', status='Installing', nonOperationalReason='NONE', stopSpmFailureLogged='false', maintenanceReason='null'}), log id: 755c170 <-- Installing

2018-07-17 11:26:17,072+12 INFO  [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-commandCoordinator-Thread-10) [abcdefgh-d8b6-46e4-aa38-08f2fe813a61] Executing Ansible command:  [/usr/bin/ansible-playbook, --ssh-common-args=-F /var/lib/ovirt-engine/.ssh/config, -v, --private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa, --inventory=/tmp/ansible-inventory678110676435562513, /usr/share/ovirt-engine/playbooks/ovirt-host-upgrade.yml] [Logfile: /var/log/ovirt-engine/host-deploy/ovirt-host-mgmt-ansible-20180717112617-Host-1-abcdefgh-d8b6-46e4-aa38-08f2fe813a61.log]

2018-07-17 11:27:07,116+12 INFO  [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-commandCoordinator-Thread-10) [abcdefgh-d8b6-46e4-aa38-08f2fe813a61] Ansible playbook command has exited with value: 0

2018-07-17 11:27:07,123+12 WARN  [org.ovirt.engine.core.dal.job.ExecutionMessageDirector] (EE-ManagedThreadFactory-commandCoordinator-Thread-10) [1c7fb13] The message key 'SshHostReboot' is 
missing from 'bundles/ExecutionMessages'

2018-07-17 11:27:07,137+12 INFO  [org.ovirt.engine.core.bll.SshHostRebootCommand] (EE-ManagedThreadFactory-commandCoordinator-Thread-10) [1c7fb13] Running command: SshHostRebootCommand internal: true. Entities affected :  ID: 660e3593-3cac-4e8d-9a45-5359027e306b Type: VDSAction group MANIPULATE_HOST with role type ADMIN

2018-07-17 11:27:07,140+12 INFO  [org.ovirt.engine.core.bll.SshHostRebootCommand] (EE-ManagedThreadFactory-commandCoordinator-Thread-10) [1c7fb13] Opening SSH reboot session on host Host-1 

2018-07-17 11:27:07,350+12 INFO  [org.ovirt.engine.core.bll.SshHostRebootCommand] (EE-ManagedThreadFactory-commandCoordinator-Thread-10) [1c7fb13] Executing SSH reboot command on host Host-1

2018-07-17 11:27:08,900+12 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-commandCoordinator-Thread-10) [1c7fb13] EVENT_ID: SYSTEM_SSH_HOST_RESTART(197), Host Host-1 was restarted using SSH by the engine. <----- Host rebooted

2018-07-17 11:27:08,919+12 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-commandCoordinator-Thread-10) [abcdefgh-d8b6-46e4-aa38-08f2fe813a61] EVENT_ID: HOST_UPGRADE_FINISHED(842), Host Host-1 upgrade was completed successfully.
~~~

(Originally by Chetan Nagarkar)
Comment 4 RHV Bugzilla Automation and Verification Bot 2018-08-08 08:57:22 EDT
For the VDSType.oVirtNode we do always reboot the host. I couldn't find a bug requesting it, but here is patch introducing it: 

  https://gerrit.ovirt.org/#/c/53790/

Martin do you remember why we need it? Should change it?

(Originally by Ondra Machacek)
Comment 5 RHV Bugzilla Automation and Verification Bot 2018-08-08 08:57:27 EDT
No, node (RHV-H) has to be rebooted always after upgrade, there is not option to turn if off otherwise the upgrade will not actually happen (in previous version that was automatic without any option available). So I'm changing the bug title to indicate node and do following:

1. Webadmin - if selected host if node, then make Reboot checkbox disabled for user updates with Reboot option always on

2. RESTAPI - let's add documentation that reboot option is relevant only for RHEL-H hosts and it's always turned on for RHV-H hosts

(Originally by Martin Perina)
Comment 6 Pavol Brilla 2018-08-15 06:24:50 EDT
checkbox for asking 'Reboot Host after upgrade' option is gray out for RHVH
Software Version:4.2.6.3_SNAPSHOT-94.gbbcd5cb.0.scratch.master.el7ev
Comment 8 errata-xmlrpc 2018-09-04 09:41:42 EDT
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://access.redhat.com/errata/RHBA-2018:2623

Note You need to log in before you can comment on or make changes to this bug.